Build: #367 failed

Job: Test, build and push docker image failed

Stages & jobs

  1. Default Stage

  2. QA

Ing edit concept actions should handle exceptions for unretire a mapping: Test case result

The below summarizes the result of the test "Ing edit concept actions should handle exceptions for unretire a mapping" in build 367 of Open Concept Lab - OCL Dictionary Manager - Default Job. View test case history
Description
Ing edit concept actions should handle exceptions for unretire a mapping
Test class
Testing Edit concept actions should handle exceptions for unretire a Mapping
Method
Testing Edit concept actions should handle exceptions for unretire a Mapping
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"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.
“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.
New and repeat contraceptive acceptors are reported as two separate counts, so it is possible to calculate each rate separately as needed. Acceptor data reported from NGOs and other community-based non MOH sources can also be included in this calculation.", "Multiplier": "100", "Numerator": "Number of new and repeat acceptors", "Primary Sources": "Family planning register; Service delivery tally (for HP), RH register (for primary private clinics), Pre-ART, ART registers", "Reporting Frequency": "Monthly"}, "id": "C1.1.1.1", "is_latest_version": true, "locale": null, "mappings": [{"id": 1, "isNew": false, "map_type": "Same as", "source": "CIEL", "to_concept_code": "dce20834-a9d7-41c6-be70-587f5246d41a", "to_concept_name": "MALARIA SMEAR, QUALITATIVE", "to_source_url": "/orgs/CIEL/sources/CIEL/concepts/1366/"}, {"isNew": true, "map_type": "Narrower than", "source": "CIEL", "to_concept_code": "67c0bc01-4f16-4424-80fd-f08b122bcef2", "to_concept_name": "MALARIA DIAGNOSIS IN THE LAST TWELVE MONTHS", "to_source_url": "/orgs/CIEL/sources/CIEL/concepts/1476/"}, {"id": 3, "isNew": false, "map_type": "Same as", "source": "SNOMED", "to_concept_code": "92eebf0a-df73-4c17-985f-0347c7dee768", "to_concept_name": "malaria", "to_source_url": null}], "names": [{"external_id": null, "locale": "en", "locale_preferred": true, "name": "Contraceptive acceptance rate", "name_type": "Fully Specified", "type": "ConceptName", "uuid": "42d624cf7f5b462f831a79f43f043f49"}], "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"}]

Difference:

- Expected
+ Received

@@ -2,9 +2,102 @@
   Object {
     "payload": true,
     "type": "[ui] toggle spinner",
   },
   Object {
-    "payload": false,
-    "type": "[ui] toggle spinner",
+    "payload": Object {
+      "concept_class": "Indicator",
+      "created_on": "2016-11-10T13:37:22.553",
+      "datatype": "Numeric",
+      "descriptions": Array [
+        Object {
+          "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": Object {
+        "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.
+New and repeat contraceptive acceptors are reported as two separate counts, so it is possible to calculate each rate separately as needed. Acceptor data reported from NGOs and other community-based non MOH sources can also be included in this calculation.",
+        "Multiplier": "100",
+        "Numerator": "Number of new and repeat acceptors",
+        "Primary Sources": "Family planning register; Service delivery tally (for HP), RH register (for primary private clinics), Pre-ART, ART registers",
+        "Reporting Frequency": "Monthly",
+      },
+      "id": "C1.1.1.1",
+      "is_latest_version": true,
+      "locale": null,
+      "mappings": Array [
+        Object {
+          "id": 1,
+          "isNew": false,
+          "map_type": "Same as",
+          "source": "CIEL",
+          "to_concept_code": "dce20834-a9d7-41c6-be70-587f5246d41a",
+          "to_concept_name": "MALARIA SMEAR, QUALITATIVE",
+          "to_source_url": "/orgs/CIEL/sources/CIEL/concepts/1366/",
+        },
+        Object {
+          "isNew": true,
+          "map_type": "Narrower than",
+          "source": "CIEL",
+          "to_concept_code": "67c0bc01-4f16-4424-80fd-f08b122bcef2",
+          "to_concept_name": "MALARIA DIAGNOSIS IN THE LAST TWELVE MONTHS",
+          "to_source_url": "/orgs/CIEL/sources/CIEL/concepts/1476/",
+        },
+        Object {
+          "id": 3,
+          "isNew": false,
+          "map_type": "Same as",
+          "source": "SNOMED",
+          "to_concept_code": "92eebf0a-df73-4c17-985f-0347c7dee768",
+          "to_concept_name": "malaria",
+          "to_source_url": null,
+        },
+      ],
+      "names": Array [
+        Object {
+          "external_id": null,
+          "locale": "en",
+          "locale_preferred": true,
+          "name": "Contraceptive acceptance rate",
+          "name_type": "Fully Specified",
+          "type": "ConceptName",
+          "uuid": "42d624cf7f5b462f831a79f43f043f49",
+        },
+      ],
+      "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",
   },
 ]
    at store.dispatch.then.result (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:702:34)