Skip to content

feat: add e2e tests framework with full implementation

Mario Murillo requested to merge slb/mm/e2e-segy-tests into master
  • added e2e test framework
  • added script to initialize required OSDU resources
  • added implementation for SEGY (to generalize to support all other data types)
  • downgrade the BinGrid data model from 1.1.0 to 1.0.0 cause 1.1.0 is still not available in M15.
$ ./tests/e2e/run.sh --osdu-url=$OSDU_DEPLOYMENT_URL --access-token=$TOKEN
--partition=${PARTITION}
--------------------------------------------
Seismic DMS regression tests initialization
--------------------------------------------

# creating a legal tag via compliance service

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   551    0   106  100   445     80    335  0:00:01  0:00:01 --:--:--   416

# creating a group via entitlement service

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   173    0    70  100   103     62     92  0:00:01  0:00:01 --:--:--   154

# creating a group via entitlement service

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   174    0    70  100   104     62     92  0:00:01  0:00:01 --:--:--   154

# retrieve entitlement groups domain

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 86947    0 86947    0     0  95232      0 --:--:-- --:--:-- --:--:-- 95232

--------------------------------------------
Seismic DMS V4 regression tests parameters
--------------------------------------------
osdu deployment url = https://evt.api.enterprisedata.cloud.slb-ds.com
sdms v4 service url = https://evt.api.enterprisedata.cloud.slb-ds.com/seistore-svc/api/v4
partition = opendes
credentials = **********************
legal tag = opendes-sdms-e2e
acl owners group = data.sdms-e2e.owners@opendes.enterprisedata.cloud.slb-ds.com
acl viewers group = data.sdms-e2e.viewers@opendes.enterprisedata.cloud.slb-ds.com

--------------------------------------------
Seismic DMS V4 regression tests
--------------------------------------------

