chore: Remove ternary if and use traditional one #294
11 errors, 2 fail, 287 pass in 7m 31s
Annotations
github-actions / Test Results
synchronizeDesignCenter_raml_not_changed (com.avioconsulting.mule.deployment.internal.subdeployers.DesignCenterDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.DesignCenterDeployerTest.xml [took 1s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.DesignCenterDeployerTest.synchronizeDesignCenter_raml_not_changed(DesignCenterDeployerTest.groovy:964)
*** Starting test synchronizeDesignCenter_raml_not_changed ***
Waiting for server to come up
Server is supposedly up on port 38877
Using directory /api inside app JAR
Looking up ID for Design Center project 'Hello API'
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:31,533 [main] org.apache.http.wire: {} http-outgoing-37 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,533 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,533 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:31,533 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,533 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,534 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,534 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,534 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,534 [main] org.apache.http.wire: {} http-outgoing-37 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:31,535 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,535 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,535 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:31,535 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,535 [main] org.apache.http.wire: {} http-outgoing-37 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,536 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /designcenter/api-designer/projects HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:20:31,537 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,538 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,539 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,539 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,540 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 34[\r][\n]"
DEBUG 2023-12-04 14:20:31,540 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,540 [main] org.apache.http.wire: {} http-outgoing-37 << "[{"id":"abcd","name":"Hello API"}]"
Identified Design Center project 'Hello API' as ID abcd
Fetching list of existing Design Center RAML files
DEBUG 2023-12-04 14:20:31,542 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /designcenter/api-designer/projects/abcd/branches/master/files HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,542 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:20:31,542 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:20:31,542 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:20:31,542 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,543 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,543 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,543 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,543 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,543 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,549 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,549 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,549 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 73[\r][\n]"
DEBUG 2023-12-04 14:20:31,549 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,549 [main] org.apache.http.wire: {} http-outgoing-37 << "[{"path":"file1.raml","type":"FILE"},{"path":"file2.raml","type":"FILE"}]"
Fetching file file1.raml
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /designcenter/api-designer/projects/abcd/branches/master/files/file1.raml HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,550 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,551 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,552 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,552 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,552 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 39[\r][\n]"
DEBUG 2023-12-04 14:20:31,552 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,552 [main] org.apache.http.wire: {} http-outgoing-37 << ""#%RAML 1.0\ntitle: stuff\nversion: v1""
Fetching file file2.raml
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /designcenter/api-designer/projects/abcd/branches/master/files/file2.raml HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,553 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,554 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,554 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,554 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 15[\r][\n]"
DEBUG 2023-12-04 14:20:31,554 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,554 [main] org.apache.http.wire: {} http-outgoing-37 << ""the contents2""
New RAML contents match the old contents, will not update Design Center
Searching for assets for Exchange asset 'hello-api'
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Length: 242[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:38877[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:31,557 [main] org.apache.http.wire: {} http-outgoing-37 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"hello-api\",\"group_id\":\"the-org-id\"}"}"
Received mock Exchange query, saying we got 1 asset
DEBUG 2023-12-04 14:20:31,559 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:31,559 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:31,559 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 106[\r][\n]"
DEBUG 2023-12-04 14:20:31,559 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:20:31,559 [main] org.apache.http.wire: {} http-outgoing-37 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeDesignCenter_raml_not_changed ***
github-actions / Test Results
resolveAssetVersion_v1_there_but_not_v2 (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) failed
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Expected: is a string containing "Expected to find a v2 asset version <= our app version of 2.0.202010213 but did not! Asset versions found in Exchange were [1.0.201910193, 1.0.201910213]"
but: was "Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'"
java.lang.AssertionError:
Expected: is a string containing "Expected to find a v2 asset version <= our app version of 2.0.202010213 but did not! Asset versions found in Exchange were [1.0.201910193, 1.0.201910213]"
but: was "Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'"
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_v1_there_but_not_v2(ApiManagerDeployerTest.groovy:700)
*** Starting test resolveAssetVersion_v1_there_but_not_v2 ***
Waiting for server to come up
Server is supposedly up on port 41815
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,230 [main] org.apache.http.wire: {} http-outgoing-15 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,230 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,230 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,230 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:41815[\r][\n]"
DEBUG 2023-12-04 14:20:29,231 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,232 [main] org.apache.http.wire: {} http-outgoing-15 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,232 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,232 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,232 [main] org.apache.http.wire: {} http-outgoing-15 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,233 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,233 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,233 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,233 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,233 [main] org.apache.http.wire: {} http-outgoing-15 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:41815[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,234 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,235 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,235 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,235 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,235 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,235 [main] org.apache.http.wire: {} http-outgoing-15 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:41815[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,257 [main] org.apache.http.wire: {} http-outgoing-15 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,259 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,259 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,259 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,259 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,259 [main] org.apache.http.wire: {} http-outgoing-15 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.201910213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_v1_there_but_not_v2 ***
github-actions / Test Results
synchronizeApiDefinition_online_validate (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.synchronizeApiDefinition_online_validate(ApiManagerDeployerTest.groovy:1526)
*** Starting test synchronizeApiDefinition_online_validate ***
Waiting for server to come up
Server is supposedly up on port 33289
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:33289[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,294 [main] org.apache.http.wire: {} http-outgoing-16 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,296 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,296 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,296 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,296 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,296 [main] org.apache.http.wire: {} http-outgoing-16 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:33289[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,297 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:33289[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,298 [main] org.apache.http.wire: {} http-outgoing-16 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,299 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,299 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,299 [main] org.apache.http.wire: {} http-outgoing-16 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,301 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,301 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,301 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,301 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,301 [main] org.apache.http.wire: {} http-outgoing-16 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_online_validate ***
github-actions / Test Results
synchronizeApiDefinition_already_ismule4_wrong (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.synchronizeApiDefinition_already_ismule4_wrong(ApiManagerDeployerTest.groovy:1441)
*** Starting test synchronizeApiDefinition_already_ismule4_wrong ***
Waiting for server to come up
Server is supposedly up on port 35119
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:35119[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,312 [main] org.apache.http.wire: {} http-outgoing-17 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,314 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,314 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,314 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,314 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,314 [main] org.apache.http.wire: {} http-outgoing-17 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:35119[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,315 [main] org.apache.http.wire: {} http-outgoing-17 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:35119[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,316 [main] org.apache.http.wire: {} http-outgoing-17 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,318 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,318 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,318 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,318 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,318 [main] org.apache.http.wire: {} http-outgoing-17 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_ismule4_wrong ***
github-actions / Test Results
resolveAssetVersion_match_older_than_us (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=2.0.201910313, versionGroup=v2}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=2.0.201910313, versionGroup=v2}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_match_older_than_us(ApiManagerDeployerTest.groovy:861)
*** Starting test resolveAssetVersion_match_older_than_us ***
Waiting for server to come up
Server is supposedly up on port 39725
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,328 [main] org.apache.http.wire: {} http-outgoing-18 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,328 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,328 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,329 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:39725[\r][\n]"
DEBUG 2023-12-04 14:20:29,329 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,329 [main] org.apache.http.wire: {} http-outgoing-18 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,329 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,329 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,330 [main] org.apache.http.wire: {} http-outgoing-18 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,331 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,331 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,331 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,331 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,331 [main] org.apache.http.wire: {} http-outgoing-18 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,333 [main] org.apache.http.wire: {} http-outgoing-18 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,333 [main] org.apache.http.wire: {} http-outgoing-18 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,334 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:39725[\r][\n]"
DEBUG 2023-12-04 14:20:29,334 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,334 [main] org.apache.http.wire: {} http-outgoing-18 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,335 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,335 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:39725[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,336 [main] org.apache.http.wire: {} http-outgoing-18 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,339 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,339 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,339 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:20:29,339 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,339 [main] org.apache.http.wire: {} http-outgoing-18 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"2.0.201910313","versionGroup":"v2"},{"__typename":"Asset","assetId":"foo","version":"1.0.201910213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_match_older_than_us ***
github-actions / Test Results
resolveAssetVersion_exact_match_our_app_version (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_exact_match_our_app_version(ApiManagerDeployerTest.groovy:916)
*** Starting test resolveAssetVersion_exact_match_our_app_version ***
Waiting for server to come up
Server is supposedly up on port 44363
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:44363[\r][\n]"
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,356 [main] org.apache.http.wire: {} http-outgoing-19 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,357 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,357 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,357 [main] org.apache.http.wire: {} http-outgoing-19 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,358 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,358 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,358 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:44363[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,359 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,360 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:44363[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,361 [main] org.apache.http.wire: {} http-outgoing-19 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,363 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,364 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,364 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,364 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,364 [main] org.apache.http.wire: {} http-outgoing-19 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_exact_match_our_app_version ***
github-actions / Test Results
synchronizeApiDefinition_already_exists_no_changes (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.synchronizeApiDefinition_already_exists_no_changes(ApiManagerDeployerTest.groovy:1223)
*** Starting test synchronizeApiDefinition_already_exists_no_changes ***
Waiting for server to come up
Server is supposedly up on port 34645
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:34645[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,429 [main] org.apache.http.wire: {} http-outgoing-21 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,432 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:34645[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,433 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,434 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,434 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,434 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,434 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,434 [main] org.apache.http.wire: {} http-outgoing-21 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:34645[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,435 [main] org.apache.http.wire: {} http-outgoing-21 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,438 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,438 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,438 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,438 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,438 [main] org.apache.http.wire: {} http-outgoing-21 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_exists_no_changes ***
github-actions / Test Results
resolveAssetVersion_all_versions_are_newer (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) failed
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Expected: is a string containing "Expected to find a v1 asset version <= our app version of 1.0.202010213 but did not! Asset versions found in Exchange were [1.0.202510193, 1.0.202510203, 1.0.202511213]"
but: was "Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.202510193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202510203, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202511213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'"
java.lang.AssertionError:
Expected: is a string containing "Expected to find a v1 asset version <= our app version of 1.0.202010213 but did not! Asset versions found in Exchange were [1.0.202510193, 1.0.202510203, 1.0.202511213]"
but: was "Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.202510193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202510203, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202511213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'"
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_all_versions_are_newer(ApiManagerDeployerTest.groovy:1045)
*** Starting test resolveAssetVersion_all_versions_are_newer ***
Waiting for server to come up
Server is supposedly up on port 42317
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:42317[\r][\n]"
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,749 [main] org.apache.http.wire: {} http-outgoing-24 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,750 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,750 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,750 [main] org.apache.http.wire: {} http-outgoing-24 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,754 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,754 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,754 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,754 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,754 [main] org.apache.http.wire: {} http-outgoing-24 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:42317[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,756 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,757 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,757 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,757 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,757 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,757 [main] org.apache.http.wire: {} http-outgoing-24 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:42317[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,758 [main] org.apache.http.wire: {} http-outgoing-24 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,760 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,761 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,761 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:20:29,761 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,761 [main] org.apache.http.wire: {} http-outgoing-24 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.202510193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202510203","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202511213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_all_versions_are_newer ***
github-actions / Test Results
resolveAssetVersion_newer_versions_than_us_exist (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010203, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202011213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010203, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202011213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_newer_versions_than_us_exist(ApiManagerDeployerTest.groovy:977)
*** Starting test resolveAssetVersion_newer_versions_than_us_exist ***
Waiting for server to come up
Server is supposedly up on port 33089
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:33089[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,776 [main] org.apache.http.wire: {} http-outgoing-25 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,781 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,781 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,781 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,781 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,781 [main] org.apache.http.wire: {} http-outgoing-25 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:33089[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,782 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,784 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,785 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,785 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,785 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,786 [main] org.apache.http.wire: {} http-outgoing-25 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,788 [main] org.apache.http.wire: {} http-outgoing-25 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,788 [main] org.apache.http.wire: {} http-outgoing-25 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,788 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,788 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,789 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:33089[\r][\n]"
DEBUG 2023-12-04 14:20:29,789 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,789 [main] org.apache.http.wire: {} http-outgoing-25 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,790 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,790 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,790 [main] org.apache.http.wire: {} http-outgoing-25 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,792 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,792 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,792 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:20:29,792 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,793 [main] org.apache.http.wire: {} http-outgoing-25 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010203","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202011213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_newer_versions_than_us_exist ***
github-actions / Test Results
resolveAssetVersion_queries_properly (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.201910213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_queries_properly(ApiManagerDeployerTest.groovy:596)
*** Starting test resolveAssetVersion_queries_properly ***
Waiting for server to come up
Server is supposedly up on port 37965
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:37965[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,826 [main] org.apache.http.wire: {} http-outgoing-26 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,827 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,827 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:37965[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,828 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,829 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,829 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,829 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,829 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,829 [main] org.apache.http.wire: {} http-outgoing-26 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:37965[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,830 [main] org.apache.http.wire: {} http-outgoing-26 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,833 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,833 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,833 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,833 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,833 [main] org.apache.http.wire: {} http-outgoing-26 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.201910213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_queries_properly ***
github-actions / Test Results
synchronizeApiDefinition_already_exists_version_wrong (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.synchronizeApiDefinition_already_exists_version_wrong(ApiManagerDeployerTest.groovy:1332)
*** Starting test synchronizeApiDefinition_already_exists_version_wrong ***
Waiting for server to come up
Server is supposedly up on port 44119
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,847 [main] org.apache.http.wire: {} http-outgoing-27 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,847 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,847 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:44119[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,848 [main] org.apache.http.wire: {} http-outgoing-27 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,850 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,850 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,850 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,850 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,850 [main] org.apache.http.wire: {} http-outgoing-27 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:44119[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,851 [main] org.apache.http.wire: {} http-outgoing-27 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:44119[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,852 [main] org.apache.http.wire: {} http-outgoing-27 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,855 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,855 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,855 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,855 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,855 [main] org.apache.http.wire: {} http-outgoing-27 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_exists_version_wrong ***
github-actions / Test Results
synchronizeApiDefinition_does_not_exist (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.synchronizeApiDefinition_does_not_exist(ApiManagerDeployerTest.groovy:1118)
*** Starting test synchronizeApiDefinition_does_not_exist ***
Waiting for server to come up
Server is supposedly up on port 45917
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:45917[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,896 [main] org.apache.http.wire: {} http-outgoing-29 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,898 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,898 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,898 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,898 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,898 [main] org.apache.http.wire: {} http-outgoing-29 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:45917[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,899 [main] org.apache.http.wire: {} http-outgoing-29 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:45917[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,901 [main] org.apache.http.wire: {} http-outgoing-29 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,902 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,902 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,902 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:20:29,902 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,902 [main] org.apache.http.wire: {} http-outgoing-29 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_does_not_exist ***
github-actions / Test Results
resolveAssetVersion_both_versions_exist_v1_being_deployed_with_2_0_app_version (com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest) with error
./library/target/surefire-reports/TEST-com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.xml [took 0s]
Raw output
Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202110213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=2.0.201911213, versionGroup=v2}]]' with class 'java.util.Optional' to class 'java.util.List'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'Optional[[Asset{__typename=Asset, assetId=foo, version=1.0.201910193, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202010213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=1.0.202110213, versionGroup=v1}, Asset{__typename=Asset, assetId=foo, version=2.0.201911213, versionGroup=v2}]]' with class 'java.util.Optional' to class 'java.util.List'
at com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest.resolveAssetVersion_both_versions_exist_v1_being_deployed_with_2_0_app_version(ApiManagerDeployerTest.groovy:758)
*** Starting test resolveAssetVersion_both_versions_exist_v1_being_deployed_with_2_0_app_version ***
Waiting for server to come up
Server is supposedly up on port 41657
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:41657[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,910 [main] org.apache.http.wire: {} http-outgoing-30 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:20:29,912 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,912 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,912 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:20:29,912 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,912 [main] org.apache.http.wire: {} http-outgoing-30 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:41657[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,913 [main] org.apache.http.wire: {} http-outgoing-30 << "{"user":{"id":"the_id","username":"the_username","memberOfOrganizations":[{"name":"the-org-name","id":"the-org-id"}]}}"
Searching for assets for Exchange asset 'the-asset-id'
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:41657[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_392)[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:20:29,914 [main] org.apache.http.wire: {} http-outgoing-30 >> "{"query":"query GetAssets($asset_id: String!, $group_id: String!) { assets(asset: {groupId: $group_id, assetId: $asset_id}) { __typename assetId version versionGroup } }","variables":"{\"asset_id\":\"the-asset-id\",\"group_id\":\"the-org-id\"}"}"
DEBUG 2023-12-04 14:20:29,916 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:20:29,916 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:20:29,916 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 361[\r][\n]"
DEBUG 2023-12-04 14:20:29,916 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:20:29,916 [main] org.apache.http.wire: {} http-outgoing-30 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202010213","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"1.0.202110213","versionGroup":"v1"},{"__typename":"Asset","assetId":"foo","version":"2.0.201911213","versionGroup":"v2"}]}}"
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_both_versions_exist_v1_being_deployed_with_2_0_app_version ***