Skip to content

Merge pull request #865 from eclipse-tractusx/dependabot/github_actio… #671

Merge pull request #865 from eclipse-tractusx/dependabot/github_actio…

Merge pull request #865 from eclipse-tractusx/dependabot/github_actio… #671

GitHub Actions / Test Results failed Aug 19, 2024 in 0s

5 fail, 35 pass in 11m 19s

40 tests   35 ✅  11m 19s ⏱️
 1 suites   0 💤
 1 files     5 ❌

Results for commit fd9b1b7.

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:
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'
  job_id = '376f065e-1bc7-48d0-9c9d-ef17d7aeb46d'

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/376f065e-1bc7-48d0-9c9d-ef17d7aeb46d
  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:
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'
  job_id = '487949a8-f5b7-4100-964a-5246208b362e'

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/487949a8-f5b7-4100-964a-5246208b362e
  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 0x7fdfb2a7a0e0>':
        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:
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'
  job_id = '01e40442-237e-41c5-b11c-8c4c6446bafb'

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/01e40442-237e-41c5-b11c-8c4c6446bafb
  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 0x7fdfb2a7a0e0>':
        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:
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'
  job_id = '04ec1978-33a5-406c-8561-f7efe31302de'

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/04ec1978-33a5-406c-8561-f7efe31302de
  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 0x7fdfb2a7a0e0>':
        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:
  tavern.env_vars.IRS_HOST = 'http://localhost:8080'
  job_id = '4da04e41-7da0-472a-ab90-e11ad5c11821'

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/4da04e41-7da0-472a-ab90-e11ad5c11821
  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 0x7fdfb2a7a0e0>':
        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 notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

40 tests found

There are 40 tests, see "Raw output" for the full list of tests.
Raw output
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Check if error message for searching a job with too long job-ID is correct (3.1.1)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Check if error message for searching a job with unknown job-ID is correct (3.1.2)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure ESS-investigation batch-job with invalid request data has been responsed correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure ESS-investigation batch-job with valid globalAssetId and BPN has been requested correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure batch-job with invalid request data has been responsed correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure batch-job with several valid globalAssetIds has been requested correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure cancellation of ESS-investigation batch-job has been processed correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure cancellation of batch-job has been processed correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure cancellation of irs-job works correct
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job can be returned correctly with returnUncompletedJob = true
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job request with invalid depth return 400-response
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job request with invalid globalAssetId syntax return 400-response (1.1.0 + 1.1.1)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with all valid aspects is processed (1.5.0)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with aspect Batch is processed (1.3.3)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with aspect SerialPart is processed (1.3.0)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with aspects MaterialForRecycling is processed (1.3.2)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with aspects SerialPart and ProductDescription is processed (1.3.1)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with bomLifecycle asPlanned + asBuilt get correct error response
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with depth and bomLifecycle is processed (1.2.0)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with invalid aspects is giving the correct error message (1.4.1)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with status RUNNING is responding with http code 206
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with submodels process with status COMPLETED with asBuilt-id
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with submodels process with status COMPLETED with asPlanned-id
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job with unknown globalAssetId are responsed with correct tombstone
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure job without submodels process with status COMPLETED
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure jobs are not responsed with contractAgreementIds in shells and submodels if auditContractNegotiation deactivated
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure jobs are responsed with contractAgreementIds in shells and submodels if auditContractNegotiation activated
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure pagination can be requested as expected
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure pagination details exist as expected
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure requested parameter has been set correctly
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for COMPLETED jobs only returns COMPLETED status (2.0.0)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for ERROR jobs only returns ERROR status (2.0.1)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for INITIAL jobs only returns INITIAL status (2.0.2)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for RUNNING jobs only returns RUNNING status (2.1.0)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for all jobs returns all status (2.0.3)
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for all jobs returns startTime for all status
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for completed jobs returns completedOn timestamp
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for completed jobs returns startedOn timestamp smaller than completedOn timestamp
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure search for running jobs returns no completedOn timestamp
local.testing.api-tests.irs-api-tests.tavern.yaml ‑ Make sure server process job after authorization (1.0.0)