Skip to content

Commit 0b491b5

Browse files
committed
cleanup the debug steps
1 parent 3ba0923 commit 0b491b5

2 files changed

Lines changed: 2 additions & 52 deletions

File tree

azure/templates/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ parameters:
88

99
steps:
1010
- task: UsePythonVersion@0
11-
displayName: "Use Python ${{ parameters.python_version }}"
11+
displayName: 'Use Python ${{ parameters.python_version }}'
1212
inputs:
13-
versionSpec: ${{ parameters.python_version }}
13+
versionSpec: '${{ parameters.python_version }}'
1414

1515
- task: s3-cache-action@1
1616
inputs:

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

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,6 @@ describe("express with google upstream and botli decompress", function () {
5858
.expect(200, done);
5959
});
6060

61-
it("[DEBUG] returns good content for / with accept-encoding and User-Agent", (done) => {
62-
request(server)
63-
.get("/")
64-
.redirects(1)
65-
.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")
66-
.set("Accept-Encoding", "gzip, deflate")
67-
.set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
68-
// .expect(r => {
69-
// expect(r.text).to.be.a("string").and.satisfy(body => body.startsWith("<!doctype html>"));
70-
// assert.equal(r.headers["content-encoding"], "gzip");
71-
// })
72-
// .expect(200, done);
73-
74-
.expect((res) => {
75-
console.log("DEBUG status:", res.status);
76-
console.log("DEBUG headers:", res.headers);
77-
const snippet = (res.text || "").slice(0, 500);
78-
console.log("DEBUG body first 500 chars:\n", snippet);
79-
})
80-
.expect(200, done);
81-
});
82-
8361
it("returns good content for / with chrome headers", (done) => {
8462
request(server)
8563
.get("/")
@@ -102,34 +80,6 @@ describe("express with google upstream and botli decompress", function () {
10280
.expect(200, done);
10381
});
10482

105-
it("[DEBUG] returns good content for / with chrome headers", (done) => {
106-
request(server)
107-
.get("/")
108-
.redirects(1)
109-
.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")
110-
.set("Accept-Encoding", "gzip, deflate")
111-
.set("Cache-Control", "no-cache")
112-
.set("Connection", "keep-alive")
113-
.set("Pragma", "no-cache")
114-
.set("Sec-Fetch-Dest", "document")
115-
.set("Sec-Fetch-Mode", "navigate")
116-
.set("Sec-Fetch-Site", "none")
117-
.set("Sec-Fetch-User", "?1")
118-
.set("Upgrade-Insecure-Requests", "1")
119-
.set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36")
120-
// .expect(r => {
121-
// expect(r.text).to.be.a("string").and.satisfy(body => body.startsWith("<!doctype html>"));
122-
// assert.equal(r.headers["content-encoding"], "gzip");
123-
// })
124-
// .expect(200, done);
125-
.expect((res) => {
126-
console.log("DEBUG status:", res.status);
127-
console.log("DEBUG headers:", res.headers);
128-
const snippet = (res.text || "").slice(0, 500);
129-
console.log("DEBUG body first 500 chars:\n", snippet);
130-
})
131-
.expect(200, done);
132-
});
13383
});
13484

13585

0 commit comments

Comments
 (0)