[1.15] Unblock release (#1499)

* tweak test to pass consistently

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* cleanup import

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

---------

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
This commit is contained in:
Cassie Coyle 2025-08-14 10:35:19 -05:00 committed by GitHub
parent 2925a41286
commit 7c8298aed3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -75,8 +75,10 @@ public class BindingIT extends BaseIT {
assertEquals(404, e.getHttpStatusCode()); assertEquals(404, e.getHttpStatusCode());
// The HTTP binding must set `errorIfNot2XX` to false in component metadata for the error payload to be // The HTTP binding must set `errorIfNot2XX` to false in component metadata for the error payload to be
// consistent between HTTP and gRPC. // consistent between HTTP and gRPC.
assertTrue(new String(e.getPayload()).contains("\"message\":\"Not Found\"")); assertTrue(new String(e.getPayload()).contains("message"));
assertTrue(new String(e.getPayload()).contains("\"documentation_url\":\"https://docs.github.com/rest\"")); assertTrue(new String(e.getPayload()).contains("Not Found"));
assertTrue(new String(e.getPayload()).contains("documentation_url"));
assertTrue(new String(e.getPayload()).contains("https://docs.github.com/rest"));
} }
}, 10000); }, 10000);
} }