Skip to content

Commit

Permalink
Skip unreachable API in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiforest committed Oct 6, 2024
1 parent c044211 commit 967fdc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unittest/test_impersonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def test_customized_akamai_safari():
assert r["akamai_text"] == akamai


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_sig_hash_algs():
url = "https://tls.peet.ws/api/all"
safari_algs = [
Expand All @@ -160,6 +161,7 @@ def test_customized_extra_fp_sig_hash_algs():
assert safari_algs == result_algs


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_tls_min_version():
url = "https://tls.peet.ws/api/all"
safari_min_version = CurlSslVersion.TLSv1_0
Expand All @@ -171,6 +173,7 @@ def test_customized_extra_fp_tls_min_version():
assert len(ex["versions"]) >= 4


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_grease():
url = "https://tls.peet.ws/api/all"
fp = requests.ExtraFingerprints(tls_grease=True)
Expand All @@ -196,6 +199,7 @@ def test_customized_extra_fp_permute():
assert extensions != "65037-65281-0-11-23-5-18-27-16-17513-10-35-43-45-13-51"


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_cert_compression():
url = "https://tls.peet.ws/api/all"
fp = requests.ExtraFingerprints(tls_cert_compression="zlib")
Expand All @@ -207,13 +211,15 @@ def test_customized_extra_fp_cert_compression():
assert result_algs[0] == "zlib (1)"


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_stream_weight():
url = "https://tls.peet.ws/api/all"
fp = requests.ExtraFingerprints(http2_stream_weight=64)
r = requests.get(url, extra_fp=fp).json()
assert r["http2"]["sent_frames"][2]["priority"]["weight"] == 64


@pytest.mark.skip(reason="Unstable API")
def test_customized_extra_fp_stream_exclusive():
url = "https://tls.peet.ws/api/all"
fp = requests.ExtraFingerprints(http2_stream_exclusive=0)
Expand Down

0 comments on commit 967fdc2

Please sign in to comment.