floodgate 0.0.17 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/floodgate/client.rb +6 -1
- data/lib/floodgate/config.rb +4 -0
- data/lib/floodgate/version.rb +1 -1
- data/spec/cassettes/Floodgate_Client/_add_ip_address/when_an_ip_address_is_specified/adds_it_to_the_list_of_allowed_ip_addresses.yml +35 -25
- data/spec/cassettes/Floodgate_Client/_allowed_ip_addresses/returns_the_allowed_ip_addresses.yml +21 -15
- data/spec/cassettes/Floodgate_Client/_close/changes_filter_traffic_from_false_to_true.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_my_ip_address/is_an_ip_address.yml +4 -4
- data/spec/cassettes/Floodgate_Client/_open/changes_filter_traffic_from_true_to_false.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_remove_ip_address/when_an_ip_address_is_specified/removes_it_from_the_list_of_allowed_ip_addresses.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_a_redirect_url_is_specified/changes_the_redirect_url.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_nil_is_specified/clears_the_redirect_url.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_not_valid/returns_the_default_status.yml +7 -5
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_enabled/filter_traffic_is_true.yml +7 -5
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_not_enabled/filter_traffic_is_false.yml +7 -5
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri:
|
5
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: app%5Bfilter_traffic%5D=true&api_token=f28b5848e158f96e96168aa37f0002f2
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- FloodgateAgent
|
12
|
+
Accept:
|
13
|
+
- application/vnd.floodgate-v1+json
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
@@ -21,15 +23,15 @@ http_interactions:
|
|
21
23
|
content-type:
|
22
24
|
- application/json
|
23
25
|
date:
|
24
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:45 GMT
|
25
27
|
etag:
|
26
28
|
- "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
|
27
29
|
server:
|
28
30
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 9d47e478-ad37-41ef-9296-b02baef6266d
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.013881'
|
33
35
|
content-length:
|
34
36
|
- '125'
|
35
37
|
connection:
|
@@ -38,16 +40,18 @@ http_interactions:
|
|
38
40
|
encoding: UTF-8
|
39
41
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
40
42
|
http_version:
|
41
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
46
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
45
47
|
body:
|
46
48
|
encoding: US-ASCII
|
47
49
|
string: ''
|
48
50
|
headers:
|
49
51
|
User-Agent:
|
50
52
|
- FloodgateAgent
|
53
|
+
Accept:
|
54
|
+
- application/vnd.floodgate-v1+json
|
51
55
|
response:
|
52
56
|
status:
|
53
57
|
code: 200
|
@@ -58,15 +62,15 @@ http_interactions:
|
|
58
62
|
content-type:
|
59
63
|
- application/json
|
60
64
|
date:
|
61
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:45 GMT
|
62
66
|
etag:
|
63
67
|
- "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
|
64
68
|
server:
|
65
69
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
66
70
|
x-request-id:
|
67
|
-
-
|
71
|
+
- b698a198-78d8-45cc-9414-54c4e31e34aa
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.008886'
|
70
74
|
content-length:
|
71
75
|
- '125'
|
72
76
|
connection:
|
@@ -75,16 +79,18 @@ http_interactions:
|
|
75
79
|
encoding: UTF-8
|
76
80
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
77
81
|
http_version:
|
78
|
-
recorded_at:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
|
79
83
|
- request:
|
80
84
|
method: put
|
81
|
-
uri:
|
85
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
82
86
|
body:
|
83
87
|
encoding: US-ASCII
|
84
88
|
string: app%5Bfilter_traffic%5D=false&api_token=f28b5848e158f96e96168aa37f0002f2
|
85
89
|
headers:
|
86
90
|
User-Agent:
|
87
91
|
- FloodgateAgent
|
92
|
+
Accept:
|
93
|
+
- application/vnd.floodgate-v1+json
|
88
94
|
Content-Type:
|
89
95
|
- application/x-www-form-urlencoded
|
90
96
|
response:
|
@@ -97,15 +103,15 @@ http_interactions:
|
|
97
103
|
content-type:
|
98
104
|
- application/json
|
99
105
|
date:
|
100
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:46 GMT
|
101
107
|
etag:
|
102
108
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- 428940d4-c448-436a-a2d3-45f710240912
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.018402'
|
109
115
|
content-length:
|
110
116
|
- '126'
|
111
117
|
connection:
|
@@ -114,16 +120,18 @@ http_interactions:
|
|
114
120
|
encoding: UTF-8
|
115
121
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
126
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
121
127
|
body:
|
122
128
|
encoding: US-ASCII
|
123
129
|
string: ''
|
124
130
|
headers:
|
125
131
|
User-Agent:
|
126
132
|
- FloodgateAgent
|
133
|
+
Accept:
|
134
|
+
- application/vnd.floodgate-v1+json
|
127
135
|
response:
|
128
136
|
status:
|
129
137
|
code: 200
|
@@ -134,15 +142,15 @@ http_interactions:
|
|
134
142
|
content-type:
|
135
143
|
- application/json
|
136
144
|
date:
|
137
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:46 GMT
|
138
146
|
etag:
|
139
147
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- 1548c632-bb72-4295-a4d3-b2ce54ff2104
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.013759'
|
146
154
|
content-length:
|
147
155
|
- '126'
|
148
156
|
connection:
|
@@ -151,5 +159,5 @@ http_interactions:
|
|
151
159
|
encoding: UTF-8
|
152
160
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
|
155
163
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ip_address%5Bip_address%5D=1.1.1.1&api_token=f28b5848e158f96e96168aa37f0002f2
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- FloodgateAgent
|
12
|
+
Accept:
|
13
|
+
- application/vnd.floodgate-v1+json
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
@@ -21,15 +23,15 @@ http_interactions:
|
|
21
23
|
content-type:
|
22
24
|
- application/json
|
23
25
|
date:
|
24
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:46 GMT
|
25
27
|
etag:
|
26
28
|
- "\"bbc66f5c6fff2775354263608d971d3a\""
|
27
29
|
server:
|
28
30
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 87f048f5-049c-44f2-840d-dec3ba2ec0d2
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.020222'
|
33
35
|
content-length:
|
34
36
|
- '24'
|
35
37
|
connection:
|
@@ -38,16 +40,18 @@ http_interactions:
|
|
38
40
|
encoding: UTF-8
|
39
41
|
string: "{\"ip_address\":\"1.1.1.1\"}"
|
40
42
|
http_version:
|
41
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
46
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
45
47
|
body:
|
46
48
|
encoding: US-ASCII
|
47
49
|
string: ''
|
48
50
|
headers:
|
49
51
|
User-Agent:
|
50
52
|
- FloodgateAgent
|
53
|
+
Accept:
|
54
|
+
- application/vnd.floodgate-v1+json
|
51
55
|
response:
|
52
56
|
status:
|
53
57
|
code: 200
|
@@ -58,15 +62,15 @@ http_interactions:
|
|
58
62
|
content-type:
|
59
63
|
- application/json
|
60
64
|
date:
|
61
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:46 GMT
|
62
66
|
etag:
|
63
67
|
- "\"56afa4fe0c249466945b8b5763f2a93a\""
|
64
68
|
server:
|
65
69
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
66
70
|
x-request-id:
|
67
|
-
-
|
71
|
+
- 897e8188-3fb5-409c-8598-1a515e2711e5
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.011261'
|
70
74
|
content-length:
|
71
75
|
- '136'
|
72
76
|
connection:
|
@@ -75,16 +79,18 @@ http_interactions:
|
|
75
79
|
encoding: UTF-8
|
76
80
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\",\"1.1.1.1\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
77
81
|
http_version:
|
78
|
-
recorded_at:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
|
79
83
|
- request:
|
80
84
|
method: delete
|
81
|
-
uri:
|
85
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
|
82
86
|
body:
|
83
87
|
encoding: US-ASCII
|
84
88
|
string: ip_address%5Bip_address%5D=1.1.1.1&api_token=f28b5848e158f96e96168aa37f0002f2
|
85
89
|
headers:
|
86
90
|
User-Agent:
|
87
91
|
- FloodgateAgent
|
92
|
+
Accept:
|
93
|
+
- application/vnd.floodgate-v1+json
|
88
94
|
Content-Type:
|
89
95
|
- application/x-www-form-urlencoded
|
90
96
|
response:
|
@@ -97,15 +103,15 @@ http_interactions:
|
|
97
103
|
content-type:
|
98
104
|
- application/json
|
99
105
|
date:
|
100
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:47 GMT
|
101
107
|
etag:
|
102
108
|
- "\"23e8cc0c8abfb81d69429dfc9203ea60\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- dfdc8c37-aad0-4d2e-a215-b31c167acd67
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.018081'
|
109
115
|
content-length:
|
110
116
|
- '43'
|
111
117
|
connection:
|
@@ -114,16 +120,18 @@ http_interactions:
|
|
114
120
|
encoding: UTF-8
|
115
121
|
string: "{\"ip_addresses\":[{\"ip_address\":\"1.1.1.1\"}]}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
126
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
121
127
|
body:
|
122
128
|
encoding: US-ASCII
|
123
129
|
string: ''
|
124
130
|
headers:
|
125
131
|
User-Agent:
|
126
132
|
- FloodgateAgent
|
133
|
+
Accept:
|
134
|
+
- application/vnd.floodgate-v1+json
|
127
135
|
response:
|
128
136
|
status:
|
129
137
|
code: 200
|
@@ -134,15 +142,15 @@ http_interactions:
|
|
134
142
|
content-type:
|
135
143
|
- application/json
|
136
144
|
date:
|
137
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:47 GMT
|
138
146
|
etag:
|
139
147
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- 13612707-edd3-4848-9175-a6495d11252c
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.009065'
|
146
154
|
content-length:
|
147
155
|
- '126'
|
148
156
|
connection:
|
@@ -151,5 +159,5 @@ http_interactions:
|
|
151
159
|
encoding: UTF-8
|
152
160
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
|
155
163
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri:
|
5
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: app%5Bredirect_url%5D&api_token=f28b5848e158f96e96168aa37f0002f2
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- FloodgateAgent
|
12
|
+
Accept:
|
13
|
+
- application/vnd.floodgate-v1+json
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
@@ -21,15 +23,15 @@ http_interactions:
|
|
21
23
|
content-type:
|
22
24
|
- application/json
|
23
25
|
date:
|
24
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:47 GMT
|
25
27
|
etag:
|
26
28
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
27
29
|
server:
|
28
30
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 0b94a80b-9b74-4ca5-affb-585835c257ed
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.017700'
|
33
35
|
content-length:
|
34
36
|
- '126'
|
35
37
|
connection:
|
@@ -38,16 +40,18 @@ http_interactions:
|
|
38
40
|
encoding: UTF-8
|
39
41
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
40
42
|
http_version:
|
41
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
46
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
45
47
|
body:
|
46
48
|
encoding: US-ASCII
|
47
49
|
string: ''
|
48
50
|
headers:
|
49
51
|
User-Agent:
|
50
52
|
- FloodgateAgent
|
53
|
+
Accept:
|
54
|
+
- application/vnd.floodgate-v1+json
|
51
55
|
response:
|
52
56
|
status:
|
53
57
|
code: 200
|
@@ -58,15 +62,15 @@ http_interactions:
|
|
58
62
|
content-type:
|
59
63
|
- application/json
|
60
64
|
date:
|
61
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:47 GMT
|
62
66
|
etag:
|
63
67
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
64
68
|
server:
|
65
69
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
66
70
|
x-request-id:
|
67
|
-
-
|
71
|
+
- 24996128-1172-470d-a8bf-5b54936d4d3b
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.010516'
|
70
74
|
content-length:
|
71
75
|
- '126'
|
72
76
|
connection:
|
@@ -75,16 +79,18 @@ http_interactions:
|
|
75
79
|
encoding: UTF-8
|
76
80
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
77
81
|
http_version:
|
78
|
-
recorded_at:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
|
79
83
|
- request:
|
80
84
|
method: put
|
81
|
-
uri:
|
85
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
82
86
|
body:
|
83
87
|
encoding: US-ASCII
|
84
88
|
string: app%5Bredirect_url%5D=http%3A%2F%2Fexample.com&api_token=f28b5848e158f96e96168aa37f0002f2
|
85
89
|
headers:
|
86
90
|
User-Agent:
|
87
91
|
- FloodgateAgent
|
92
|
+
Accept:
|
93
|
+
- application/vnd.floodgate-v1+json
|
88
94
|
Content-Type:
|
89
95
|
- application/x-www-form-urlencoded
|
90
96
|
response:
|
@@ -97,15 +103,15 @@ http_interactions:
|
|
97
103
|
content-type:
|
98
104
|
- application/json
|
99
105
|
date:
|
100
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:47 GMT
|
101
107
|
etag:
|
102
108
|
- "\"e095bacd98a20e55860f5d335f67baee\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- c9ba691e-7907-4cb1-9551-2e46cbcd79ed
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.020074'
|
109
115
|
content-length:
|
110
116
|
- '142'
|
111
117
|
connection:
|
@@ -114,16 +120,18 @@ http_interactions:
|
|
114
120
|
encoding: UTF-8
|
115
121
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
126
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
121
127
|
body:
|
122
128
|
encoding: US-ASCII
|
123
129
|
string: ''
|
124
130
|
headers:
|
125
131
|
User-Agent:
|
126
132
|
- FloodgateAgent
|
133
|
+
Accept:
|
134
|
+
- application/vnd.floodgate-v1+json
|
127
135
|
response:
|
128
136
|
status:
|
129
137
|
code: 200
|
@@ -134,15 +142,15 @@ http_interactions:
|
|
134
142
|
content-type:
|
135
143
|
- application/json
|
136
144
|
date:
|
137
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:48 GMT
|
138
146
|
etag:
|
139
147
|
- "\"e095bacd98a20e55860f5d335f67baee\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- 41316655-2cea-417e-9c0c-09c50b504fbb
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.013517'
|
146
154
|
content-length:
|
147
155
|
- '142'
|
148
156
|
connection:
|
@@ -151,5 +159,5 @@ http_interactions:
|
|
151
159
|
encoding: UTF-8
|
152
160
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
|
155
163
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri:
|
5
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: app%5Bredirect_url%5D=http%3A%2F%2Fexample.com&api_token=f28b5848e158f96e96168aa37f0002f2
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- FloodgateAgent
|
12
|
+
Accept:
|
13
|
+
- application/vnd.floodgate-v1+json
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
@@ -21,15 +23,15 @@ http_interactions:
|
|
21
23
|
content-type:
|
22
24
|
- application/json
|
23
25
|
date:
|
24
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:48 GMT
|
25
27
|
etag:
|
26
28
|
- "\"e095bacd98a20e55860f5d335f67baee\""
|
27
29
|
server:
|
28
30
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 754aa9d8-6493-4401-be0d-d82391b3e283
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.013382'
|
33
35
|
content-length:
|
34
36
|
- '142'
|
35
37
|
connection:
|
@@ -38,16 +40,18 @@ http_interactions:
|
|
38
40
|
encoding: UTF-8
|
39
41
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
|
40
42
|
http_version:
|
41
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
46
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
45
47
|
body:
|
46
48
|
encoding: US-ASCII
|
47
49
|
string: ''
|
48
50
|
headers:
|
49
51
|
User-Agent:
|
50
52
|
- FloodgateAgent
|
53
|
+
Accept:
|
54
|
+
- application/vnd.floodgate-v1+json
|
51
55
|
response:
|
52
56
|
status:
|
53
57
|
code: 200
|
@@ -58,15 +62,15 @@ http_interactions:
|
|
58
62
|
content-type:
|
59
63
|
- application/json
|
60
64
|
date:
|
61
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:48 GMT
|
62
66
|
etag:
|
63
67
|
- "\"e095bacd98a20e55860f5d335f67baee\""
|
64
68
|
server:
|
65
69
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
66
70
|
x-request-id:
|
67
|
-
-
|
71
|
+
- b2d3454c-488f-4ac3-a45c-29fa97f59299
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.010297'
|
70
74
|
content-length:
|
71
75
|
- '142'
|
72
76
|
connection:
|
@@ -75,16 +79,18 @@ http_interactions:
|
|
75
79
|
encoding: UTF-8
|
76
80
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
|
77
81
|
http_version:
|
78
|
-
recorded_at:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
|
79
83
|
- request:
|
80
84
|
method: put
|
81
|
-
uri:
|
85
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
|
82
86
|
body:
|
83
87
|
encoding: US-ASCII
|
84
88
|
string: app%5Bredirect_url%5D&api_token=f28b5848e158f96e96168aa37f0002f2
|
85
89
|
headers:
|
86
90
|
User-Agent:
|
87
91
|
- FloodgateAgent
|
92
|
+
Accept:
|
93
|
+
- application/vnd.floodgate-v1+json
|
88
94
|
Content-Type:
|
89
95
|
- application/x-www-form-urlencoded
|
90
96
|
response:
|
@@ -97,15 +103,15 @@ http_interactions:
|
|
97
103
|
content-type:
|
98
104
|
- application/json
|
99
105
|
date:
|
100
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:48 GMT
|
101
107
|
etag:
|
102
108
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- b45b1547-9bb5-4129-8d32-9830d4ed9df0
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.020837'
|
109
115
|
content-length:
|
110
116
|
- '126'
|
111
117
|
connection:
|
@@ -114,16 +120,18 @@ http_interactions:
|
|
114
120
|
encoding: UTF-8
|
115
121
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
126
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
|
121
127
|
body:
|
122
128
|
encoding: US-ASCII
|
123
129
|
string: ''
|
124
130
|
headers:
|
125
131
|
User-Agent:
|
126
132
|
- FloodgateAgent
|
133
|
+
Accept:
|
134
|
+
- application/vnd.floodgate-v1+json
|
127
135
|
response:
|
128
136
|
status:
|
129
137
|
code: 200
|
@@ -134,15 +142,15 @@ http_interactions:
|
|
134
142
|
content-type:
|
135
143
|
- application/json
|
136
144
|
date:
|
137
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:48 GMT
|
138
146
|
etag:
|
139
147
|
- "\"5dcd96cc7b45b270738601bce30d703f\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- acb559ae-ac71-4a7f-87fa-57d0a4a1bb7a
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.008915'
|
146
154
|
content-length:
|
147
155
|
- '126'
|
148
156
|
connection:
|
@@ -151,5 +159,5 @@ http_interactions:
|
|
151
159
|
encoding: UTF-8
|
152
160
|
string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
|
155
163
|
recorded_with: VCR 2.8.0
|