Skip to content

Commit

Permalink
Fix tests errors
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Dec 24, 2023
1 parent 63486b8 commit f966462
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-and-test-docker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Docker images

# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
on:
push:
branches:
- skip_for_now
pull_request:
branches:
- main

jobs:
build-docker-and-test:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# Docker hub.
name: Publish Docker image

# on:
# push:
# tags:
# - 'v*'
on:
push:
tags:
# - 'v*'
- skip_for_now

jobs:
push-docker-image:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
**/__pycache__
config.log
config.status
4 changes: 2 additions & 2 deletions chrome/curl_chrome119
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ dir=${0%/*}
--ciphers TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-CHACHA20-POLY1305,ECDHE-RSA-CHACHA20-POLY1305,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA,AES128-GCM-SHA256,AES256-GCM-SHA384,AES128-SHA,AES256-SHA \
-H 'sec-ch-ua: "Google Chrome";v="119", "Not;A=Brand";v="8", "Chromium";v="119"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-Mode: navigate' \
Expand Down
4 changes: 2 additions & 2 deletions chrome/patches/curl-impersonate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ index 562c05c99..b99c085d5 100644
* Store nghttp2 version info in this buffer.
diff --git a/lib/impersonate.c b/lib/impersonate.c
new file mode 100644
index 000000000..9e951de55
index 000000000..164f3b8a4
--- /dev/null
+++ b/lib/impersonate.c
@@ -0,0 +1,568 @@
Expand Down Expand Up @@ -1488,7 +1488,7 @@ index 000000000..9e951de55
+ .http_headers = {
+ "sec-ch-ua: \"Google Chrome\";v=\"119\", \"Chromium\";v=\"119\", \"Not?A_Brand\";v=\"24\"",
+ "sec-ch-ua-mobile: ?0",
+ "sec-ch-ua-platform: \"Windows\"",
+ "sec-ch-ua-platform: \"macOS\"",
+ "Upgrade-Insecure-Requests: 1",
+ "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
+ "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
Expand Down
3 changes: 1 addition & 2 deletions tests/signatures/chrome_119.0.6045.199_macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ signature:
- 'sec-ch-ua-mobile: ?0'
- 'sec-ch-ua-platform: "macOS"'
- 'upgrade-insecure-requests: 1'
- 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
- 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
- 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'
- 'sec-fetch-site: none'
- 'sec-fetch-mode: navigate'
Expand Down
4 changes: 2 additions & 2 deletions tests/targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- - curl_chrome99_android
- null
- null
- chrome_99.0.4844.73_android12-pixel6
- chrome_99.0.4844.73_android12
- - curl_edge99
- null
- null
Expand Down Expand Up @@ -126,7 +126,7 @@
- - minicurl
- CURL_IMPERSONATE: chrome99_android
- libcurl-impersonate-chrome
- chrome_99.0.4844.73_android12-pixel6
- chrome_99.0.4844.73_android12
- - minicurl
- CURL_IMPERSONATE: edge99
- libcurl-impersonate-chrome
Expand Down

0 comments on commit f966462

Please sign in to comment.