Merge pull request #865 from eclipse-tractusx/dependabot/github_actio… #671
5 fail, 35 pass in 21m 58s
40 tests 35 ✅ 21m 58s ⏱️
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
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 = 'e8787fc3-710c-4344-b8b7-0c25c5d9bde1'
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/e8787fc3-710c-4344-b8b7-0c25c5d9bde1
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
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 = 'ca5d423a-41e1-405b-a529-fedf0e555ba5'
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/ca5d423a-41e1-405b-a529-fedf0e555ba5
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 0x7f508d6a20e0>':
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
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 = '01f8f1b2-7438-4174-9cf5-50602ec432ca'
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/01f8f1b2-7438-4174-9cf5-50602ec432ca
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 0x7f508d6a20e0>':
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
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 = '72afbd59-32b0-4900-951f-f6cea603cd9d'
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/72afbd59-32b0-4900-951f-f6cea603cd9d
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 0x7f508d6a20e0>':
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
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 = '2937ba16-32e4-488f-a046-835cf395516f'
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/2937ba16-32e4-488f-a046-835cf395516f
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 0x7f508d6a20e0>':
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
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)