Fix Well Postman Collection

Fixed failure in Well Postman Collection

newman

Well R3 CI/CD v1.0

□ Configure collection
└ Refresh Token
  POST https://login.microsoftonline.com/58975fd3-4977-44d0-bea8-37af0baac100/oauth2/v2.0/token [200 OK, 6.97kB, 975ms]

□ Well
└ 01 Legal - Create new Legal Tag for Well

  │ `Using "_" is deprecated. Use "require('lodash')" instead.`

  POST https://osdu-ship.msft-osdu-test.org/api/legal/v1/legaltags [201 Created, 1.18kB, 594ms]
  √  Status code is 201

  │ 34
  │ 'Using "tests" is deprecated. Use "pm.test()" instead.'

  √  Leagal tag created: opendes-Well-Legal-Tag-Test8587774

└ 02 Legal - Retrieve the created legal tag
  GET https://osdu-ship.msft-osdu-test.org/api/legal/v1/legaltags/opendes-Well-Legal-Tag-Test8587774 [200 OK, 1.18kB, 107ms]
  √  Status code is 200
  √  Status description - OK.
  √  Proper legal tag returned? : opendes-Well-Legal-Tag-Test8587774

└ 03 Get schema by id success scenario
  GET https://osdu-ship.msft-osdu-test.org/api/schema-service/v1/schema/osdu:wks:master-data--Well:1.0.0 [200 OK, 80.28kB, 178ms]
  √  Status code is 200
  √  Status description - OK

└ 04 Search - Count Well Records before insert
  POST https://osdu-ship.msft-osdu-test.org/api/search/v2/query [200 OK, 1.01kB, 181ms]
  √  Status code is 200
  √  Status description - OK

  │ 'Using "tests" is deprecated. Use "pm.test()" instead.'

  √  Record count: 10000

└ 06 Create workflow for Master data ingestion (Well) R3
  POST https://osdu-ship.msft-osdu-test.org/api/workflow/v1/workflow [409 Conflict, 976B, 126ms]
  √  Status code is 200 or 409

└ 07 Trigger the workflow for Master data ingestion (Well) R3

  │ `Using "_" is deprecated. Use "require('lodash')" instead.`

  POST https://osdu-ship.msft-osdu-test.org/api/workflow/v1/workflow/Osdu_ingest/workflowRun [200 OK, 1.02kB, 741ms]

  │ 'RunID: ', '53cd1cbc-a058-47af-980c-671b634ffd5a'

  √  Status code is 200

└ 08 - check the  workflow status for master data
  GET https://osdu-ship.msft-osdu-test.org/api/workflow/v1/workflow/Osdu_ingest/workflowRun/53cd1cbc-a058-47af-980c-671b634ffd5a
 [200 OK, 1.02kB, 567ms]
  √  Status code is 200
  √  Status description - OK.

  │ 'num of tries: ', 0
  │ 'Status: ', 'running'
  │ 'num of tries: ', 1
  │ 0
  │ 'Using "postman.setNextRequest" is deprecated. Use "pm.execution.setNextRequest()" instead.'


Attempting to set next request to 08 - check the  workflow status for master data

└ 08 - check the  workflow status for master data
  GET https://osdu-ship.msft-osdu-test.org/api/workflow/v1/workflow/Osdu_ingest/workflowRun/53cd1cbc-a058-47af-980c-671b634ffd5a
 [200 OK, 1.02kB, 935ms]
  √  Status code is 200
  √  Status description - OK.

  │ 'num of tries: ', 1
  │ 'Status: ', 'running'
  │ 'num of tries: ', 2
  │ 1
  │ 'Using "postman.setNextRequest" is deprecated. Use "pm.execution.setNextRequest()" instead.'


Attempting to set next request to 08 - check the  workflow status for master data

└ 08 - check the  workflow status for master data
  GET https://osdu-ship.msft-osdu-test.org/api/workflow/v1/workflow/Osdu_ingest/workflowRun/53cd1cbc-a058-47af-980c-671b634ffd5a
 [200 OK, 1.05kB, 188ms]
  √  Status code is 200
  √  Status description - OK.

  │ 'num of tries: ', 2
  │ 'Completed running with status: ', 'finished'


└ 09 Storage - Retrieve the ingested record
  GET https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:master-data--Well:999571279384 [200 OK, 2.4kB, 160ms]
  √  Status code is 200
  √  Status description - OK

└ 10 Search - Count Well Records after insert a record
  POST https://osdu-ship.msft-osdu-test.org/api/search/v2/query [200 OK, 1.01kB, 205ms]
  √  Status code is 200
  √  Status description - OK

  │ 'Using "tests" is deprecated. Use "pm.test()" instead.'

  √  Record count: 10000

└ 11 Storage - Delete a ingested well record
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:master-data--Well:999571279384:delete [204 No Content, 786B, 228ms]
  √  Status code is 204

└ 11a Storage - Delete a ingested alias name
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:reference-data--AliasNameType:WELL_NAME_999571279384:delete [204 No Content, 786B, 194ms]
  √  Status code is 204

└ 11b Storage - Delete a ingested vertical measurement path
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:reference-data--VerticalMeasurementPath:DEPTH_DATUM_ELEV_999571279384:delete [204 No Content, 786B, 207ms]
  √  Status code is 204

└ 11c Storage - Delete a ingested Facility event type spud date
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:reference-data--FacilityEventType:SPUD_DATE_999571279384:delete [204 No Content, 786B, 215ms]
  √  Status code is 204

└ 11d Storage - Delete a ingested Organisation record
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:master-data--Organisation:Auto_Test_999571279384:delete [204 No Content, 786B, 201ms]
  √  Status code is 204

└ 11e Storage - Delete a ingested Facility type record
  POST https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:reference-data--FacilityType:WELL_999571279384:delete
 [204 No Content, 786B, 187ms]
  √  Status code is 204

└ 12 Legal - Delete a Legal tag created for Well
  DELETE https://osdu-ship.msft-osdu-test.org/api/legal/v1/legaltags/opendes-Well-Legal-Tag-Test8587774 [204 No Content, 786B, 320ms]
  √  Status code is 204

┌─────────────────────────┬─────────────────────┬────────────────────┐
│                         │            executed │             failed │
├─────────────────────────┼─────────────────────┼────────────────────┤
│              iterations │                   1 │                  0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│                requests │                  19 │                  0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│            test-scripts │                  38 │                  0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│      prerequest-scripts │                  30 │                  0 │
├─────────────────────────┼─────────────────────┼────────────────────┤
│              assertions │                  30 │                  0 │
├─────────────────────────┴─────────────────────┴────────────────────┤
│ total run duration: 2m 8.4s                                        │
├────────────────────────────────────────────────────────────────────┤
│ total data received: 88.52kB (approx)                              │
├────────────────────────────────────────────────────────────────────┤
│ average response time: 342ms [min: 107ms, max: 975ms, s.d.: 268ms] │
└────────────────────────────────────────────────────────────────────┘

Merge request reports

Loading