Skip to content

Commit 3ba0923

Browse files
committed
debug
1 parent 418b470 commit 3ba0923

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docker/sync-wrap/src/app.google.spec.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("express with google upstream and botli decompress", function () {
1919
env = process.env;
2020
let app = require("./app");
2121
app.setup({
22-
UPSTREAM: "https://www.google.co.uk",
22+
UPSTREAM: "www.google.co.uk",
2323
LOG_LEVEL: "DEBUG",
2424
UNBOTLI: "true"
2525
});
@@ -47,6 +47,7 @@ describe("express with google upstream and botli decompress", function () {
4747
it("returns good content for / with accept-encoding and User-Agent", (done) => {
4848
request(server)
4949
.get("/")
50+
.redirects(1)
5051
.set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
5152
.set("Accept-Encoding", "gzip, deflate")
5253
.set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
@@ -60,6 +61,7 @@ describe("express with google upstream and botli decompress", function () {
6061
it("[DEBUG] returns good content for / with accept-encoding and User-Agent", (done) => {
6162
request(server)
6263
.get("/")
64+
.redirects(1)
6365
.set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
6466
.set("Accept-Encoding", "gzip, deflate")
6567
.set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
@@ -81,6 +83,7 @@ describe("express with google upstream and botli decompress", function () {
8183
it("returns good content for / with chrome headers", (done) => {
8284
request(server)
8385
.get("/")
86+
.redirects(1)
8487
.set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
8588
.set("Accept-Encoding", "gzip, deflate")
8689
.set("Cache-Control", "no-cache")
@@ -102,6 +105,7 @@ describe("express with google upstream and botli decompress", function () {
102105
it("[DEBUG] returns good content for / with chrome headers", (done) => {
103106
request(server)
104107
.get("/")
108+
.redirects(1)
105109
.set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
106110
.set("Accept-Encoding", "gzip, deflate")
107111
.set("Cache-Control", "no-cache")
@@ -138,7 +142,7 @@ describe("express with google upstream without botli decompress", function () {
138142

139143
let app = require("./app");
140144
app.setup({
141-
UPSTREAM: "https://www.google.co.uk",
145+
UPSTREAM: "www.google.co.uk",
142146
LOG_LEVEL: (process.env.NODE_ENV === "test" ? "warn": "debug"),
143147
UNBOTLI: "false"
144148
});
@@ -159,6 +163,7 @@ describe("express with google upstream without botli decompress", function () {
159163
it("returns content-encoding br / with accept-encoding and User-Agent", (done) => {
160164
request(server)
161165
.get("/")
166+
.redirects(1)
162167
.set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
163168
.set("Accept-Encoding", "gzip, deflate, br")
164169
.set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")

0 commit comments

Comments
 (0)