Build: #282 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Ing edit concept actions should handle error in FETCh EXISTINg CONCEPt ERROr for update concept: Test case result

The below summarizes the result of the test "Ing edit concept actions should handle error in FETCh EXISTINg CONCEPt ERROr for update concept" in build 282 of Open Concept Lab - OCL CLIENT - Default Job. View test case history
Description
Ing edit concept actions should handle error in FETCh EXISTINg CONCEPt ERROr for update concept
Test class
Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept
Method
Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept
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": "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.
“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": "mappings", "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,13 +2,75 @@
   Object {
     "payload": true,
     "type": "[ui] toggle spinner",
   },
   Object {
-    "payload": "bad request",
-    "type": "[concept] fetch_existing_concept_error",
+    "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": "mappings",
+      "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",
   },
-  Object {
-    "payload": false,
-    "type": "[ui] toggle spinner",
-  },
 ]
    at store.dispatch.then (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:563:34)