File: topsites.rs

package info (click to toggle)
rust-rustls 0.23.31%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid
  • size: 13,728 kB
  • sloc: sh: 199; python: 181; makefile: 19
file content (95 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// These tests check we can handshake with a selection of
// common hosts.
//
// Rules: only hosts that can really handle the traffic.

#[allow(dead_code)]
mod common;

mod online {
    use super::common::TlsClient;

    fn check(hostname: &str) {
        TlsClient::new(hostname)
            .expect("HTTP/1.[01] ")
            .go()
            .unwrap()
    }

    #[test]
    #[ignore]
    fn joe() {
        check("jbp.io")
    }

    #[test]
    #[ignore]
    fn google() {
        check("google.com")
    }

    #[test]
    #[ignore]
    fn github() {
        check("github.com")
    }

    #[test]
    #[ignore]
    fn aws() {
        check("aws.amazon.com")
    }

    #[test]
    #[ignore]
    fn microsoft() {
        check("www.microsoft.com")
    }

    #[test]
    #[ignore]
    fn wikipedia() {
        check("www.wikipedia.org")
    }

    #[test]
    #[ignore]
    fn twitter() {
        check("twitter.com")
    }

    #[test]
    #[ignore]
    fn facebook() {
        check("www.facebook.com")
    }

    #[test]
    #[ignore]
    fn baidu() {
        check("www.baidu.com")
    }

    #[test]
    #[ignore]
    fn netflix() {
        check("www.netflix.com")
    }

    #[test]
    #[ignore]
    fn stackoverflow() {
        check("stackoverflow.com")
    }

    #[test]
    #[ignore]
    fn apple() {
        check("www.apple.com")
    }

    #[test]
    fn cloudflare_1_1_1_1_dns() {
        check("1.1.1.1")
    }
}