serverspec 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/helper/type.rb +1 -1
- data/lib/serverspec/type/windows_hot_fix.rb +9 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/windows/windows_hot_fix_spec.rb +25 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f502abc758e26c7cfb76742374fdf0db5642bf
|
4
|
+
data.tar.gz: a0a70007cdc068ab6ade47ef33fea5bafbe9eaf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bdeb0cec5793191834f45f3b232bb869ca39434cb56cbc45b67e3d966d8c0b5057af3b978fcb9c20c746adf89f09d3146a3e3f4c159b8f6111c911111605051
|
7
|
+
data.tar.gz: c4dd76983de73726cf79e3042522071057191c4dfc133c3e5e78f55f0bb06c5cb4eb289b8b6c6ba50587ababb92733431b0cc66ffb65bf3572b710bb3947c3f8
|
@@ -5,7 +5,7 @@ module Serverspec
|
|
5
5
|
base cgroup command cron default_gateway file group host iis_website iis_app_pool interface
|
6
6
|
ipfilter ipnat iptables kernel_module linux_kernel_parameter lxc mail_alias
|
7
7
|
package php_config port process routing_table selinux service user yumrepo
|
8
|
-
windows_feature windows_registry_key zfs
|
8
|
+
windows_feature windows_hot_fix windows_registry_key zfs
|
9
9
|
)
|
10
10
|
|
11
11
|
types.each {|type| require "serverspec/type/#{type}" }
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "net-ssh"
|
22
22
|
spec.add_runtime_dependency "rspec", "~> 2.13"
|
23
23
|
spec.add_runtime_dependency "highline"
|
24
|
-
spec.add_runtime_dependency "specinfra", ">= 1.
|
24
|
+
spec.add_runtime_dependency "specinfra", ">= 1.5.0"
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
27
27
|
spec.add_development_dependency "octokit", "~> 2.7.2"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
include SpecInfra::Helper::Cmd
|
4
|
+
include SpecInfra::Helper::Windows
|
5
|
+
|
6
|
+
describe windows_hot_fix('DESCRIPTION-OR-KB-ID') do
|
7
|
+
it { should be_installed }
|
8
|
+
its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION-OR-KB-ID' -hotFixId 'DESCRIPTION-OR-KB-ID') -eq $true" }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe windows_hot_fix('DESCRIPTION') do
|
12
|
+
it { should be_installed.with_version('KB-ID') }
|
13
|
+
its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION' -hotFixId 'KB-ID') -eq $true" }
|
14
|
+
end
|
15
|
+
|
16
|
+
describe windows_hot_fix('DESCRIPTION_WITH_KB123456789_INLINED') do
|
17
|
+
it { should be_installed }
|
18
|
+
its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION_WITH_KB123456789_INLINED' -hotFixId 'KB123456789') -eq $true" }
|
19
|
+
end
|
20
|
+
|
21
|
+
describe windows_hot_fix('DESCRIPTION_WITH_SUFFIX_KB123456789') do
|
22
|
+
it { should be_installed }
|
23
|
+
its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION_WITH_SUFFIX_KB123456789' -hotFixId 'KB123456789') -eq $true" }
|
24
|
+
end
|
25
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.5.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.5.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/serverspec/type/service.rb
|
197
197
|
- lib/serverspec/type/user.rb
|
198
198
|
- lib/serverspec/type/windows_feature.rb
|
199
|
+
- lib/serverspec/type/windows_hot_fix.rb
|
199
200
|
- lib/serverspec/type/windows_registry_key.rb
|
200
201
|
- lib/serverspec/type/yumrepo.rb
|
201
202
|
- lib/serverspec/type/zfs.rb
|
@@ -391,6 +392,7 @@ files:
|
|
391
392
|
- spec/windows/port_spec.rb
|
392
393
|
- spec/windows/service_spec.rb
|
393
394
|
- spec/windows/user_spec.rb
|
395
|
+
- spec/windows/windows_hot_fix_spec.rb
|
394
396
|
- spec/windows/windows_registry_key_spec.rb
|
395
397
|
- wercker.yml
|
396
398
|
homepage: http://serverspec.org/
|
@@ -608,4 +610,5 @@ test_files:
|
|
608
610
|
- spec/windows/port_spec.rb
|
609
611
|
- spec/windows/service_spec.rb
|
610
612
|
- spec/windows/user_spec.rb
|
613
|
+
- spec/windows/windows_hot_fix_spec.rb
|
611
614
|
- spec/windows/windows_registry_key_spec.rb
|