Build: #282 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
16 minutes
Revision
902454a54a7dd9ebbcc95c4427e2c3b3080d0fdd 902454a54a7dd9ebbcc95c4427e2c3b3080d0fdd
Total tests
402
Fixed in
#283 (Rebuilt by Daniel Kayiwa)

Tests

  • 402 tests in total
  • 7 tests failed
  • 7 failures are new
  • 25 seconds taken in total.
New test failures 7
Status Test Duration
Collapse Failed Test suite for dictionary concept actions should handle ADD_CONCEPT_TO_DICTIONARY Test suite for dictionary concept actions should handle ADD_CONCEPT_TO_DICTIONARY History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": {"added": true}, "type": "[concepts] add_concept_to_dictionary"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(17 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle FETCH_EXISTING_CONCEPT Test suite for dictionary concept actions should handle FETCH_EXISTING_CONCEPT History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": {"concept_class": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
“New acceptors” refers to the number of acceptors who receive family planning services from a recognized program for the first time irrespective of the method used. This is not the number of consultations. Each acceptor is enumerated once in the year, at the first consultation for contraception in the calendar year. 
“Repeat acceptors” refers to the number of acceptors who receive family planning services from a family planning program previously irrespective of the method used.  Long acting FP method users will also be counted as repeat every year including routine checkup for ongoing use of a long term method such as Norplant, IUD, etc.
(91 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle error in ADD_CONCEPT_TO_DICTIONARY Test suite for dictionary concept actions should handle error in ADD_CONCEPT_TO_DICTIONARY History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": {"added": true}, "type": "[concepts] add_concept_to_dictionary"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(17 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle error in CREATE_NEW_CONCEPT Test suite for dictionary concept actions should handle error in CREATE_NEW_CONCEPT History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": "bad request", "type": "[concepts] create_new_concept"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(19 more lines...)
Collapse Failed Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": "bad request", "type": "[concept] fetch_existing_concept_error"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": {"concept_class": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
(92 more lines...)
Collapse Failed test suite for synchronous action creators should handle QUERY_POSSIBLE_ANSWER_CONCEPTS test suite for synchronous action creators should handle QUERY_POSSIBLE_ANSWER_CONCEPTS History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": [{"type": "concept"}], "type": "[concepts] query_possible_answer_concepts"}]
Received:
  Array []

Difference:
(16 more lines...)
Collapse Failed test suite for synchronous action creators should handle QUERY_POSSIBLE_ANSWER_CONCEPTS and fail test suite for synchronous action creators should handle QUERY_POSSIBLE_ANSWER_CONCEPTS and fail History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  Array []
Received:
  [{"payload": [{"type": "concept"}], "type": "[concepts] query_possible_answer_concepts"}]

Difference:
(16 more lines...)

Error summary

The build generated some errors. See the full build log for more details.

    +      "owner": "EthiopiaNHDD",
    +      "owner_type": "Organization",
    +      "owner_url": "/orgs/EthiopiaNHDD/",
    +      "retired": false,
    +      "source": "HMIS-Indicators",
    +      "source_url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/",
    +      "type": "Concept",
    +      "updated_on": "2017-10-13T07:12:36.218",
    +      "url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/concepts/C1.1.1.1/",
    +      "uuid": "5824be62fc6b9000075d4981",
    +      "version": "5824be62fc6b9000075d4981",
    +      "version_created_by": "root",
    +      "version_created_on": "2016-11-10T13:37:22.553",
    +      "version_url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/concepts/C1.1.1.1/5824be62fc6b9000075d4981/",
    +    },
    +    "type": "[concept] update_concept",
       },
    -  Object {
    -    "payload": false,
    -    "type": "[ui] toggle spinner",
    -  },
     ]
     
      at store.dispatch.then (src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:563:34)

  ● test suite for synchronous action creators › should handle QUERY_POSSIBLE_ANSWER_CONCEPTS

    expect(received).toEqual(expected)
   
    Expected value to equal:
      [{"payload": [{"type": "concept"}], "type": "[concepts] query_possible_answer_concepts"}]
    Received:
      Array []
   
    Difference:
   
    - Expected
    + Received
   
    -Array [
    -  Object {
    -    "payload": Array [
    -      Object {
    -        "type": "concept",
    -      },
    -    ],
    -    "type": "[concepts] query_possible_answer_concepts",
    -  },
    -]
    +Array []
     
      at store.dispatch.then (src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:696:34)

  ● test suite for synchronous action creators › should handle QUERY_POSSIBLE_ANSWER_CONCEPTS and fail

    expect(received).toEqual(expected)
   
    Expected value to equal:
      Array []
    Received:
      [{"payload": [{"type": "concept"}], "type": "[concepts] query_possible_answer_concepts"}]
   
    Difference:
   
    - Expected
    + Received
   
    -Array []
    +Array [
    +  Object {
    +    "payload": Array [
    +      Object {
    +        "type": "concept",
    +      },
    +    ],
    +    "type": "[concepts] query_possible_answer_concepts",
    +  },
    +]
     
      at store.dispatch.then (src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:713:34)


Snapshot Summary
› 63 snapshots written in 27 test suites.

Test Suites: 1 failed, 66 passed, 67 total
Tests:       7 failed, 419 passed, 426 total
Snapshots:   63 added, 63 total
Time:        53.217s, estimated 55s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openmrs-ocl-client@0.1.0 test:bamboo: `react-scripts test --env=jsdom -u --ci --coverage --testResultsProcessor ./node_modules/jest-junit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openmrs-ocl-client@0.1.0 test:bamboo script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bamboo-agent/.npm/_logs/2019-01-23T09_07_48_338Z-debug.log
+ docker --version
+ docker login -u openmrsci -p '********'
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

+ IMAGE=openmrs/ocl-client
+ TAG=latest
+ /usr/bin/docker build --force-rm=true --tag=openmrs/ocl-client:latest .
+ docker push openmrs/ocl-client:latest
+ docker image inspect '--format={{index .RepoDigests 0}}' openmrs/ocl-client:latest