infrataster 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/infrataster/contexts/http_context.rb +1 -0
- data/lib/infrataster/resources/http_resource.rb +4 -0
- data/lib/infrataster/version.rb +1 -1
- data/spec/integration/http_spec.rb +13 -0
- data/spec/integration/vm/cookbooks/proxy/files/default/.htpasswd +1 -0
- data/spec/integration/vm/cookbooks/proxy/files/default/auth +1 -0
- data/spec/integration/vm/cookbooks/proxy/recipes/default.rb +7 -0
- data/spec/integration/vm/cookbooks/proxy/templates/default/integration-test.erb +5 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb8def0e55eb1343153794f2f022fe53ff1dfb8e
|
4
|
+
data.tar.gz: cbc7037c6aa72c1d22c4bb93d88f1950a8cac967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ada742cc200febf95205853d485e131d95db9153d359a73e96466cd172fcc7ff63b979303cb8290c7fa4a4f53bc09e9c9585f7052e4b3081807f857b3cb550fb
|
7
|
+
data.tar.gz: 7d29a0373733bca78c7747d3bb52975a853f3fa0918847182661827314d53076745afb5d2d8a8aa806c9f72e07d705506ed215a9153b1b461626ea7257877148
|
data/CHANGELOG.md
CHANGED
data/lib/infrataster/version.rb
CHANGED
@@ -22,6 +22,19 @@ describe server(:proxy) do
|
|
22
22
|
expect(response.headers['content-encoding']).to eq('gzip')
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
describe http('http://static.example.com/auth') do
|
27
|
+
it "sends GET request without basic auth" do
|
28
|
+
expect(response.status).to eq 401
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe http('http://static.example.com/auth', basic_auth: ['dummy', 'dummy']) do
|
33
|
+
it "sends GET request with basic auth" do
|
34
|
+
expect(response.status).to eq 200
|
35
|
+
expect(response.body).to include('auth')
|
36
|
+
end
|
37
|
+
end
|
25
38
|
end
|
26
39
|
|
27
40
|
describe server(:app) do
|
@@ -0,0 +1 @@
|
|
1
|
+
dummy:$apr1$xLfour3i$43BqMHRaaXxY8eRzmBtKr1
|
@@ -0,0 +1 @@
|
|
1
|
+
auth
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infrataster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -210,6 +210,8 @@ files:
|
|
210
210
|
- spec/integration/vm/cookbooks/app/recipes/default.rb
|
211
211
|
- spec/integration/vm/cookbooks/apt-mirror/metadata.rb
|
212
212
|
- spec/integration/vm/cookbooks/apt-mirror/recipes/default.rb
|
213
|
+
- spec/integration/vm/cookbooks/proxy/files/default/.htpasswd
|
214
|
+
- spec/integration/vm/cookbooks/proxy/files/default/auth
|
213
215
|
- spec/integration/vm/cookbooks/proxy/files/default/index.html
|
214
216
|
- spec/integration/vm/cookbooks/proxy/recipes/default.rb
|
215
217
|
- spec/integration/vm/cookbooks/proxy/templates/default/integration-test.erb
|
@@ -257,6 +259,8 @@ test_files:
|
|
257
259
|
- spec/integration/vm/cookbooks/app/recipes/default.rb
|
258
260
|
- spec/integration/vm/cookbooks/apt-mirror/metadata.rb
|
259
261
|
- spec/integration/vm/cookbooks/apt-mirror/recipes/default.rb
|
262
|
+
- spec/integration/vm/cookbooks/proxy/files/default/.htpasswd
|
263
|
+
- spec/integration/vm/cookbooks/proxy/files/default/auth
|
260
264
|
- spec/integration/vm/cookbooks/proxy/files/default/index.html
|
261
265
|
- spec/integration/vm/cookbooks/proxy/recipes/default.rb
|
262
266
|
- spec/integration/vm/cookbooks/proxy/templates/default/integration-test.erb
|