diff options
Diffstat (limited to 'vendor/github.com/DreamItGetIT/statuscake/fixtures')
16 files changed, 319 insertions, 0 deletions
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/auth_error.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/auth_error.json new file mode 100644 index 0000000..4f14be5 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/auth_error.json | |||
@@ -0,0 +1,4 @@ | |||
1 | { | ||
2 | "ErrNo": 0, | ||
3 | "Error": "Can not access account. Was both Username and API Key provided?" | ||
4 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslCreateOk.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslCreateOk.json new file mode 100644 index 0000000..615e2db --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslCreateOk.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "Success": true, | ||
3 | "Message": 143616, | ||
4 | "Input": { | ||
5 | "domain": "https://www.exemple.com", | ||
6 | "checkrate": "2073600", | ||
7 | "contact_groups": "", | ||
8 | "alert_reminder": true, | ||
9 | "alert_expiry": true, | ||
10 | "alert_broken": true, | ||
11 | "alert_mixed": true, | ||
12 | "alert_at": "7,18,2019" | ||
13 | } | ||
14 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslDeleteOk.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslDeleteOk.json new file mode 100644 index 0000000..a394239 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslDeleteOk.json | |||
@@ -0,0 +1,4 @@ | |||
1 | { | ||
2 | "Success": true, | ||
3 | "Message": "Deletion successful" | ||
4 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslListAllOk.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslListAllOk.json new file mode 100644 index 0000000..15c428f --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslListAllOk.json | |||
@@ -0,0 +1,100 @@ | |||
1 | [ | ||
2 | { | ||
3 | "id": "143615", | ||
4 | "checkrate": 2073600, | ||
5 | "paused": false, | ||
6 | "domain": "https://www.exemple.com", | ||
7 | "issuer_cn": "Let's Encrypt Authority X3", | ||
8 | "cert_score": "95", | ||
9 | "cipher_score": "100", | ||
10 | "cert_status": "CERT_OK", | ||
11 | "cipher": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | ||
12 | "valid_from_utc": "2019-05-28 01:22:00", | ||
13 | "valid_until_utc": "2019-08-26 01:22:00", | ||
14 | "mixed_content": [], | ||
15 | "flags": { | ||
16 | "is_extended": false, | ||
17 | "has_pfs": true, | ||
18 | "is_broken": false, | ||
19 | "is_expired": false, | ||
20 | "is_missing": false, | ||
21 | "is_revoked": false, | ||
22 | "has_mixed": false | ||
23 | }, | ||
24 | "contact_groups": [], | ||
25 | "alert_at": "7,18,2019", | ||
26 | "last_reminder": 2019, | ||
27 | "alert_reminder": true, | ||
28 | "alert_expiry": true, | ||
29 | "alert_broken": true, | ||
30 | "alert_mixed": true, | ||
31 | "last_updated_utc": "2019-06-20 10:11:03" | ||
32 | }, | ||
33 | { | ||
34 | "id": "143616", | ||
35 | "checkrate": 2073600, | ||
36 | "paused": false, | ||
37 | "domain": "https://www.exemple.com", | ||
38 | "issuer_cn": "Let's Encrypt Authority X3", | ||
39 | "cert_score": "95", | ||
40 | "cipher_score": "100", | ||
41 | "cert_status": "CERT_OK", | ||
42 | "cipher": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | ||
43 | "valid_from_utc": "2019-05-28 01:22:00", | ||
44 | "valid_until_utc": "2019-08-26 01:22:00", | ||
45 | "mixed_content": [ | ||
46 | { | ||
47 | "type": "img", | ||
48 | "src": "http://example.com/image.gif" | ||
49 | } | ||
50 | ], | ||
51 | "flags": { | ||
52 | "is_extended": false, | ||
53 | "has_pfs": true, | ||
54 | "is_broken": false, | ||
55 | "is_expired": false, | ||
56 | "is_missing": false, | ||
57 | "is_revoked": false, | ||
58 | "has_mixed": false | ||
59 | }, | ||
60 | "contact_groups": ["12","13","34"], | ||
61 | "alert_at": "7,18,2019", | ||
62 | "last_reminder": 2019, | ||
63 | "alert_reminder": true, | ||
64 | "alert_expiry": true, | ||
65 | "alert_broken": true, | ||
66 | "alert_mixed": true, | ||
67 | "last_updated_utc": "2019-06-20 10:23:14" | ||
68 | }, | ||
69 | { | ||
70 | "id": "143617", | ||
71 | "checkrate": 2073600, | ||
72 | "paused": false, | ||
73 | "domain": "https://www.exemple.com", | ||
74 | "issuer_cn": "Let's Encrypt Authority X3", | ||
75 | "cert_score": "95", | ||
76 | "cipher_score": "100", | ||
77 | "cert_status": "CERT_OK", | ||
78 | "cipher": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | ||
79 | "valid_from_utc": "2019-05-28 01:22:00", | ||
80 | "valid_until_utc": "2019-08-26 01:22:00", | ||
81 | "mixed_content": [], | ||
82 | "flags": { | ||
83 | "is_extended": false, | ||
84 | "has_pfs": true, | ||
85 | "is_broken": false, | ||
86 | "is_expired": false, | ||
87 | "is_missing": false, | ||
88 | "is_revoked": false, | ||
89 | "has_mixed": false | ||
90 | }, | ||
91 | "contact_groups": [], | ||
92 | "alert_at": "7,18,2019", | ||
93 | "last_reminder": 2019, | ||
94 | "alert_reminder": true, | ||
95 | "alert_expiry": true, | ||
96 | "alert_broken": true, | ||
97 | "alert_mixed": true, | ||
98 | "last_updated_utc": "2019-06-20 10:23:20" | ||
99 | } | ||
100 | ] | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslUpdateOk.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslUpdateOk.json new file mode 100644 index 0000000..23b5932 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/sslUpdateOk.json | |||
@@ -0,0 +1,4 @@ | |||
1 | { | ||
2 | "Success": true, | ||
3 | "Message": "SSL test has been updated successfully" | ||
4 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_all_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_all_ok.json new file mode 100644 index 0000000..4dd6b51 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_all_ok.json | |||
@@ -0,0 +1,70 @@ | |||
1 | [ | ||
2 | { | ||
3 | "id": "12345", | ||
4 | "paused": false, | ||
5 | "domain": "https://google.com", | ||
6 | "cert_score": "95", | ||
7 | "cipher_score": "100", | ||
8 | "cert_status": "CERT_OK", | ||
9 | "cipher": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", | ||
10 | "valid_from_utc": "2017-10-10 14:06:00", | ||
11 | "valid_until_utc": "2017-12-29 00:00:00", | ||
12 | "mixed_content": [ | ||
13 | { | ||
14 | "type": "img", | ||
15 | "src": "http://example.com/image.gif" | ||
16 | } | ||
17 | ], | ||
18 | "flags": { | ||
19 | "is_extended": false, | ||
20 | "has_pfs": true, | ||
21 | "is_broken": false, | ||
22 | "is_expired": false, | ||
23 | "is_missing": false, | ||
24 | "is_revoked": false, | ||
25 | "is_mixed": false | ||
26 | }, | ||
27 | "contact_groups": [12, 13, 14], | ||
28 | "alert_at": "1,7,30", | ||
29 | "last_reminder": 0, | ||
30 | "alert_reminder": false, | ||
31 | "alert_expiry": false, | ||
32 | "alert_broken": false, | ||
33 | "alert_mixed": false, | ||
34 | "last_updated_utc": "2017-10-24 09:02:25" | ||
35 | }, | ||
36 | { | ||
37 | "id": "12346", | ||
38 | "paused": false, | ||
39 | "domain": "https://google2.com", | ||
40 | "cert_score": "95", | ||
41 | "cipher_score": "100", | ||
42 | "cert_status": "CERT_OK", | ||
43 | "cipher": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", | ||
44 | "valid_from_utc": "2017-10-10 14:06:00", | ||
45 | "valid_until_utc": "2017-12-29 00:00:00", | ||
46 | "mixed_content": [ | ||
47 | { | ||
48 | "type": "img", | ||
49 | "src": "http://example.com/image.gif" | ||
50 | } | ||
51 | ], | ||
52 | "flags": { | ||
53 | "is_extended": false, | ||
54 | "has_pfs": true, | ||
55 | "is_broken": false, | ||
56 | "is_expired": false, | ||
57 | "is_missing": false, | ||
58 | "is_revoked": false, | ||
59 | "is_mixed": false | ||
60 | }, | ||
61 | "contact_groups": [12, 13, 14], | ||
62 | "alert_at": "1,7,30", | ||
63 | "last_reminder": 0, | ||
64 | "alert_reminder": false, | ||
65 | "alert_expiry": false, | ||
66 | "alert_broken": false, | ||
67 | "alert_mixed": false, | ||
68 | "last_updated_utc": "2017-10-24 09:02:25" | ||
69 | } | ||
70 | ] | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_create_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_create_ok.json new file mode 100644 index 0000000..c7734e0 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_create_ok.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "Success": true, | ||
3 | "Message": 12345, | ||
4 | "Input": { | ||
5 | "domain": "https://example.com", | ||
6 | "checkrate": 86400, | ||
7 | "contact_groups": "1000,2000", | ||
8 | "alert_reminder": false, | ||
9 | "alert_expiry": false, | ||
10 | "alert_broken": false, | ||
11 | "alert_at": "59,60,61" | ||
12 | } | ||
13 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_error.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_error.json new file mode 100644 index 0000000..5f0f4d5 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_error.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "Success": false, | ||
3 | "Message": "Error creating test", | ||
4 | "Input": { | ||
5 | "domain": "https://example.com", | ||
6 | "checkrate": 86400, | ||
7 | "contact_groups": "1000,2000", | ||
8 | "alert_reminder": false, | ||
9 | "alert_expiry": false, | ||
10 | "alert_broken": false, | ||
11 | "alert_at": "59,60,61" | ||
12 | } | ||
13 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_ok.json new file mode 100644 index 0000000..f77f4f3 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/ssls_update_ok.json | |||
@@ -0,0 +1,4 @@ | |||
1 | { | ||
2 | "Success": true, | ||
3 | "Message": "SSL test has been updated successfully" | ||
4 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_all_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_all_ok.json new file mode 100644 index 0000000..dee80d4 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_all_ok.json | |||
@@ -0,0 +1,23 @@ | |||
1 | [ | ||
2 | { | ||
3 | "TestID": 100, | ||
4 | "Paused": false, | ||
5 | "TestType": "HTTP", | ||
6 | "WebsiteName": "www 1", | ||
7 | "ContactGroup": ["1"], | ||
8 | "Status": "Up", | ||
9 | "Uptime": 100, | ||
10 | "NodeLocations": ["foo", "bar"] | ||
11 | }, | ||
12 | { | ||
13 | "TestID": 101, | ||
14 | "Paused": true, | ||
15 | "TestType": "HTTP", | ||
16 | "WebsiteName": "www 2", | ||
17 | "ContactGroup": ["2"], | ||
18 | "Status": "Down", | ||
19 | "Uptime": 0, | ||
20 | "NodeLocations": ["foo"], | ||
21 | "TestTags": ["test1", "test2"] | ||
22 | } | ||
23 | ] | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_error.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_error.json new file mode 100644 index 0000000..6fad58e --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_error.json | |||
@@ -0,0 +1,5 @@ | |||
1 | { | ||
2 | "Success": false, | ||
3 | "Error": "this is an error" | ||
4 | } | ||
5 | |||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_ok.json new file mode 100644 index 0000000..0dd279b --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_delete_ok.json | |||
@@ -0,0 +1,6 @@ | |||
1 | { | ||
2 | "TestID": 6735, | ||
3 | "Affected": 1, | ||
4 | "Success": true, | ||
5 | "Message": "This Check Has Been Deleted. It can not be recovered." | ||
6 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_detail_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_detail_ok.json new file mode 100644 index 0000000..a64989b --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_detail_ok.json | |||
@@ -0,0 +1,39 @@ | |||
1 | { | ||
2 | "TestID": 6735, | ||
3 | "TestType": "HTTP", | ||
4 | "Paused": false, | ||
5 | "WebsiteName": "NL", | ||
6 | "CustomHeader": "{\"some\":{\"json\": [\"value\"]}}", | ||
7 | "UserAgent": "product/version (comment)", | ||
8 | "ContactGroups": [ | ||
9 | { | ||
10 | "ID": 536, | ||
11 | "Name": "Dummy ContactGroup", | ||
12 | "Email": "github-dreamitgetit-statuscake@maildrop.cc" | ||
13 | } | ||
14 | ], | ||
15 | "ContactID": 536, | ||
16 | "Status": "Up", | ||
17 | "Uptime": 0, | ||
18 | "CheckRate": 60, | ||
19 | "Timeout": 40, | ||
20 | "LogoImage": "", | ||
21 | "WebsiteHost": "Various", | ||
22 | "NodeLocations": [ | ||
23 | "foo", | ||
24 | "bar" | ||
25 | ], | ||
26 | "FindString": "", | ||
27 | "DoNotFind": false, | ||
28 | "LastTested": "2013-01-20 14:38:18", | ||
29 | "NextLocation": "USNY", | ||
30 | "Processing": false, | ||
31 | "ProcessingState": "Pretest", | ||
32 | "ProcessingOn": "dalas.localdomain", | ||
33 | "DownTimes": "0", | ||
34 | "UseJar": 0, | ||
35 | "PostRaw": "", | ||
36 | "FinalEndpoint": "", | ||
37 | "EnableSSLWarning": false, | ||
38 | "FollowRedirect": false | ||
39 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error.json new file mode 100644 index 0000000..a76c5eb --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "Issues": { | ||
3 | "WebsiteName": "issue a", | ||
4 | "WebsiteURL": "issue b", | ||
5 | "CheckRate": "issue c" | ||
6 | }, | ||
7 | "Success": false, | ||
8 | "Message": "Required Data is Missing." | ||
9 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error_slice_of_issues.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error_slice_of_issues.json new file mode 100644 index 0000000..02e98eb --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_error_slice_of_issues.json | |||
@@ -0,0 +1,5 @@ | |||
1 | { | ||
2 | "Issues": ["hello", "world"], | ||
3 | "Success": false, | ||
4 | "Message": "Required Data is Missing." | ||
5 | } | ||
diff --git a/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_ok.json b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_ok.json new file mode 100644 index 0000000..7c2dee2 --- /dev/null +++ b/vendor/github.com/DreamItGetIT/statuscake/fixtures/tests_update_ok.json | |||
@@ -0,0 +1,6 @@ | |||
1 | { | ||
2 | "Issues": {}, | ||
3 | "Success": true, | ||
4 | "Message": "", | ||
5 | "InsertID": 1234 | ||
6 | } | ||