-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse-proxy-nginx.conf: switch to cached endpoint by default
Now that we rolled out caching, we should use it locally to maybe detect the error with caching earlier.
- Loading branch information
Showing
4 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ describe('HTTP cache tests', () => { | |
cy.login('[email protected]') | ||
|
||
// first request is a cache miss | ||
cy.request(Cypress.env('API_ROOT_URL_CACHED') + uri + '.jsonhal').then((response) => { | ||
cy.request(`${uri}.jsonhal`).then((response) => { | ||
const headers = response.headers | ||
expect(headers.xkey).to.eq( | ||
'a4211c11211c c462edd869f3 5e2028c55ee4 a4211c112939 f17470519474 1a0f84e322c8 3ef17bd1df72 4f0c657fecef 44dcc7493c65 cfccaecd4bad 318e064ea0c9 /api/content_types' | ||
|
@@ -32,7 +32,7 @@ describe('HTTP cache tests', () => { | |
cy.login('[email protected]') | ||
|
||
// first request is a cache miss | ||
cy.request(Cypress.env('API_ROOT_URL_CACHED') + uri + '.jsonhal').then((response) => { | ||
cy.request(`${uri}.jsonhal`).then((response) => { | ||
const headers = response.headers | ||
expect(headers.xkey).to.eq('318e064ea0c9') | ||
expect(headers['x-cache']).to.eq('MISS') | ||
|
@@ -52,7 +52,7 @@ describe('HTTP cache tests', () => { | |
cy.login('[email protected]') | ||
|
||
// first request is a cache miss | ||
cy.request(Cypress.env('API_ROOT_URL_CACHED') + uri + '.jsonhal').then((response) => { | ||
cy.request(`${uri}.jsonhal`).then((response) => { | ||
const headers = response.headers | ||
expect(headers.xkey).to.eq( | ||
/* campCollaboration for [email protected] */ | ||
|
@@ -200,7 +200,7 @@ describe('HTTP cache tests', () => { | |
// ensure cache was invalidated | ||
cy.login('[email protected]') | ||
cy.request({ | ||
url: Cypress.env('API_ROOT_URL_CACHED') + uri + '.jsonhal', | ||
url: `${uri}.jsonhal`, | ||
failOnStatusCode: false, | ||
}).then((response) => { | ||
expect(response.status).to.eq(404) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters