Add release headers service, runtime-aware API header handling, and i18n updates for release configuration
- Implement `releaseHeaders.js` to manage release-related HTTP headers. - Update requests to include runtime-based release headers. - Extend i18n phrases across multiple locales for release runtime and configuration labels. - Enhance unit tests for header building and API availability error handling.
This commit is contained in:
@@ -29,6 +29,19 @@ function getLiveSettings() {
|
||||
|
||||
test.describe.configure({ mode: "serial" });
|
||||
|
||||
test("api-v2 gateway ping serves a trusted TLS API response", async ({ request }) => {
|
||||
const response = await request.get("https://api-v2.truckwash.io/ping");
|
||||
const body = await response.json();
|
||||
|
||||
expect(response.ok()).toBeTruthy();
|
||||
expect(body).toMatchObject({
|
||||
success: true,
|
||||
data: {
|
||||
message: "pong",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
test.describe("Live smoke release gate", () => {
|
||||
test.skip(!liveSmokeEnabled, "Set PLAYWRIGHT_BASE_URL and seeded live credentials to run the live smoke gate.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user