Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cucumber):[#226] Fix umbrella e2e test scenarios #856

Merged
merged 9 commits into from
Jul 29, 2024

chore(workflows):[#226] switch to tractusx-runner

943f7ea
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

chore(cucumber):[#226] Fix umbrella e2e test scenarios #856

chore(workflows):[#226] switch to tractusx-runner
943f7ea
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Jul 29, 2024 in 0s

5 fail, 35 pass in 21m 18s

40 tests   35 ✅  21m 18s ⏱️
 1 suites   0 💤
 1 files     5 ❌

Results for commit 943f7ea.

Annotations

Check warning on line 0 in local.testing.api-tests.irs-api-tests.tavern.yaml

See this annotation in the file changed.

@github-actions github-actions / Test Results

Make sure job can be returned correctly with returnUncompletedJob = true (local.testing.api-tests.irs-api-tests.tavern.yaml) failed

result.xml [took 1m 1s]
Raw output
Format variables:
  job_id = 'a72dc543-cf61-4054-b59f-f3e436e747de'
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'

Source test stage (line 754):
  - name: fetch response for running job and check existence of submodels and relationships
    request:
      url: "{tavern.env_vars.IRS_HOST}/irs/jobs/{job_id}"
      params:
        returnUncompletedJob: true
      method: GET
      headers:
        content-type: application/json
        $ext:
          function: local.testing.api-tests.tavern_helpers:create_api_key
    response:
      status_code: 206
      json:
        job:
          state: RUNNING
      verify_response_with:
        - function: local.testing.api-tests.tavern_helpers:relationships_are_not_empty
        - function: local.testing.api-tests.tavern_helpers:submodels_are_not_empty
      headers:
        content-type: application/json

Formatted stage:
  name: fetch response for running job and check existence of submodels and relationships
  request:
    headers:
      $ext:
        function: local.testing.api-tests.tavern_helpers:create_api_key
      content-type: application/json
    method: GET
    params:
      returnUncompletedJob: true
    url: http://localhost:8080/irs/jobs/a72dc543-cf61-4054-b59f-f3e436e747de
  response:
    headers:
      content-type: application/json
    json:
      job:
        state: RUNNING
    status_code: 206
    verify_response_with:
    - function: local.testing.api-tests.tavern_helpers:relationships_are_not_empty
    - function: local.testing.api-tests.tavern_helpers:submodels_are_not_empty

Errors:
E   tavern._core.exceptions.RestRequestException

Check warning on line 0 in local.testing.api-tests.irs-api-tests.tavern.yaml

See this annotation in the file changed.

@github-actions github-actions / Test Results

Make sure batch-job with several valid globalAssetIds has been requested correctly (local.testing.api-tests.irs-api-tests.tavern.yaml) failed

result.xml [took 0s]
Raw output
Format variables:
  job_id = '4d4b9f17-31bf-4e6c-bcd6-42960cc3ae7f'
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'

Source test stage (line 1642):
  - name: verify job response with desired test steps
    request:
      url: "{tavern.env_vars.IRS_HOST}/irs/orders/{job_id}"
      params:
        returnUncompletedJob: true
      method: GET
      headers:
        content-type: application/json
        $ext:
          function: local.testing.api-tests.tavern_helpers:create_api_key
    response:
      status_code: 200
      verify_response_with:
        function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given
        extra_kwargs:
          amount_batches: 3
      headers:
        content-type: application/json

Formatted stage:
  name: verify job response with desired test steps
  request:
    headers:
      $ext:
        function: local.testing.api-tests.tavern_helpers:create_api_key
      content-type: application/json
    method: GET
    params:
      returnUncompletedJob: true
    url: http://localhost:8080/irs/orders/4d4b9f17-31bf-4e6c-bcd6-42960cc3ae7f
  response:
    headers:
      content-type: application/json
    status_code: 200
    verify_response_with:
      extra_kwargs:
        amount_batches: 3
      function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given

Errors:
E   tavern._core.exceptions.TestFailError: Test 'verify job response with desired test steps' failed:
    - Error calling validate function '<function order_informations_for_batchprocessing_are_given at 0x7f6a37fcdb40>':
        Traceback (most recent call last):
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/response.py", line 166, in _maybe_run_validate_functions
            vf(response)
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/_core/extfunctions.py", line 103, in inner
            result = func(response, *args, **kwargs)
          File "/home/runner/work/item-relationship-service/item-relationship-service/local/testing/api-tests/tavern_helpers.py", line 333, in order_informations_for_batchprocessing_are_given
            assert ('https://irs.dev.demo.catena-x.net/irs/orders' in batches.get("batchUrl")) or ('https://irs.int.demo.catena-x.net/irs/orders' in batches.get("batchUrl"))
        AssertionError

Check warning on line 0 in local.testing.api-tests.irs-api-tests.tavern.yaml

See this annotation in the file changed.

@github-actions github-actions / Test Results

Make sure cancellation of batch-job has been processed correctly (local.testing.api-tests.irs-api-tests.tavern.yaml) failed

result.xml [took 0s]
Raw output
Format variables:
  job_id = '2e12d98f-f849-4324-9651-64e58c0a1bd8'
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'

Source test stage (line 1752):
  - name: verify job response with desired test steps and get batchId
    request:
      url: "{tavern.env_vars.IRS_HOST}/irs/orders/{job_id}"
      params:
        returnUncompletedJob: true
      method: GET
      headers:
        content-type: application/json
        $ext:
          function: local.testing.api-tests.tavern_helpers:create_api_key
    response:
      status_code: 200
      verify_response_with:
        function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given
        extra_kwargs:
          amount_batches: 1
      headers:
        content-type: application/json
      save:
        $ext:
          function: local.testing.api-tests.tavern_helpers:getBatchId
          extra_kwargs:
            batchId_number: 0

Formatted stage:
  name: verify job response with desired test steps and get batchId
  request:
    headers:
      $ext:
        function: local.testing.api-tests.tavern_helpers:create_api_key
      content-type: application/json
    method: GET
    params:
      returnUncompletedJob: true
    url: http://localhost:8080/irs/orders/2e12d98f-f849-4324-9651-64e58c0a1bd8
  response:
    headers:
      content-type: application/json
    save:
      $ext:
        extra_kwargs:
          batchId_number: 0
        function: local.testing.api-tests.tavern_helpers:getBatchId
    status_code: 200
    verify_response_with:
      extra_kwargs:
        amount_batches: 1
      function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given

Errors:
E   tavern._core.exceptions.TestFailError: Test 'verify job response with desired test steps and get batchId' failed:
    - Error calling validate function '<function order_informations_for_batchprocessing_are_given at 0x7f6a37fcdb40>':
        Traceback (most recent call last):
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/response.py", line 166, in _maybe_run_validate_functions
            vf(response)
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/_core/extfunctions.py", line 103, in inner
            result = func(response, *args, **kwargs)
          File "/home/runner/work/item-relationship-service/item-relationship-service/local/testing/api-tests/tavern_helpers.py", line 333, in order_informations_for_batchprocessing_are_given
            assert ('https://irs.dev.demo.catena-x.net/irs/orders' in batches.get("batchUrl")) or ('https://irs.int.demo.catena-x.net/irs/orders' in batches.get("batchUrl"))
        AssertionError

Check warning on line 0 in local.testing.api-tests.irs-api-tests.tavern.yaml

See this annotation in the file changed.

@github-actions github-actions / Test Results

Make sure ESS-investigation batch-job with valid globalAssetId and BPN has been requested correctly (local.testing.api-tests.irs-api-tests.tavern.yaml) failed

result.xml [took 0s]
Raw output
Format variables:
  job_id = '3d2b41f1-0f2c-46b0-878d-82bba0038efb'
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'

Source test stage (line 1883):
  - name: get response for created investigation
    request:
      url: "{tavern.env_vars.IRS_HOST}/irs/orders/{job_id}"
      params:
        returnUncompletedJob: true
      method: GET
      headers:
        content-type: application/json
        $ext:
          function: local.testing.api-tests.tavern_helpers:create_api_key
    response:
      status_code: 200
      verify_response_with:
        function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given
        extra_kwargs:
          amount_batches: 3
      headers:
        content-type: application/json

Formatted stage:
  name: get response for created investigation
  request:
    headers:
      $ext:
        function: local.testing.api-tests.tavern_helpers:create_api_key
      content-type: application/json
    method: GET
    params:
      returnUncompletedJob: true
    url: http://localhost:8080/irs/orders/3d2b41f1-0f2c-46b0-878d-82bba0038efb
  response:
    headers:
      content-type: application/json
    status_code: 200
    verify_response_with:
      extra_kwargs:
        amount_batches: 3
      function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given

Errors:
E   tavern._core.exceptions.TestFailError: Test 'get response for created investigation' failed:
    - Error calling validate function '<function order_informations_for_batchprocessing_are_given at 0x7f6a37fcdb40>':
        Traceback (most recent call last):
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/response.py", line 166, in _maybe_run_validate_functions
            vf(response)
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/_core/extfunctions.py", line 103, in inner
            result = func(response, *args, **kwargs)
          File "/home/runner/work/item-relationship-service/item-relationship-service/local/testing/api-tests/tavern_helpers.py", line 333, in order_informations_for_batchprocessing_are_given
            assert ('https://irs.dev.demo.catena-x.net/irs/orders' in batches.get("batchUrl")) or ('https://irs.int.demo.catena-x.net/irs/orders' in batches.get("batchUrl"))
        AssertionError

Check warning on line 0 in local.testing.api-tests.irs-api-tests.tavern.yaml

See this annotation in the file changed.

@github-actions github-actions / Test Results

Make sure cancellation of ESS-investigation batch-job has been processed correctly (local.testing.api-tests.irs-api-tests.tavern.yaml) failed

result.xml [took 0s]
Raw output
Format variables:
  job_id = 'b5465139-d631-4e18-b9b8-0b796890e092'
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'

Source test stage (line 2022):
  - name: get response for created investigation
    request:
      url: "{tavern.env_vars.IRS_HOST}/irs/orders/{job_id}"
      params:
        returnUncompletedJob: true
      method: GET
      headers:
        content-type: application/json
        $ext:
          function: local.testing.api-tests.tavern_helpers:create_api_key
    response:
      status_code: 200
      verify_response_with:
        function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given
        extra_kwargs:
          amount_batches: 3
      headers:
        content-type: application/json
      save:
        $ext:
          function: local.testing.api-tests.tavern_helpers:getBatchId
          extra_kwargs:
            batchId_number: 1

Formatted stage:
  name: get response for created investigation
  request:
    headers:
      $ext:
        function: local.testing.api-tests.tavern_helpers:create_api_key
      content-type: application/json
    method: GET
    params:
      returnUncompletedJob: true
    url: http://localhost:8080/irs/orders/b5465139-d631-4e18-b9b8-0b796890e092
  response:
    headers:
      content-type: application/json
    save:
      $ext:
        extra_kwargs:
          batchId_number: 1
        function: local.testing.api-tests.tavern_helpers:getBatchId
    status_code: 200
    verify_response_with:
      extra_kwargs:
        amount_batches: 3
      function: local.testing.api-tests.tavern_helpers:order_informations_for_batchprocessing_are_given

Errors:
E   tavern._core.exceptions.TestFailError: Test 'get response for created investigation' failed:
    - Error calling validate function '<function order_informations_for_batchprocessing_are_given at 0x7f6a37fcdb40>':
        Traceback (most recent call last):
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/response.py", line 166, in _maybe_run_validate_functions
            vf(response)
          File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/tavern/_core/extfunctions.py", line 103, in inner
            result = func(response, *args, **kwargs)
          File "/home/runner/work/item-relationship-service/item-relationship-service/local/testing/api-tests/tavern_helpers.py", line 333, in order_informations_for_batchprocessing_are_given
            assert ('https://irs.dev.demo.catena-x.net/irs/orders' in batches.get("batchUrl")) or ('https://irs.int.demo.catena-x.net/irs/orders' in batches.get("batchUrl"))
        AssertionError