serverspec 1.13.0 → 1.14.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da3525e9160c788ed5777a236493ca7738080551
|
4
|
+
data.tar.gz: 0b2f699a4e38a269233f4f024629b509aab2fa4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ef8f1ab5337dd03dfd4e5b5974bc92fe51804bcf9638ffc048cdbb8bcbbfe89c0b6d5aefcf1f4b391bbd31d1494d192dbb2d5a44bc5d692f428b7651e325c9
|
7
|
+
data.tar.gz: 939edb54183b55d98f2268883165c6ea468a94693f2a4ab25940639729643e42abaf075e5aa1329d00d8b7d8d73377f6201038867603d95b59217b27191482e8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
RSpec::Matchers.define :have_site_application do |app|
|
2
2
|
match do |subject|
|
3
3
|
if subject.class.name == 'Serverspec::Type::IisWebsite'
|
4
|
-
subject.has_site_application?(app, @pool, @
|
4
|
+
subject.has_site_application?(app, @pool, @physical_path)
|
5
5
|
else
|
6
6
|
className = subject.class.name
|
7
7
|
raise "not supported class #{className}"
|
@@ -12,7 +12,7 @@ RSpec::Matchers.define :have_site_application do |app|
|
|
12
12
|
@pool = pool
|
13
13
|
end
|
14
14
|
|
15
|
-
chain :
|
16
|
-
@
|
15
|
+
chain :with_physical_path do |physical_path|
|
16
|
+
@physical_path = physical_path
|
17
17
|
end
|
18
18
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
RSpec::Matchers.define :have_site_bindings do |port|
|
2
2
|
match do |subject|
|
3
3
|
if subject.class.name == 'Serverspec::Type::IisWebsite'
|
4
|
-
subject.has_site_bindings?(port, @protocol, @
|
4
|
+
subject.has_site_bindings?(port, @protocol, @ipaddress, @host_header)
|
5
5
|
else
|
6
6
|
className = subject.class.name
|
7
7
|
raise "not supported class #{className}"
|
@@ -12,11 +12,11 @@ RSpec::Matchers.define :have_site_bindings do |port|
|
|
12
12
|
@protocol = protocol
|
13
13
|
end
|
14
14
|
|
15
|
-
chain :
|
16
|
-
@
|
15
|
+
chain :with_ipaddress do |ipaddress|
|
16
|
+
@ipaddress = ipaddress
|
17
17
|
end
|
18
18
|
|
19
|
-
chain :
|
20
|
-
@
|
19
|
+
chain :with_host_header do |host_header|
|
20
|
+
@host_header = host_header
|
21
21
|
end
|
22
22
|
end
|
@@ -22,16 +22,16 @@ module Serverspec
|
|
22
22
|
backend.check_iis_website_path(@name, path)
|
23
23
|
end
|
24
24
|
|
25
|
-
def has_site_bindings?(port, protocol,
|
26
|
-
backend.check_iis_website_binding(@name, port, protocol,
|
25
|
+
def has_site_bindings?(port, protocol, ipaddress, host_header)
|
26
|
+
backend.check_iis_website_binding(@name, port, protocol, ipaddress, host_header)
|
27
27
|
end
|
28
28
|
|
29
29
|
def has_virtual_dir?(vdir, path)
|
30
30
|
backend.check_iis_website_virtual_dir(@name, vdir, path)
|
31
31
|
end
|
32
32
|
|
33
|
-
def has_site_application?(app, pool,
|
34
|
-
backend.check_iis_website_application(@name, app, pool,
|
33
|
+
def has_site_application?(app, pool, physical_path)
|
34
|
+
backend.check_iis_website_application(@name, app, pool, physical_path)
|
35
35
|
end
|
36
36
|
|
37
37
|
def to_s
|
data/lib/serverspec/version.rb
CHANGED