> sdms@4.0.0 test
> mocha -r ts-node/register tests/e2e/test.ts --timeout 30000 --bail



  # Test service status

    ✔ service status (50ms)
    ✔ service status readiness (108ms)

  # Test FileCollection.SEGY.1.0.0.json endpoints

    ✔ register 3 new SEGY dataset (5978ms)
    ✔ get 3 newly created SEGY dataset by record-id (625ms)
    ✔ list 3 SEGY datasets (640ms)
    ✔ patch a SEGY dataset by adding a custom tag (2131ms)
    ✔ list all versions of a SEGY dataset by record-id  (597ms)
    ✔ get a SEGY dataset by record-id and version (634ms)
    ✔ generate connection strings to upload bulks (1732ms)
    ✔ generate connection strings to download bulks (924ms)
    ✔ upload test data (1975ms)
    ✔ download test data (1283ms)
    ✔ delete 3 SEGY dataset by record id (5154ms)
    ✔ download test data (1304ms)

  # Test FileCollection.Slb.OpenZGY.1.0.0.json endpoints

    ✔ register 3 new OpenZGY dataset (3401ms)
    ✔ get 3 newly created OpenZGY dataset by record-id (614ms)
    ✔ list 3 OpenZGY datasets (629ms)
    ✔ patch a OpenZGY dataset by adding a custom tag (1585ms)
    ✔ list all versions of a OpenZGY dataset by record-id  (603ms)
    ✔ get a OpenZGY dataset by record-id and version (610ms)
    ✔ generate connection strings to upload bulks (847ms)
    ✔ generate connection strings to download bulks (828ms)
    ✔ upload test data (1215ms)
    ✔ download test data (1333ms)
    ✔ delete 3 OpenZGY dataset by record id (3892ms)
    ✔ download test data (1271ms)

  # Test FileCollection.Bluware.OpenVDS.1.0.0.json endpoints

    ✔ register 3 new OpenVDS dataset (3246ms)
    ✔ get 3 newly created OpenVDS dataset by record-id (614ms)
    ✔ list 3 OpenVDS datasets (497ms)
    ✔ patch a OpenVDS dataset by adding a custom tag (1604ms)
    ✔ list all versions of a OpenVDS dataset by record-id  (620ms)
    ✔ get a OpenVDS dataset by record-id and version (623ms)
    ✔ generate connection strings to upload bulks (880ms)
    ✔ generate connection strings to download bulks (889ms)
    ✔ upload test data (1173ms)
    ✔ download test data (1285ms)
    ✔ delete 3 OpenVDS dataset by record id (4111ms)
    ✔ download test data (1223ms)

  # Test FileCollection.Generic.1.0.0.json endpoints

    ✔ register 3 new Generic dataset (3267ms)
    ✔ get 3 newly created Generic dataset by record-id (621ms)
    ✔ list 3 Generic datasets (616ms)
    ✔ patch a Generic dataset by adding a custom tag (1915ms)
    ✔ list all versions of a Generic dataset by record-id  (614ms)
    ✔ get a Generic dataset by record-id and version (621ms)
    ✔ generate connection strings to upload bulks (925ms)
    ✔ generate connection strings to download bulks (870ms)
    ✔ upload test data (1323ms)
    ✔ download test data (1297ms)
    ✔ delete 3 Generic dataset by record id (4441ms)
    ✔ download test data (1278ms)

  # Test SeismicTraceData.1.3.0.json endpoints

    ✔ register 3 new Trace Data dataset (2338ms)
    ✔ get 3 newly created Trace Data dataset by record-id (760ms)
    ✔ list 3 Trace Data datasets (746ms)
    ✔ patch a Trace Data dataset by adding a custom tag (1679ms)
    ✔ list all versions of a Trace Data dataset by record-id  (622ms)
    ✔ get a Trace Data dataset by record-id and version (743ms)
    ✔ delete 3 Trace Data dataset by record id (3373ms)

  # Test SeismicBinGrid.1.0.0.json endpoints

    ✔ register 3 new Bin Grid dataset (2323ms)
    ✔ get 3 newly created Bin Grid dataset by record-id (765ms)
    ✔ list 3 Bin Grid datasets (627ms)
    ✔ patch a Bin Grid dataset by adding a custom tag (1584ms)
    ✔ list all versions of a Bin Grid dataset by record-id  (600ms)
    ✔ get a Bin Grid dataset by record-id and version (750ms)
    ✔ delete 3 Bin Grid dataset by record id (3043ms)

  # Test SeismicLineGeometry.1.0.0.json endpoints

    ✔ register 3 new Line Geometry dataset (2367ms)
    ✔ get 3 newly created Line Geometry dataset by record-id (754ms)
    ✔ list 3 Line Geometry datasets (739ms)
    ✔ patch a Line Geometry dataset by adding a custom tag (1637ms)
    ✔ list all versions of a Line Geometry dataset by record-id  (603ms)
    ✔ get a Line Geometry dataset by record-id and version (764ms)
    ✔ delete 3 Line Geometry dataset by record id (3188ms)

  # Test Seismic2DInterpretationSet.1.1.0.json endpoints

    ✔ register 3 new 2D Interpretation Set dataset (2309ms)
    ✔ get 3 newly created 2D Interpretation Set dataset by record-id (611ms)
    ✔ list 3 2D Interpretation Set datasets (746ms)
    ✔ patch a 2D Interpretation Set dataset by adding a custom tag (1376ms)
    ✔ list all versions of a 2D Interpretation Set dataset by record-id  (598ms)
    ✔ get a 2D Interpretation Set dataset by record-id and version (613ms)
    ✔ delete 3 2D Interpretation Set dataset by record id (3109ms)

  # Test Seismic3DInterpretationSet.1.1.0.json endpoints

    ✔ register 3 new 3D Interpretation Set dataset (2205ms)
    ✔ get 3 newly created 3D Interpretation Set dataset by record-id (607ms)
    ✔ list 3 3D Interpretation Set datasets (746ms)
    ✔ patch a 3D Interpretation Set dataset by adding a custom tag (1704ms)
    ✔ list all versions of a 3D Interpretation Set dataset by record-id  (621ms)
    ✔ get a 3D Interpretation Set dataset by record-id and version (637ms)
    ✔ delete 3 3D Interpretation Set dataset by record id (3250ms)

  # Test SeismicAcquisitionSurvey.1.2.0.json endpoints

    ✔ register 3 new Acquisition Survey dataset (2241ms)
    ✔ get 3 newly created Acquisition Survey dataset by record-id (604ms)
    ✔ list 3 Acquisition Survey datasets (801ms)
    ✔ patch a Acquisition Survey dataset by adding a custom tag (1375ms)
    ✔ list all versions of a Acquisition Survey dataset by record-id  (612ms)
    ✔ get a Acquisition Survey dataset by record-id and version (643ms)
    ✔ delete 3 Acquisition Survey dataset by record id (3269ms)

  # Test SeismicProcessingProject.1.2.0.json endpoints

    ✔ register 3 new Processing Project dataset (2179ms)
    ✔ get 3 newly created Processing Project dataset by record-id (618ms)
    ✔ list 3 Processing Project datasets (750ms)
    ✔ patch a Processing Project dataset by adding a custom tag (1414ms)
    ✔ list all versions of a Processing Project dataset by record-id  (585ms)
    ✔ get a Processing Project dataset by record-id and version (615ms)
    ✔ delete 3 Processing Project dataset by record id (3178ms)


  99 passing (2m)


--------------------------------------------
Tests completed in 154 seconds
--------------------------------------------
Edited by Diego Molteni

Merge request reports

Loading