Skip to content

chore: Add logs

chore: Add logs #295

GitHub Actions / Test Results failed Dec 4, 2023 in 0s

11 errors, 2 fail, 287 pass in 7m 5s

300 tests  ±0   287 ✔️ ±0   7m 5s ⏱️ -26s
  35 suites ±0       0 💤 ±0 
  35 files   ±0       2 ±0   11 🔥 ±0 

Results for commit e8dcae3. ± Comparison against earlier commit 3ba4c3f.

Annotations

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.DesignCenterDeployerTest

See this annotation in the file changed.

@github-actions 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 35725
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:46:35,833 [main] org.apache.http.wire: {} http-outgoing-37 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:35,833 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,833 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:35,833 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,834 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,834 [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:46:35,834 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,834 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,834 [main] org.apache.http.wire: {} http-outgoing-37 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:35,835 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,835 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,835 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:35,835 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,835 [main] org.apache.http.wire: {} http-outgoing-37 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,836 [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:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,836 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [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:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 >> "GET /designcenter/api-designer/projects HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:46:35,837 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,838 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,838 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,838 [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:46:35,838 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,838 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,839 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,839 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,839 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 34[\r][\n]"
DEBUG 2023-12-04 14:46:35,839 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,839 [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:46:35,841 [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:46:35,841 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [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:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,842 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,847 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,847 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,847 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 73[\r][\n]"
DEBUG 2023-12-04 14:46:35,847 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,847 [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:46:35,848 [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:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,848 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,849 [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:46:35,849 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,849 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,850 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,850 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,850 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 39[\r][\n]"
DEBUG 2023-12-04 14:46:35,850 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,850 [main] org.apache.http.wire: {} http-outgoing-37 << ""#%RAML 1.0\ntitle: stuff\nversion: v1""
Fetching file file2.raml
DEBUG 2023-12-04 14:46:35,851 [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:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-ORGANIZATION-ID: the-org-id[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "cache-control: no-cache[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "X-OWNER-ID: the_id[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [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:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,851 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,852 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,852 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,852 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 15[\r][\n]"
DEBUG 2023-12-04 14:46:35,852 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,852 [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:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Length: 242[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Host: localhost:35725[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [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:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [main] org.apache.http.wire: {} http-outgoing-37 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:35,855 [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:46:35,857 [main] org.apache.http.wire: {} http-outgoing-37 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:35,857 [main] org.apache.http.wire: {} http-outgoing-37 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:35,857 [main] org.apache.http.wire: {} http-outgoing-37 << "content-length: 106[\r][\n]"
DEBUG 2023-12-04 14:46:35,857 [main] org.apache.http.wire: {} http-outgoing-37 << "[\r][\n]"
DEBUG 2023-12-04 14:46:35,857 [main] org.apache.http.wire: {} http-outgoing-37 << "{"data":{"assets":[{"__typename":"Asset","assetId":"foo","version":"1.0.201910193","versionGroup":"v1"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeDesignCenter_raml_not_changed ***

Check warning on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 46563
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:46563[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [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:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,603 [main] org.apache.http.wire: {} http-outgoing-15 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,605 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,605 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,605 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,605 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,605 [main] org.apache.http.wire: {} http-outgoing-15 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:46563[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [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:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,606 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,607 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,607 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,607 [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:46:33,636 [main] org.apache.http.wire: {} http-outgoing-15 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Host: localhost:46563[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [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:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [main] org.apache.http.wire: {} http-outgoing-15 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,637 [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:46:33,639 [main] org.apache.http.wire: {} http-outgoing-15 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,639 [main] org.apache.http.wire: {} http-outgoing-15 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,639 [main] org.apache.http.wire: {} http-outgoing-15 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:33,639 [main] org.apache.http.wire: {} http-outgoing-15 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,639 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_v1_there_but_not_v2 ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 45651
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:45651[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [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:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,677 [main] org.apache.http.wire: {} http-outgoing-16 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,679 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,679 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,679 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,679 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,679 [main] org.apache.http.wire: {} http-outgoing-16 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,680 [main] org.apache.http.wire: {} http-outgoing-16 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,680 [main] org.apache.http.wire: {} http-outgoing-16 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,680 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:45651[\r][\n]"
DEBUG 2023-12-04 14:46:33,681 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,681 [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:46:33,681 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,681 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,681 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,681 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,682 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,682 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,682 [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:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Host: localhost:45651[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [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:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [main] org.apache.http.wire: {} http-outgoing-16 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,683 [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:46:33,686 [main] org.apache.http.wire: {} http-outgoing-16 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,686 [main] org.apache.http.wire: {} http-outgoing-16 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,686 [main] org.apache.http.wire: {} http-outgoing-16 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:33,686 [main] org.apache.http.wire: {} http-outgoing-16 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,686 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_online_validate ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 42625
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,696 [main] org.apache.http.wire: {} http-outgoing-17 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,696 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,696 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,696 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:42625[\r][\n]"
DEBUG 2023-12-04 14:46:33,696 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,697 [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:46:33,697 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,697 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,697 [main] org.apache.http.wire: {} http-outgoing-17 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,698 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,698 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,698 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,698 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,698 [main] org.apache.http.wire: {} http-outgoing-17 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:42625[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [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:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,699 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [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:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Host: localhost:42625[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [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:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,700 [main] org.apache.http.wire: {} http-outgoing-17 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,701 [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:46:33,703 [main] org.apache.http.wire: {} http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,703 [main] org.apache.http.wire: {} http-outgoing-17 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,703 [main] org.apache.http.wire: {} http-outgoing-17 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:33,703 [main] org.apache.http.wire: {} http-outgoing-17 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,703 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_ismule4_wrong ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 46345
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,714 [main] org.apache.http.wire: {} http-outgoing-18 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,714 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,714 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,714 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:46345[\r][\n]"
DEBUG 2023-12-04 14:46:33,714 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,715 [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:46:33,715 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,715 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,715 [main] org.apache.http.wire: {} http-outgoing-18 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,717 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,717 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,717 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,717 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,717 [main] org.apache.http.wire: {} http-outgoing-18 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:46345[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [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:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,718 [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:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Host: localhost:46345[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [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:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [main] org.apache.http.wire: {} http-outgoing-18 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,719 [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:46:33,721 [main] org.apache.http.wire: {} http-outgoing-18 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,721 [main] org.apache.http.wire: {} http-outgoing-18 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,721 [main] org.apache.http.wire: {} http-outgoing-18 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:46:33,721 [main] org.apache.http.wire: {} http-outgoing-18 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,721 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_match_older_than_us ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 41439
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:41439[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [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:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,741 [main] org.apache.http.wire: {} http-outgoing-19 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,742 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,742 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,742 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,742 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,742 [main] org.apache.http.wire: {} http-outgoing-19 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:41439[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [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:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,743 [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:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Host: localhost:41439[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [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:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [main] org.apache.http.wire: {} http-outgoing-19 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,744 [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:46:33,747 [main] org.apache.http.wire: {} http-outgoing-19 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,747 [main] org.apache.http.wire: {} http-outgoing-19 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,747 [main] org.apache.http.wire: {} http-outgoing-19 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:33,747 [main] org.apache.http.wire: {} http-outgoing-19 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,747 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_exact_match_our_app_version ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 39609
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:39609[\r][\n]"
DEBUG 2023-12-04 14:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,796 [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:46:33,796 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,798 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,798 [main] org.apache.http.wire: {} http-outgoing-21 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:33,804 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,804 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,804 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:33,804 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,804 [main] org.apache.http.wire: {} http-outgoing-21 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:39609[\r][\n]"
DEBUG 2023-12-04 14:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,805 [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:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,805 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,806 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,806 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,806 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:33,806 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,806 [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:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Host: localhost:39609[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:33,807 [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:46:33,807 [main] org.apache.http.wire: {} http-outgoing-21 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:33,808 [main] org.apache.http.wire: {} http-outgoing-21 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:33,808 [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:46:33,810 [main] org.apache.http.wire: {} http-outgoing-21 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:33,810 [main] org.apache.http.wire: {} http-outgoing-21 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:33,810 [main] org.apache.http.wire: {} http-outgoing-21 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:33,810 [main] org.apache.http.wire: {} http-outgoing-21 << "[\r][\n]"
DEBUG 2023-12-04 14:46:33,810 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_exists_no_changes ***

Check warning on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 46175
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,089 [main] org.apache.http.wire: {} http-outgoing-24 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:46175[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [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:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,090 [main] org.apache.http.wire: {} http-outgoing-24 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:46175[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [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:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,095 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [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:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Host: localhost:46175[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [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:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [main] org.apache.http.wire: {} http-outgoing-24 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,096 [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:46:34,098 [main] org.apache.http.wire: {} http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,098 [main] org.apache.http.wire: {} http-outgoing-24 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,098 [main] org.apache.http.wire: {} http-outgoing-24 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:46:34,098 [main] org.apache.http.wire: {} http-outgoing-24 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,098 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_all_versions_are_newer ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 46203
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:46203[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [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:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,107 [main] org.apache.http.wire: {} http-outgoing-25 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,110 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,110 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,110 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,110 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,110 [main] org.apache.http.wire: {} http-outgoing-25 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:46203[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [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:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,111 [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:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Host: localhost:46203[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [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:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [main] org.apache.http.wire: {} http-outgoing-25 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,112 [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:46:34,114 [main] org.apache.http.wire: {} http-outgoing-25 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,114 [main] org.apache.http.wire: {} http-outgoing-25 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,114 [main] org.apache.http.wire: {} http-outgoing-25 << "content-length: 276[\r][\n]"
DEBUG 2023-12-04 14:46:34,114 [main] org.apache.http.wire: {} http-outgoing-25 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,114 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_newer_versions_than_us_exist ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 44631
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,137 [main] org.apache.http.wire: {} http-outgoing-26 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,137 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,137 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,137 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:44631[\r][\n]"
DEBUG 2023-12-04 14:46:34,137 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,137 [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:46:34,138 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,138 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,138 [main] org.apache.http.wire: {} http-outgoing-26 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,140 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,140 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,140 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,140 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,140 [main] org.apache.http.wire: {} http-outgoing-26 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:44631[\r][\n]"
DEBUG 2023-12-04 14:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,141 [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:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,141 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,142 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,142 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,142 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,142 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,142 [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:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Host: localhost:44631[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [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:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [main] org.apache.http.wire: {} http-outgoing-26 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,143 [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:46:34,146 [main] org.apache.http.wire: {} http-outgoing-26 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,146 [main] org.apache.http.wire: {} http-outgoing-26 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,146 [main] org.apache.http.wire: {} http-outgoing-26 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:34,146 [main] org.apache.http.wire: {} http-outgoing-26 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,146 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test resolveAssetVersion_queries_properly ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 39369
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:39369[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [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:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,157 [main] org.apache.http.wire: {} http-outgoing-27 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:39369[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [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:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,161 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,162 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,162 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,162 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,162 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,162 [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:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Host: localhost:39369[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [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:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [main] org.apache.http.wire: {} http-outgoing-27 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,163 [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:46:34,165 [main] org.apache.http.wire: {} http-outgoing-27 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,165 [main] org.apache.http.wire: {} http-outgoing-27 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,165 [main] org.apache.http.wire: {} http-outgoing-27 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:34,165 [main] org.apache.http.wire: {} http-outgoing-27 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,165 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_already_exists_version_wrong ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 41849
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:41849[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [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:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,206 [main] org.apache.http.wire: {} http-outgoing-29 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:41849[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [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:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,208 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,209 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,209 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,209 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,209 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,209 [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:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Host: localhost:41849[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [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:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [main] org.apache.http.wire: {} http-outgoing-29 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,210 [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:46:34,212 [main] org.apache.http.wire: {} http-outgoing-29 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,212 [main] org.apache.http.wire: {} http-outgoing-29 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,212 [main] org.apache.http.wire: {} http-outgoing-29 << "content-length: 191[\r][\n]"
DEBUG 2023-12-04 14:46:34,212 [main] org.apache.http.wire: {} http-outgoing-29 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,212 [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"}]}}"
Successful graphql response
GetAssets is returning data
Closing mock web server
Waiting for web server to close
Web server closed
*** Finishing test synchronizeApiDefinition_does_not_exist ***

Check failure on line 0 in com.avioconsulting.mule.deployment.internal.subdeployers.ApiManagerDeployerTest

See this annotation in the file changed.

@github-actions 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 40241
Authenticating to Anypoint as user 'the user'
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "POST /accounts/login HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Length: 49[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:40241[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [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:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,221 [main] org.apache.http.wire: {} http-outgoing-30 >> "{"username":"the user","password":"the password"}"
DEBUG 2023-12-04 14:46:34,224 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,224 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,224 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 28[\r][\n]"
DEBUG 2023-12-04 14:46:34,224 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,224 [main] org.apache.http.wire: {} http-outgoing-30 << "{"access_token":"the token"}"
Successfully authenticated
Fetching user information
DEBUG 2023-12-04 14:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "GET /accounts/api/me HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:40241[\r][\n]"
DEBUG 2023-12-04 14:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,225 [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:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,225 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,226 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,226 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,226 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 118[\r][\n]"
DEBUG 2023-12-04 14:46:34,226 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,226 [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:46:34,226 [main] org.apache.http.wire: {} http-outgoing-30 >> "POST /graph/api/v1/graphql HTTP/1.1[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Authorization: Bearer the token[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Length: 245[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Host: localhost:40241[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Connection: Keep-Alive[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [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:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [main] org.apache.http.wire: {} http-outgoing-30 >> "[\r][\n]"
DEBUG 2023-12-04 14:46:34,227 [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:46:34,228 [main] org.apache.http.wire: {} http-outgoing-30 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG 2023-12-04 14:46:34,228 [main] org.apache.http.wire: {} http-outgoing-30 << "Content-Type: application/json[\r][\n]"
DEBUG 2023-12-04 14:46:34,229 [main] org.apache.http.wire: {} http-outgoing-30 << "content-length: 361[\r][\n]"
DEBUG 2023-12-04 14:46:34,229 [main] org.apache.http.wire: {} http-outgoing-30 << "[\r][\n]"
DEBUG 2023-12-04 14:46:34,229 [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"}]}}"
Successful graphql response
GetAssets is returning data
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 ***