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 6, 2024 in 0s

5 fail, 35 pass in 21m 55s

40 tests   35 ✅  21m 55s ⏱️
 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:
  job_id = '3f554359-45f4-47a0-8a61-126efd77e28b'
  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/3f554359-45f4-47a0-8a61-126efd77e28b
  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.TestFailError: Test 'fetch response for running job and check existence of submodels and relationships' failed:
    - Status code was 200, expected 206
    - Key mismatch: (expected["job"]["state"] = 'RUNNING' (type = <class 'tavern._core.formatted_str.FormattedString'>), actual["job"]["state"] = 'COMPLETED' (type = <class 'str'>))

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 = '3965c109-16c3-4b9c-b2df-f0abfde412b3'
  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/3965c109-16c3-4b9c-b2df-f0abfde412b3
  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 0x7ff9cb5e2050>':
        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 = '0bfa7165-fc87-4af8-b16c-47ee285d3cc2'
  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/0bfa7165-fc87-4af8-b16c-47ee285d3cc2
  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 0x7ff9cb5e2050>':
        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 = 'f49a70cc-a62d-4400-a578-d40f9f00b7d4'
  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/f49a70cc-a62d-4400-a578-d40f9f00b7d4
  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 0x7ff9cb5e2050>':
        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 = '46db317a-1efd-4c67-9438-0a2bbba6818b'
  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/46db317a-1efd-4c67-9438-0a2bbba6818b
  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 0x7ff9cb5e2050>':
        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)