Compare commits

...

1 Commits

Author SHA1 Message Date
Naren 3a001f2be7 test 2023-03-02 11:23:34 -08:00
3 changed files with 9 additions and 1 deletions

View File

@ -68,6 +68,7 @@ env:
jobs: jobs:
linting-coverage: linting-coverage:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -155,6 +156,7 @@ jobs:
cache-to: type=gha,mode=max,scope=cloudserver cache-to: type=gha,mode=max,scope=cloudserver
multiple-backend: multiple-backend:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
@ -189,6 +191,7 @@ jobs:
if: always() if: always()
mongo-v0-ft-tests: mongo-v0-ft-tests:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
@ -227,6 +230,7 @@ jobs:
if: always() if: always()
mongo-v1-ft-tests: mongo-v1-ft-tests:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
@ -300,6 +304,7 @@ jobs:
if: always() if: always()
utapi-v2-tests: utapi-v2-tests:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
@ -332,6 +337,7 @@ jobs:
if: always() if: always()
kmip-ft-tests: kmip-ft-tests:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
@ -368,6 +374,7 @@ jobs:
if: always() if: always()
ceph-backend-test: ceph-backend-test:
if: ${{ false }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:

View File

@ -86,7 +86,7 @@
"ft_s3cmd": "cd tests/functional/s3cmd && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js", "ft_s3cmd": "cd tests/functional/s3cmd && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js",
"ft_s3curl": "cd tests/functional/s3curl && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js", "ft_s3curl": "cd tests/functional/s3curl && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js",
"ft_util": "cd tests/functional/utilities && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js", "ft_util": "cd tests/functional/utilities && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js",
"ft_test": "npm-run-all -s ft_awssdk ft_s3cmd ft_s3curl ft_node ft_healthchecks ft_management ft_util", "ft_test": "npm-run-all -s ft_management",
"ft_search": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 90000 test/mdSearch", "ft_search": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 90000 test/mdSearch",
"ft_kmip": "cd tests/functional/kmip && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js", "ft_kmip": "cd tests/functional/kmip && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 40000 *.js",
"install_ft_deps": "yarn install aws-sdk@2.28.0 bluebird@3.3.1 mocha@2.3.4 mocha-junit-reporter@1.23.1 tv4@1.2.7", "install_ft_deps": "yarn install aws-sdk@2.28.0 bluebird@3.3.1 mocha@2.3.4 mocha-junit-reporter@1.23.1 tv4@1.2.7",

View File

@ -28,6 +28,7 @@ describe('Monitoring - getting metrics', () => {
} }
function parseMetric(metrics, name, labels) { function parseMetric(metrics, name, labels) {
console.log('****parseMetric****', metrics);
const labelsString = Object.entries(labels).map(e => `${e[0]}="${e[1]}"`).join(','); const labelsString = Object.entries(labels).map(e => `${e[0]}="${e[1]}"`).join(',');
const metric = metrics.match(new RegExp(`^${name}{${labelsString}} (.*)$`, 'm')); const metric = metrics.match(new RegExp(`^${name}{${labelsString}} (.*)$`, 'm'));
return metric ? metric[1] : null; return metric ? metric[1] : null;