ohai 8.10.0 → 8.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Rakefile +13 -4
- data/bin/ohai +3 -4
- data/lib/ohai.rb +4 -4
- data/lib/ohai/application.rb +7 -6
- data/lib/ohai/common/dmi.rb +56 -56
- data/lib/ohai/config.rb +12 -8
- data/lib/ohai/dsl.rb +3 -3
- data/lib/ohai/dsl/plugin.rb +5 -5
- data/lib/ohai/dsl/plugin/versionvi.rb +0 -1
- data/lib/ohai/dsl/plugin/versionvii.rb +1 -0
- data/lib/ohai/hints.rb +1 -1
- data/lib/ohai/loader.rb +7 -7
- data/lib/ohai/log.rb +1 -1
- data/lib/ohai/mash.rb +3 -2
- data/lib/ohai/mixin/command.rb +25 -23
- data/lib/ohai/mixin/dmi_decode.rb +10 -10
- data/lib/ohai/mixin/ec2_metadata.rb +40 -39
- data/lib/ohai/mixin/gce_metadata.rb +9 -9
- data/lib/ohai/mixin/network_constants.rb +1 -1
- data/lib/ohai/mixin/os.rb +3 -3
- data/lib/ohai/mixin/seconds_to_human.rb +0 -2
- data/lib/ohai/mixin/softlayer_metadata.rb +10 -10
- data/lib/ohai/mixin/string.rb +2 -2
- data/lib/ohai/plugin_config.rb +1 -1
- data/lib/ohai/plugins/aix/cpu.rb +2 -2
- data/lib/ohai/plugins/aix/filesystem.rb +2 -2
- data/lib/ohai/plugins/aix/memory.rb +2 -2
- data/lib/ohai/plugins/aix/network.rb +9 -10
- data/lib/ohai/plugins/aix/os.rb +2 -2
- data/lib/ohai/plugins/aix/uptime.rb +3 -3
- data/lib/ohai/plugins/aix/virtualization.rb +23 -23
- data/lib/ohai/plugins/azure.rb +32 -5
- data/lib/ohai/plugins/bsd/virtualization.rb +22 -22
- data/lib/ohai/plugins/c.rb +3 -3
- data/lib/ohai/plugins/chef.rb +1 -1
- data/lib/ohai/plugins/cloud.rb +59 -60
- data/lib/ohai/plugins/cloud_v2.rb +37 -39
- data/lib/ohai/plugins/darwin/cpu.rb +1 -1
- data/lib/ohai/plugins/darwin/filesystem2.rb +5 -5
- data/lib/ohai/plugins/darwin/memory.rb +5 -6
- data/lib/ohai/plugins/darwin/network.rb +7 -7
- data/lib/ohai/plugins/darwin/system_profiler.rb +32 -33
- data/lib/ohai/plugins/darwin/virtualization.rb +9 -9
- data/lib/ohai/plugins/digital_ocean.rb +16 -16
- data/lib/ohai/plugins/dmi.rb +6 -6
- data/lib/ohai/plugins/dragonflybsd/cpu.rb +2 -2
- data/lib/ohai/plugins/dragonflybsd/memory.rb +0 -1
- data/lib/ohai/plugins/dragonflybsd/network.rb +4 -4
- data/lib/ohai/plugins/dragonflybsd/os.rb +1 -1
- data/lib/ohai/plugins/ec2.rb +39 -15
- data/lib/ohai/plugins/elixir.rb +1 -1
- data/lib/ohai/plugins/erlang.rb +3 -3
- data/lib/ohai/plugins/eucalyptus.rb +16 -12
- data/lib/ohai/plugins/freebsd/cpu.rb +2 -2
- data/lib/ohai/plugins/freebsd/memory.rb +0 -1
- data/lib/ohai/plugins/freebsd/network.rb +4 -4
- data/lib/ohai/plugins/freebsd/os.rb +1 -1
- data/lib/ohai/plugins/gce.rb +6 -6
- data/lib/ohai/plugins/hostname.rb +7 -7
- data/lib/ohai/plugins/init_package.rb +1 -1
- data/lib/ohai/plugins/ip_scopes.rb +9 -9
- data/lib/ohai/plugins/java.rb +1 -1
- data/lib/ohai/plugins/joyent.rb +7 -7
- data/lib/ohai/plugins/kernel.rb +8 -8
- data/lib/ohai/plugins/linode.rb +7 -4
- data/lib/ohai/plugins/linux/cpu.rb +5 -5
- data/lib/ohai/plugins/linux/filesystem.rb +16 -16
- data/lib/ohai/plugins/linux/filesystem2.rb +15 -15
- data/lib/ohai/plugins/linux/mdadm.rb +3 -3
- data/lib/ohai/plugins/linux/network.rb +85 -51
- data/lib/ohai/plugins/linux/platform.rb +24 -24
- data/lib/ohai/plugins/linux/virtualization.rb +8 -8
- data/lib/ohai/plugins/mono.rb +1 -1
- data/lib/ohai/plugins/netbsd/cpu.rb +1 -1
- data/lib/ohai/plugins/netbsd/network.rb +2 -2
- data/lib/ohai/plugins/network.rb +11 -11
- data/lib/ohai/plugins/network_listeners.rb +30 -26
- data/lib/ohai/plugins/ohai.rb +3 -3
- data/lib/ohai/plugins/openbsd/cpu.rb +4 -4
- data/lib/ohai/plugins/openbsd/memory.rb +4 -4
- data/lib/ohai/plugins/openbsd/network.rb +3 -3
- data/lib/ohai/plugins/openstack.rb +12 -12
- data/lib/ohai/plugins/os.rb +2 -2
- data/lib/ohai/plugins/packages.rb +22 -22
- data/lib/ohai/plugins/passwd.rb +4 -4
- data/lib/ohai/plugins/powershell.rb +9 -9
- data/lib/ohai/plugins/ps.rb +2 -2
- data/lib/ohai/plugins/python.rb +1 -1
- data/lib/ohai/plugins/rackspace.rb +13 -13
- data/lib/ohai/plugins/root_group.rb +4 -4
- data/lib/ohai/plugins/ruby.rb +6 -6
- data/lib/ohai/plugins/rust.rb +1 -1
- data/lib/ohai/plugins/sigar/cpu.rb +1 -1
- data/lib/ohai/plugins/sigar/filesystem.rb +1 -1
- data/lib/ohai/plugins/sigar/network.rb +13 -13
- data/lib/ohai/plugins/sigar/network_route.rb +34 -29
- data/lib/ohai/plugins/softlayer.rb +8 -7
- data/lib/ohai/plugins/solaris2/cpu.rb +19 -19
- data/lib/ohai/plugins/solaris2/dmi.rb +63 -63
- data/lib/ohai/plugins/solaris2/filesystem.rb +13 -13
- data/lib/ohai/plugins/solaris2/memory.rb +2 -2
- data/lib/ohai/plugins/solaris2/network.rb +5 -5
- data/lib/ohai/plugins/solaris2/virtualization.rb +18 -18
- data/lib/ohai/plugins/solaris2/zpools.rb +1 -1
- data/lib/ohai/plugins/ssh_host_key.rb +2 -2
- data/lib/ohai/plugins/uptime.rb +4 -5
- data/lib/ohai/plugins/virtualbox.rb +2 -2
- data/lib/ohai/plugins/virtualization.rb +17 -17
- data/lib/ohai/plugins/vmware.rb +2 -2
- data/lib/ohai/plugins/windows/cpu.rb +14 -14
- data/lib/ohai/plugins/windows/drivers.rb +8 -8
- data/lib/ohai/plugins/windows/filesystem.rb +4 -4
- data/lib/ohai/plugins/windows/memory.rb +1 -1
- data/lib/ohai/plugins/windows/network.rb +10 -10
- data/lib/ohai/plugins/windows/platform.rb +1 -2
- data/lib/ohai/plugins/windows/virtualization.rb +17 -17
- data/lib/ohai/provides_map.rb +7 -7
- data/lib/ohai/runner.rb +3 -3
- data/lib/ohai/system.rb +21 -20
- data/lib/ohai/util/file_helper.rb +1 -2
- data/lib/ohai/util/ip_helper.rb +4 -4
- data/lib/ohai/util/win32.rb +5 -5
- data/lib/ohai/util/win32/group_helper.rb +4 -5
- data/lib/ohai/version.rb +1 -1
- data/ohai.gemspec +7 -5
- data/spec/functional/application_spec.rb +23 -23
- data/spec/functional/loader_spec.rb +1 -1
- data/spec/functional/plugins/powershell_spec.rb +13 -13
- data/spec/functional/plugins/root_group_spec.rb +5 -5
- data/spec/ohai_spec.rb +1 -1
- data/spec/spec_helper.rb +9 -9
- data/spec/support/integration_helper.rb +7 -7
- data/spec/support/platform_helpers.rb +1 -1
- data/spec/unit/application_spec.rb +17 -17
- data/spec/unit/config_spec.rb +2 -2
- data/spec/unit/dsl/plugin_spec.rb +28 -28
- data/spec/unit/hints_spec.rb +3 -3
- data/spec/unit/loader_spec.rb +9 -9
- data/spec/unit/mixin/command_spec.rb +5 -5
- data/spec/unit/mixin/ec2_metadata_spec.rb +6 -6
- data/spec/unit/mixin/softlayer_metadata_spec.rb +19 -23
- data/spec/unit/plugin_config_spec.rb +5 -5
- data/spec/unit/plugins/abort_spec.rb +3 -3
- data/spec/unit/plugins/aix/cpu_spec.rb +1 -1
- data/spec/unit/plugins/aix/filesystem_spec.rb +25 -25
- data/spec/unit/plugins/aix/hostname_spec.rb +1 -2
- data/spec/unit/plugins/aix/kernel_spec.rb +3 -3
- data/spec/unit/plugins/aix/memory_spec.rb +8 -8
- data/spec/unit/plugins/aix/network_spec.rb +38 -38
- data/spec/unit/plugins/aix/os_spec.rb +1 -2
- data/spec/unit/plugins/aix/platform_spec.rb +1 -1
- data/spec/unit/plugins/aix/uptime_spec.rb +1 -1
- data/spec/unit/plugins/aix/virtualization_spec.rb +11 -11
- data/spec/unit/plugins/azure_spec.rb +118 -20
- data/spec/unit/plugins/bsd/filesystem_spec.rb +1 -1
- data/spec/unit/plugins/bsd/virtualization_spec.rb +4 -4
- data/spec/unit/plugins/c_spec.rb +12 -12
- data/spec/unit/plugins/chef_spec.rb +2 -2
- data/spec/unit/plugins/cloud_spec.rb +37 -37
- data/spec/unit/plugins/cloud_v2_spec.rb +64 -65
- data/spec/unit/plugins/darwin/cpu_spec.rb +1 -2
- data/spec/unit/plugins/darwin/filesystem2_spec.rb +7 -7
- data/spec/unit/plugins/darwin/filesystem_spec.rb +5 -5
- data/spec/unit/plugins/darwin/hostname_spec.rb +1 -4
- data/spec/unit/plugins/darwin/kernel_spec.rb +6 -10
- data/spec/unit/plugins/darwin/memory_spec.rb +5 -5
- data/spec/unit/plugins/darwin/network_spec.rb +352 -353
- data/spec/unit/plugins/darwin/platform_spec.rb +1 -2
- data/spec/unit/plugins/darwin/system_profiler_spec.rb +3 -3
- data/spec/unit/plugins/darwin/virtualization_spec.rb +6 -6
- data/spec/unit/plugins/digital_ocean_spec.rb +38 -37
- data/spec/unit/plugins/dmi_spec.rb +3 -3
- data/spec/unit/plugins/ec2_spec.rb +97 -88
- data/spec/unit/plugins/elixir_spec.rb +1 -2
- data/spec/unit/plugins/erlang_spec.rb +2 -2
- data/spec/unit/plugins/eucalyptus_spec.rb +19 -19
- data/spec/unit/plugins/fail_spec.rb +2 -2
- data/spec/unit/plugins/freebsd/cpu_spec.rb +14 -14
- data/spec/unit/plugins/freebsd/hostname_spec.rb +1 -2
- data/spec/unit/plugins/freebsd/kernel_spec.rb +2 -3
- data/spec/unit/plugins/freebsd/os_spec.rb +4 -5
- data/spec/unit/plugins/freebsd/platform_spec.rb +1 -2
- data/spec/unit/plugins/gce_spec.rb +9 -9
- data/spec/unit/plugins/go_spec.rb +1 -1
- data/spec/unit/plugins/groovy_spec.rb +1 -2
- data/spec/unit/plugins/hostname_spec.rb +1 -2
- data/spec/unit/plugins/init_package_spec.rb +1 -1
- data/spec/unit/plugins/ip_scopes_spec.rb +38 -38
- data/spec/unit/plugins/java_spec.rb +52 -1
- data/spec/unit/plugins/joyent_spec.rb +9 -11
- data/spec/unit/plugins/kernel_spec.rb +11 -12
- data/spec/unit/plugins/linode_spec.rb +29 -29
- data/spec/unit/plugins/linux/block_device_spec.rb +21 -21
- data/spec/unit/plugins/linux/cpu_spec.rb +3 -3
- data/spec/unit/plugins/linux/filesystem2_spec.rb +7 -7
- data/spec/unit/plugins/linux/filesystem_spec.rb +85 -86
- data/spec/unit/plugins/linux/hostname_spec.rb +1 -3
- data/spec/unit/plugins/linux/kernel_spec.rb +1 -1
- data/spec/unit/plugins/linux/lsb_spec.rb +1 -2
- data/spec/unit/plugins/linux/mdadm_spec.rb +4 -4
- data/spec/unit/plugins/linux/memory_spec.rb +29 -33
- data/spec/unit/plugins/linux/network_spec.rb +463 -245
- data/spec/unit/plugins/linux/platform_spec.rb +64 -65
- data/spec/unit/plugins/linux/uptime_spec.rb +1 -2
- data/spec/unit/plugins/linux/virtualization_spec.rb +42 -42
- data/spec/unit/plugins/lua_spec.rb +1 -2
- data/spec/unit/plugins/mono_spec.rb +1 -2
- data/spec/unit/plugins/netbsd/hostname_spec.rb +1 -2
- data/spec/unit/plugins/netbsd/kernel_spec.rb +1 -2
- data/spec/unit/plugins/netbsd/platform_spec.rb +1 -1
- data/spec/unit/plugins/network_spec.rb +118 -118
- data/spec/unit/plugins/nodejs_spec.rb +1 -1
- data/spec/unit/plugins/ohai_spec.rb +1 -1
- data/spec/unit/plugins/ohai_time_spec.rb +1 -2
- data/spec/unit/plugins/openbsd/hostname_spec.rb +1 -2
- data/spec/unit/plugins/openbsd/kernel_spec.rb +1 -2
- data/spec/unit/plugins/openbsd/platform_spec.rb +1 -2
- data/spec/unit/plugins/openstack_spec.rb +35 -37
- data/spec/unit/plugins/os_spec.rb +7 -8
- data/spec/unit/plugins/packages_spec.rb +118 -118
- data/spec/unit/plugins/passwd_spec.rb +18 -18
- data/spec/unit/plugins/perl_spec.rb +1 -1
- data/spec/unit/plugins/php_spec.rb +4 -4
- data/spec/unit/plugins/platform_spec.rb +8 -9
- data/spec/unit/plugins/powershell_spec.rb +3 -3
- data/spec/unit/plugins/python_spec.rb +1 -1
- data/spec/unit/plugins/rackspace_spec.rb +66 -68
- data/spec/unit/plugins/root_group_spec.rb +26 -26
- data/spec/unit/plugins/ruby_spec.rb +14 -15
- data/spec/unit/plugins/rust_spec.rb +2 -2
- data/spec/unit/plugins/sigar/network_route_spec.rb +36 -36
- data/spec/unit/plugins/softlayer_spec.rb +10 -10
- data/spec/unit/plugins/solaris2/cpu_spec.rb +20 -21
- data/spec/unit/plugins/solaris2/dmi_spec.rb +5 -6
- data/spec/unit/plugins/solaris2/filesystem.rb +5 -5
- data/spec/unit/plugins/solaris2/hostname_spec.rb +1 -1
- data/spec/unit/plugins/solaris2/kernel_spec.rb +3 -3
- data/spec/unit/plugins/solaris2/memory_spec.rb +5 -5
- data/spec/unit/plugins/solaris2/network_spec.rb +7 -8
- data/spec/unit/plugins/solaris2/platform_spec.rb +1 -1
- data/spec/unit/plugins/solaris2/virtualization_spec.rb +3 -5
- data/spec/unit/plugins/solaris2/zpools_spec.rb +6 -6
- data/spec/unit/plugins/ssh_host_keys_spec.rb +1 -1
- data/spec/unit/plugins/virtualbox_spec.rb +19 -19
- data/spec/unit/plugins/vmware_spec.rb +28 -28
- data/spec/unit/plugins/windows/cpu_spec.rb +46 -48
- data/spec/unit/plugins/windows/memory_spec.rb +5 -5
- data/spec/unit/plugins/windows/virtualization_spec.rb +163 -163
- data/spec/unit/provides_map_spec.rb +10 -10
- data/spec/unit/runner_spec.rb +10 -10
- data/spec/unit/system_spec.rb +19 -19
- data/spec/unit/util/file_helper_spec.rb +5 -6
- data/spec/unit/util/ip_helper_spec.rb +39 -39
- metadata +31 -4
@@ -16,8 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
|
20
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
21
20
|
|
22
21
|
describe Ohai::System, "Darwin cpu plugin" do
|
23
22
|
before(:each) do
|
@@ -6,9 +6,9 @@
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
8
8
|
# You may obtain a copy of the License at
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# Unless required by applicable law or agreed to in writing, software
|
13
13
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
14
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.expand_path(File.dirname(__FILE__) +
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
20
20
|
|
21
21
|
describe Ohai::System, "darwin filesystem2 plugin" do
|
22
22
|
let (:plugin) { get_plugin("darwin/filesystem2") }
|
@@ -59,7 +59,7 @@ DF
|
|
59
59
|
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount]).to eq("/")
|
60
60
|
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:device]).to eq("/dev/disk0s2")
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
it "should set inode info to value from df -i" do
|
64
64
|
plugin.run
|
65
65
|
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:total_inodes]).to eq("61069440")
|
@@ -90,7 +90,7 @@ MOUNT
|
|
90
90
|
plugin.run
|
91
91
|
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount]).to eq("/")
|
92
92
|
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:fs_type]).to eq("hfs")
|
93
|
-
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount_options]).to eq(
|
93
|
+
expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount_options]).to eq(%w{local journaled})
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
@@ -111,7 +111,7 @@ DF
|
|
111
111
|
|
112
112
|
it "should provide a devices view with all mountpoints" do
|
113
113
|
plugin.run
|
114
|
-
expect(plugin[:filesystem2]["by_device"]["/dev/disk0s2"][:mounts]).to eq([
|
114
|
+
expect(plugin[:filesystem2]["by_device"]["/dev/disk0s2"][:mounts]).to eq(["/", "/another/mountpoint"])
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -133,7 +133,7 @@ DF
|
|
133
133
|
|
134
134
|
it "should provide a mounts view with all devices" do
|
135
135
|
plugin.run
|
136
|
-
expect(plugin[:filesystem2]["by_mountpoint"]["/mnt"][:devices]).to eq([
|
136
|
+
expect(plugin[:filesystem2]["by_mountpoint"]["/mnt"][:devices]).to eq(["/dev/disk0s3", "/dev/disk0s4"])
|
137
137
|
end
|
138
138
|
end
|
139
139
|
end
|
@@ -6,9 +6,9 @@
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
8
8
|
# You may obtain a copy of the License at
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# Unless required by applicable law or agreed to in writing, software
|
13
13
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
14
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.expand_path(File.dirname(__FILE__) +
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
20
20
|
|
21
21
|
describe Ohai::System, "darwin filesystem plugin" do
|
22
22
|
let (:plugin) { get_plugin("darwin/filesystem") }
|
@@ -58,7 +58,7 @@ DF
|
|
58
58
|
plugin.run
|
59
59
|
expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/")
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
it "should set inode info to value from df -i" do
|
63
63
|
plugin.run
|
64
64
|
expect(plugin[:filesystem]["/dev/disk0s2"][:total_inodes]).to eq("61069440")
|
@@ -89,7 +89,7 @@ MOUNT
|
|
89
89
|
plugin.run
|
90
90
|
expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/")
|
91
91
|
expect(plugin[:filesystem]["/dev/disk0s2"][:fs_type]).to eq("hfs")
|
92
|
-
expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq(
|
92
|
+
expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq(%w{local journaled})
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
@@ -16,8 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
|
20
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
21
20
|
|
22
21
|
describe Ohai::System, "Darwin hostname plugin" do
|
23
22
|
before(:each) do
|
@@ -42,5 +41,3 @@ describe Ohai::System, "Darwin hostname plugin" do
|
|
42
41
|
expect(@plugin[:domain]).to eq("bethell")
|
43
42
|
end
|
44
43
|
end
|
45
|
-
|
46
|
-
|
@@ -16,8 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
|
20
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
21
20
|
|
22
21
|
describe Ohai::System, "Darwin kernel plugin" do
|
23
22
|
before(:each) do
|
@@ -35,12 +34,9 @@ describe Ohai::System, "Darwin kernel plugin" do
|
|
35
34
|
EOF
|
36
35
|
|
37
36
|
modules = {
|
38
|
-
"com.apple.kec.corecrypto"=>
|
39
|
-
{"version"=>"1.
|
40
|
-
"com.apple.iokit.
|
41
|
-
{"version"=>"1.4", "size"=>36864, "index"=>"9", "refcount"=>"22"},
|
42
|
-
"com.apple.iokit.IOPCIFamily"=>
|
43
|
-
{"version"=>"2.8", "size"=>167936, "index"=>"10", "refcount"=>"30"}}
|
37
|
+
"com.apple.kec.corecrypto" => { "version" => "1.0", "size" => 266240, "index" => "8", "refcount" => "0" },
|
38
|
+
"com.apple.iokit.IOACPIFamily" => { "version" => "1.4", "size" => 36864, "index" => "9", "refcount" => "22" },
|
39
|
+
"com.apple.iokit.IOPCIFamily" => { "version" => "2.8", "size" => 167936, "index" => "10", "refcount" => "30" } }
|
44
40
|
|
45
41
|
@plugin.run
|
46
42
|
expect(@plugin[:kernel][:modules]).to eql(modules)
|
@@ -50,14 +46,14 @@ EOF
|
|
50
46
|
allow(@plugin).to receive(:shell_out).with("sysctl -n hw.optional.x86_64").and_return(mock_shell_out(0, "0", ""))
|
51
47
|
allow(@plugin).to receive(:shell_out).with("kextstat -k -l").and_return(mock_shell_out(0, "", ""))
|
52
48
|
@plugin.run
|
53
|
-
expect(@plugin[:kernel][:machine]).not_to eq(
|
49
|
+
expect(@plugin[:kernel][:machine]).not_to eq("x86_64")
|
54
50
|
end
|
55
51
|
|
56
52
|
it "should set kernel_machine to x86_64" do
|
57
53
|
allow(@plugin).to receive(:shell_out).with("sysctl -n hw.optional.x86_64").and_return(mock_shell_out(0, "1", ""))
|
58
54
|
allow(@plugin).to receive(:shell_out).with("kextstat -k -l").and_return(mock_shell_out(0, "", ""))
|
59
55
|
@plugin.run
|
60
|
-
expect(@plugin[:kernel][:machine]).to eq(
|
56
|
+
expect(@plugin[:kernel][:machine]).to eq("x86_64")
|
61
57
|
end
|
62
58
|
|
63
59
|
it "should set the kernel_os to the kernel_name value" do
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.expand_path(File.dirname(__FILE__) +
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
20
20
|
|
21
21
|
describe Ohai::System, "Darwin Memory Plugin" do
|
22
22
|
before(:each) do
|
@@ -47,18 +47,18 @@ Object cache: 12 hits of 139872 lookups (0% hit rate)
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should set memory[:total] to 16384MB" do
|
50
|
-
expect(@plugin[:memory][:total]).to eq(
|
50
|
+
expect(@plugin[:memory][:total]).to eq("16384MB")
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should set memory[:active] to 5140MB" do
|
54
|
-
expect(@plugin[:memory][:active]).to eq(
|
54
|
+
expect(@plugin[:memory][:active]).to eq("5140MB")
|
55
55
|
end
|
56
56
|
|
57
57
|
it "should set memory[:inactive] to 738MB" do
|
58
|
-
expect(@plugin[:memory][:inactive]).to eq(
|
58
|
+
expect(@plugin[:memory][:inactive]).to eq("738MB")
|
59
59
|
end
|
60
60
|
|
61
61
|
it "should set memory[:free] to 10504MB" do
|
62
|
-
expect(@plugin[:memory][:free]).to eq(
|
62
|
+
expect(@plugin[:memory][:free]).to eq("10504MB")
|
63
63
|
end
|
64
64
|
end
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.expand_path(File.dirname(__FILE__) +
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
|
20
20
|
|
21
21
|
describe Ohai::System, "Darwin Network Plugin" do
|
22
22
|
before(:each) do
|
@@ -439,412 +439,411 @@ net.smb.fs.tcprcvbuf: 261120
|
|
439
439
|
end
|
440
440
|
|
441
441
|
it "completes the run" do
|
442
|
-
expect(@plugin[
|
442
|
+
expect(@plugin["network"]).not_to be_nil
|
443
443
|
end
|
444
444
|
|
445
445
|
it "detects the interfaces" do
|
446
|
-
expect(@plugin[
|
446
|
+
expect(@plugin["network"]["interfaces"].keys.sort).to eq(%w{en0 en1 fw0 gif0 lo0 p2p0 stf0 utun0})
|
447
447
|
end
|
448
448
|
|
449
449
|
it "detects the ipv4 addresses of the ethernet interface" do
|
450
|
-
expect(@plugin[
|
451
|
-
expect(@plugin[
|
452
|
-
expect(@plugin[
|
453
|
-
expect(@plugin[
|
450
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("10.20.10.144")
|
451
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["netmask"]).to eq("255.255.255.0")
|
452
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["broadcast"]).to eq("10.20.10.255")
|
453
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["family"]).to eq("inet")
|
454
454
|
end
|
455
455
|
|
456
456
|
it "detects the ipv6 addresses of the ethernet interface" do
|
457
|
-
expect(@plugin[
|
458
|
-
expect(@plugin[
|
459
|
-
expect(@plugin[
|
460
|
-
expect(@plugin[
|
461
|
-
|
462
|
-
expect(@plugin[
|
463
|
-
expect(@plugin[
|
464
|
-
expect(@plugin[
|
465
|
-
expect(@plugin[
|
457
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("fe80::ba8d:12ff:fe3a:32de")
|
458
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["scope"]).to eq("Link")
|
459
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["prefixlen"]).to eq("64")
|
460
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["family"]).to eq("inet6")
|
461
|
+
|
462
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("2001:44b8:4186:1100:ba8d:12ff:fe3a:32de")
|
463
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["scope"]).to eq("Global")
|
464
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["prefixlen"]).to eq("64")
|
465
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["family"]).to eq("inet6")
|
466
466
|
end
|
467
467
|
|
468
468
|
it "detects the mac addresses of the ethernet interface" do
|
469
|
-
expect(@plugin[
|
470
|
-
expect(@plugin[
|
469
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("b8:8d:12:3a:32:de")
|
470
|
+
expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["b8:8d:12:3a:32:de"]["family"]).to eq("lladdr")
|
471
471
|
end
|
472
472
|
|
473
473
|
it "detects the encapsulation type of the ethernet interface" do
|
474
|
-
expect(@plugin[
|
474
|
+
expect(@plugin["network"]["interfaces"]["en1"]["encapsulation"]).to eq("Ethernet")
|
475
475
|
end
|
476
476
|
|
477
477
|
it "detects the flags of the ethernet interface" do
|
478
|
-
expect(@plugin[
|
478
|
+
expect(@plugin["network"]["interfaces"]["en1"]["flags"].sort).to eq(%w{BROADCAST MULTICAST RUNNING SIMPLEX SMART UP})
|
479
479
|
end
|
480
480
|
|
481
|
-
|
482
481
|
it "detects the mtu of the ethernet interface" do
|
483
|
-
expect(@plugin[
|
482
|
+
expect(@plugin["network"]["interfaces"]["en1"]["mtu"]).to eq("1500")
|
484
483
|
end
|
485
484
|
|
486
485
|
it "detects the ipv4 addresses of the loopback interface" do
|
487
|
-
expect(@plugin[
|
488
|
-
expect(@plugin[
|
489
|
-
expect(@plugin[
|
486
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"].keys).to include("127.0.0.1")
|
487
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["127.0.0.1"]["netmask"]).to eq("255.0.0.0")
|
488
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["127.0.0.1"]["family"]).to eq("inet")
|
490
489
|
end
|
491
490
|
|
492
491
|
it "detects the ipv6 addresses of the loopback interface" do
|
493
|
-
expect(@plugin[
|
494
|
-
expect(@plugin[
|
495
|
-
expect(@plugin[
|
496
|
-
expect(@plugin[
|
492
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"].keys).to include("::1")
|
493
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["scope"]).to eq("Node")
|
494
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["prefixlen"]).to eq("128")
|
495
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["family"]).to eq("inet6")
|
497
496
|
end
|
498
497
|
|
499
498
|
it "detects the encapsulation type of the loopback interface" do
|
500
|
-
expect(@plugin[
|
499
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["encapsulation"]).to eq("Loopback")
|
501
500
|
end
|
502
501
|
|
503
502
|
it "detects the flags of the ethernet interface" do
|
504
|
-
expect(@plugin[
|
503
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["flags"].sort).to eq(%w{LOOPBACK MULTICAST RUNNING UP})
|
505
504
|
end
|
506
505
|
|
507
506
|
it "detects the mtu of the loopback interface" do
|
508
|
-
expect(@plugin[
|
507
|
+
expect(@plugin["network"]["interfaces"]["lo0"]["mtu"]).to eq("16384")
|
509
508
|
end
|
510
509
|
|
511
510
|
it "detects the arp entries" do
|
512
|
-
expect(@plugin[
|
511
|
+
expect(@plugin["network"]["interfaces"]["en1"]["arp"]["10.20.10.1"]).to eq("0:4:ed:de:41:bf")
|
513
512
|
end
|
514
513
|
|
515
514
|
it "detects the ethernet counters" do
|
516
|
-
expect(@plugin[
|
517
|
-
expect(@plugin[
|
518
|
-
expect(@plugin[
|
519
|
-
expect(@plugin[
|
520
|
-
expect(@plugin[
|
521
|
-
expect(@plugin[
|
522
|
-
|
523
|
-
expect(@plugin[
|
524
|
-
expect(@plugin[
|
525
|
-
expect(@plugin[
|
526
|
-
expect(@plugin[
|
527
|
-
expect(@plugin[
|
515
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["bytes"]).to eq("18228234970")
|
516
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["packets"]).to eq("14314573")
|
517
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["collisions"]).to eq("0")
|
518
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["errors"]).to eq("0")
|
519
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["carrier"]).to eq(0)
|
520
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["drop"]).to eq(0)
|
521
|
+
|
522
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["bytes"]).to eq("2530556736")
|
523
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["packets"]).to eq("5921903")
|
524
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["errors"]).to eq("0")
|
525
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["overrun"]).to eq(0)
|
526
|
+
expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["drop"]).to eq(0)
|
528
527
|
end
|
529
528
|
|
530
529
|
it "detects the loopback counters" do
|
531
|
-
expect(@plugin[
|
532
|
-
expect(@plugin[
|
533
|
-
expect(@plugin[
|
534
|
-
expect(@plugin[
|
535
|
-
expect(@plugin[
|
536
|
-
expect(@plugin[
|
537
|
-
|
538
|
-
expect(@plugin[
|
539
|
-
expect(@plugin[
|
540
|
-
expect(@plugin[
|
541
|
-
expect(@plugin[
|
542
|
-
expect(@plugin[
|
530
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["bytes"]).to eq("25774844")
|
531
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["packets"]).to eq("174982")
|
532
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["collisions"]).to eq("0")
|
533
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["errors"]).to eq("0")
|
534
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["carrier"]).to eq(0)
|
535
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["drop"]).to eq(0)
|
536
|
+
|
537
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["bytes"]).to eq("25774844")
|
538
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["packets"]).to eq("174982")
|
539
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["errors"]).to eq("0")
|
540
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["overrun"]).to eq(0)
|
541
|
+
expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["drop"]).to eq(0)
|
543
542
|
end
|
544
543
|
|
545
544
|
it "finds the default interface by asking which iface has the default route" do
|
546
|
-
expect(@plugin[
|
545
|
+
expect(@plugin["network"][:default_interface]).to eq("en1")
|
547
546
|
end
|
548
547
|
|
549
548
|
it "finds the default interface by asking which iface has the default route" do
|
550
|
-
expect(@plugin[
|
549
|
+
expect(@plugin["network"][:default_gateway]).to eq("10.20.10.1")
|
551
550
|
end
|
552
551
|
|
553
552
|
it "should detect network settings" do
|
554
|
-
expect(@plugin[
|
555
|
-
expect(@plugin["network"]["settings"][
|
556
|
-
expect(@plugin["network"]["settings"][
|
557
|
-
expect(@plugin["network"]["settings"][
|
558
|
-
expect(@plugin["network"]["settings"][
|
559
|
-
expect(@plugin["network"]["settings"][
|
560
|
-
expect(@plugin["network"]["settings"][
|
561
|
-
expect(@plugin["network"]["settings"][
|
562
|
-
expect(@plugin["network"]["settings"][
|
563
|
-
expect(@plugin["network"]["settings"][
|
564
|
-
expect(@plugin["network"]["settings"][
|
565
|
-
expect(@plugin["network"]["settings"][
|
566
|
-
expect(@plugin["network"]["settings"][
|
567
|
-
expect(@plugin["network"]["settings"][
|
568
|
-
expect(@plugin["network"]["settings"][
|
569
|
-
expect(@plugin["network"]["settings"][
|
570
|
-
expect(@plugin["network"]["settings"][
|
571
|
-
expect(@plugin["network"]["settings"][
|
572
|
-
expect(@plugin["network"]["settings"][
|
573
|
-
expect(@plugin["network"]["settings"][
|
574
|
-
expect(@plugin["network"]["settings"][
|
575
|
-
expect(@plugin["network"]["settings"][
|
576
|
-
expect(@plugin["network"]["settings"][
|
577
|
-
expect(@plugin["network"]["settings"][
|
578
|
-
expect(@plugin["network"]["settings"][
|
579
|
-
expect(@plugin["network"]["settings"][
|
580
|
-
expect(@plugin["network"]["settings"][
|
581
|
-
expect(@plugin["network"]["settings"][
|
582
|
-
expect(@plugin["network"]["settings"][
|
583
|
-
expect(@plugin["network"]["settings"][
|
584
|
-
expect(@plugin["network"]["settings"][
|
585
|
-
expect(@plugin["network"]["settings"][
|
586
|
-
expect(@plugin["network"]["settings"][
|
587
|
-
expect(@plugin["network"]["settings"][
|
588
|
-
expect(@plugin["network"]["settings"][
|
589
|
-
expect(@plugin["network"]["settings"][
|
590
|
-
expect(@plugin["network"]["settings"][
|
591
|
-
expect(@plugin["network"]["settings"][
|
592
|
-
expect(@plugin["network"]["settings"][
|
593
|
-
expect(@plugin["network"]["settings"][
|
594
|
-
expect(@plugin["network"]["settings"][
|
595
|
-
expect(@plugin["network"]["settings"][
|
596
|
-
expect(@plugin["network"]["settings"][
|
597
|
-
expect(@plugin["network"]["settings"][
|
598
|
-
expect(@plugin["network"]["settings"][
|
599
|
-
expect(@plugin["network"]["settings"][
|
600
|
-
expect(@plugin["network"]["settings"][
|
601
|
-
expect(@plugin["network"]["settings"][
|
602
|
-
expect(@plugin["network"]["settings"][
|
603
|
-
expect(@plugin["network"]["settings"][
|
604
|
-
expect(@plugin["network"]["settings"][
|
605
|
-
expect(@plugin["network"]["settings"][
|
606
|
-
expect(@plugin["network"]["settings"][
|
607
|
-
expect(@plugin["network"]["settings"][
|
608
|
-
expect(@plugin["network"]["settings"][
|
609
|
-
expect(@plugin["network"]["settings"][
|
610
|
-
expect(@plugin["network"]["settings"][
|
611
|
-
expect(@plugin["network"]["settings"][
|
612
|
-
expect(@plugin["network"]["settings"][
|
613
|
-
expect(@plugin["network"]["settings"][
|
614
|
-
expect(@plugin["network"]["settings"][
|
615
|
-
expect(@plugin["network"]["settings"][
|
616
|
-
expect(@plugin["network"]["settings"][
|
617
|
-
expect(@plugin["network"]["settings"][
|
618
|
-
expect(@plugin["network"]["settings"][
|
619
|
-
expect(@plugin["network"]["settings"][
|
620
|
-
expect(@plugin["network"]["settings"][
|
621
|
-
expect(@plugin["network"]["settings"][
|
622
|
-
expect(@plugin["network"]["settings"][
|
623
|
-
expect(@plugin["network"]["settings"][
|
624
|
-
expect(@plugin["network"]["settings"][
|
625
|
-
expect(@plugin["network"]["settings"][
|
626
|
-
expect(@plugin["network"]["settings"][
|
627
|
-
expect(@plugin["network"]["settings"][
|
628
|
-
expect(@plugin["network"]["settings"][
|
629
|
-
expect(@plugin["network"]["settings"][
|
630
|
-
expect(@plugin["network"]["settings"][
|
631
|
-
expect(@plugin["network"]["settings"][
|
632
|
-
expect(@plugin["network"]["settings"][
|
633
|
-
expect(@plugin["network"]["settings"][
|
634
|
-
expect(@plugin["network"]["settings"][
|
635
|
-
expect(@plugin["network"]["settings"][
|
636
|
-
expect(@plugin["network"]["settings"][
|
637
|
-
expect(@plugin["network"]["settings"][
|
638
|
-
expect(@plugin["network"]["settings"][
|
639
|
-
expect(@plugin["network"]["settings"][
|
640
|
-
expect(@plugin["network"]["settings"][
|
641
|
-
expect(@plugin["network"]["settings"][
|
642
|
-
expect(@plugin["network"]["settings"][
|
643
|
-
expect(@plugin["network"]["settings"][
|
644
|
-
expect(@plugin["network"]["settings"][
|
645
|
-
expect(@plugin["network"]["settings"][
|
646
|
-
expect(@plugin["network"]["settings"][
|
647
|
-
expect(@plugin["network"]["settings"][
|
648
|
-
expect(@plugin["network"]["settings"][
|
649
|
-
expect(@plugin["network"]["settings"][
|
650
|
-
expect(@plugin["network"]["settings"][
|
651
|
-
expect(@plugin["network"]["settings"][
|
652
|
-
expect(@plugin["network"]["settings"][
|
653
|
-
expect(@plugin["network"]["settings"][
|
654
|
-
expect(@plugin["network"]["settings"][
|
655
|
-
expect(@plugin["network"]["settings"][
|
656
|
-
expect(@plugin["network"]["settings"][
|
657
|
-
expect(@plugin["network"]["settings"][
|
658
|
-
expect(@plugin["network"]["settings"][
|
659
|
-
expect(@plugin["network"]["settings"][
|
660
|
-
expect(@plugin["network"]["settings"][
|
661
|
-
expect(@plugin["network"]["settings"][
|
662
|
-
expect(@plugin["network"]["settings"][
|
663
|
-
expect(@plugin["network"]["settings"][
|
664
|
-
expect(@plugin["network"]["settings"][
|
665
|
-
expect(@plugin["network"]["settings"][
|
666
|
-
expect(@plugin["network"]["settings"][
|
667
|
-
expect(@plugin["network"]["settings"][
|
668
|
-
expect(@plugin["network"]["settings"][
|
669
|
-
expect(@plugin["network"]["settings"][
|
670
|
-
expect(@plugin["network"]["settings"][
|
671
|
-
expect(@plugin["network"]["settings"][
|
672
|
-
expect(@plugin["network"]["settings"][
|
673
|
-
expect(@plugin["network"]["settings"][
|
674
|
-
expect(@plugin["network"]["settings"][
|
675
|
-
expect(@plugin["network"]["settings"][
|
676
|
-
expect(@plugin["network"]["settings"][
|
677
|
-
expect(@plugin["network"]["settings"][
|
678
|
-
expect(@plugin["network"]["settings"][
|
679
|
-
expect(@plugin["network"]["settings"][
|
680
|
-
expect(@plugin["network"]["settings"][
|
681
|
-
expect(@plugin["network"]["settings"][
|
682
|
-
expect(@plugin["network"]["settings"][
|
683
|
-
expect(@plugin["network"]["settings"][
|
684
|
-
expect(@plugin["network"]["settings"][
|
685
|
-
expect(@plugin["network"]["settings"][
|
686
|
-
expect(@plugin["network"]["settings"][
|
687
|
-
expect(@plugin["network"]["settings"][
|
688
|
-
expect(@plugin["network"]["settings"][
|
689
|
-
expect(@plugin["network"]["settings"][
|
690
|
-
expect(@plugin["network"]["settings"][
|
691
|
-
expect(@plugin["network"]["settings"][
|
692
|
-
expect(@plugin["network"]["settings"][
|
693
|
-
expect(@plugin["network"]["settings"][
|
694
|
-
expect(@plugin["network"]["settings"][
|
695
|
-
expect(@plugin["network"]["settings"][
|
696
|
-
expect(@plugin["network"]["settings"][
|
697
|
-
expect(@plugin["network"]["settings"][
|
698
|
-
expect(@plugin["network"]["settings"][
|
699
|
-
expect(@plugin["network"]["settings"][
|
700
|
-
expect(@plugin["network"]["settings"][
|
701
|
-
expect(@plugin["network"]["settings"][
|
702
|
-
expect(@plugin["network"]["settings"][
|
703
|
-
expect(@plugin["network"]["settings"][
|
704
|
-
expect(@plugin["network"]["settings"][
|
705
|
-
expect(@plugin["network"]["settings"][
|
706
|
-
expect(@plugin["network"]["settings"][
|
707
|
-
expect(@plugin["network"]["settings"][
|
708
|
-
expect(@plugin["network"]["settings"][
|
709
|
-
expect(@plugin["network"]["settings"][
|
710
|
-
expect(@plugin["network"]["settings"][
|
711
|
-
expect(@plugin["network"]["settings"][
|
712
|
-
expect(@plugin["network"]["settings"][
|
713
|
-
expect(@plugin["network"]["settings"][
|
714
|
-
expect(@plugin["network"]["settings"][
|
715
|
-
expect(@plugin["network"]["settings"][
|
716
|
-
expect(@plugin["network"]["settings"][
|
717
|
-
expect(@plugin["network"]["settings"][
|
718
|
-
expect(@plugin["network"]["settings"][
|
719
|
-
expect(@plugin["network"]["settings"][
|
720
|
-
expect(@plugin["network"]["settings"][
|
721
|
-
expect(@plugin["network"]["settings"][
|
722
|
-
expect(@plugin["network"]["settings"][
|
723
|
-
expect(@plugin["network"]["settings"][
|
724
|
-
expect(@plugin["network"]["settings"][
|
725
|
-
expect(@plugin["network"]["settings"][
|
726
|
-
expect(@plugin["network"]["settings"][
|
727
|
-
expect(@plugin["network"]["settings"][
|
728
|
-
expect(@plugin["network"]["settings"][
|
729
|
-
expect(@plugin["network"]["settings"][
|
730
|
-
expect(@plugin["network"]["settings"][
|
731
|
-
expect(@plugin["network"]["settings"][
|
732
|
-
expect(@plugin["network"]["settings"][
|
733
|
-
expect(@plugin["network"]["settings"][
|
734
|
-
expect(@plugin["network"]["settings"][
|
735
|
-
expect(@plugin["network"]["settings"][
|
736
|
-
expect(@plugin["network"]["settings"][
|
737
|
-
expect(@plugin["network"]["settings"][
|
738
|
-
expect(@plugin["network"]["settings"][
|
739
|
-
expect(@plugin["network"]["settings"][
|
740
|
-
expect(@plugin["network"]["settings"][
|
741
|
-
expect(@plugin["network"]["settings"][
|
742
|
-
expect(@plugin["network"]["settings"][
|
743
|
-
expect(@plugin["network"]["settings"][
|
744
|
-
expect(@plugin["network"]["settings"][
|
745
|
-
expect(@plugin["network"]["settings"][
|
746
|
-
expect(@plugin["network"]["settings"][
|
747
|
-
expect(@plugin["network"]["settings"][
|
748
|
-
expect(@plugin["network"]["settings"][
|
749
|
-
expect(@plugin["network"]["settings"][
|
750
|
-
expect(@plugin["network"]["settings"][
|
751
|
-
expect(@plugin["network"]["settings"][
|
752
|
-
expect(@plugin["network"]["settings"][
|
753
|
-
expect(@plugin["network"]["settings"][
|
754
|
-
expect(@plugin["network"]["settings"][
|
755
|
-
expect(@plugin["network"]["settings"][
|
756
|
-
expect(@plugin["network"]["settings"][
|
757
|
-
expect(@plugin["network"]["settings"][
|
758
|
-
expect(@plugin["network"]["settings"][
|
759
|
-
expect(@plugin["network"]["settings"][
|
760
|
-
expect(@plugin["network"]["settings"][
|
761
|
-
expect(@plugin["network"]["settings"][
|
762
|
-
expect(@plugin["network"]["settings"][
|
763
|
-
expect(@plugin["network"]["settings"][
|
764
|
-
expect(@plugin["network"]["settings"][
|
765
|
-
expect(@plugin["network"]["settings"][
|
766
|
-
expect(@plugin["network"]["settings"][
|
767
|
-
expect(@plugin["network"]["settings"][
|
768
|
-
expect(@plugin["network"]["settings"][
|
769
|
-
expect(@plugin["network"]["settings"][
|
770
|
-
expect(@plugin["network"]["settings"][
|
771
|
-
expect(@plugin["network"]["settings"][
|
772
|
-
expect(@plugin["network"]["settings"][
|
773
|
-
expect(@plugin["network"]["settings"][
|
774
|
-
expect(@plugin["network"]["settings"][
|
775
|
-
expect(@plugin["network"]["settings"][
|
776
|
-
expect(@plugin["network"]["settings"][
|
777
|
-
expect(@plugin["network"]["settings"][
|
778
|
-
expect(@plugin["network"]["settings"][
|
779
|
-
expect(@plugin["network"]["settings"][
|
780
|
-
expect(@plugin["network"]["settings"][
|
781
|
-
expect(@plugin["network"]["settings"][
|
782
|
-
expect(@plugin["network"]["settings"][
|
783
|
-
expect(@plugin["network"]["settings"][
|
784
|
-
expect(@plugin["network"]["settings"][
|
785
|
-
expect(@plugin["network"]["settings"][
|
786
|
-
expect(@plugin["network"]["settings"][
|
787
|
-
expect(@plugin["network"]["settings"][
|
788
|
-
expect(@plugin["network"]["settings"][
|
789
|
-
expect(@plugin["network"]["settings"][
|
790
|
-
expect(@plugin["network"]["settings"][
|
791
|
-
expect(@plugin["network"]["settings"][
|
792
|
-
expect(@plugin["network"]["settings"][
|
793
|
-
expect(@plugin["network"]["settings"][
|
794
|
-
expect(@plugin["network"]["settings"][
|
795
|
-
expect(@plugin["network"]["settings"][
|
796
|
-
expect(@plugin["network"]["settings"][
|
797
|
-
expect(@plugin["network"]["settings"][
|
798
|
-
expect(@plugin["network"]["settings"][
|
799
|
-
expect(@plugin["network"]["settings"][
|
800
|
-
expect(@plugin["network"]["settings"][
|
801
|
-
expect(@plugin["network"]["settings"][
|
802
|
-
expect(@plugin["network"]["settings"][
|
803
|
-
expect(@plugin["network"]["settings"][
|
804
|
-
expect(@plugin["network"]["settings"][
|
805
|
-
expect(@plugin["network"]["settings"][
|
806
|
-
expect(@plugin["network"]["settings"][
|
807
|
-
expect(@plugin["network"]["settings"][
|
808
|
-
expect(@plugin["network"]["settings"][
|
809
|
-
expect(@plugin["network"]["settings"][
|
810
|
-
expect(@plugin["network"]["settings"][
|
811
|
-
expect(@plugin["network"]["settings"][
|
812
|
-
expect(@plugin["network"]["settings"][
|
813
|
-
expect(@plugin["network"]["settings"][
|
814
|
-
expect(@plugin["network"]["settings"][
|
815
|
-
expect(@plugin["network"]["settings"][
|
816
|
-
expect(@plugin["network"]["settings"][
|
817
|
-
expect(@plugin["network"]["settings"][
|
818
|
-
expect(@plugin["network"]["settings"][
|
819
|
-
expect(@plugin["network"]["settings"][
|
820
|
-
expect(@plugin["network"]["settings"][
|
821
|
-
expect(@plugin["network"]["settings"][
|
822
|
-
expect(@plugin["network"]["settings"][
|
823
|
-
expect(@plugin["network"]["settings"][
|
824
|
-
expect(@plugin["network"]["settings"][
|
825
|
-
expect(@plugin["network"]["settings"][
|
826
|
-
expect(@plugin["network"]["settings"][
|
827
|
-
expect(@plugin["network"]["settings"][
|
828
|
-
expect(@plugin["network"]["settings"][
|
829
|
-
expect(@plugin["network"]["settings"][
|
830
|
-
expect(@plugin["network"]["settings"][
|
831
|
-
expect(@plugin["network"]["settings"][
|
832
|
-
expect(@plugin["network"]["settings"][
|
833
|
-
expect(@plugin["network"]["settings"][
|
834
|
-
expect(@plugin["network"]["settings"][
|
835
|
-
expect(@plugin["network"]["settings"][
|
836
|
-
expect(@plugin["network"]["settings"][
|
837
|
-
expect(@plugin["network"]["settings"][
|
838
|
-
expect(@plugin["network"]["settings"][
|
839
|
-
expect(@plugin["network"]["settings"][
|
840
|
-
expect(@plugin["network"]["settings"][
|
841
|
-
expect(@plugin["network"]["settings"][
|
842
|
-
expect(@plugin["network"]["settings"][
|
843
|
-
expect(@plugin["network"]["settings"][
|
844
|
-
expect(@plugin["network"]["settings"][
|
845
|
-
expect(@plugin["network"]["settings"][
|
846
|
-
expect(@plugin["network"]["settings"][
|
847
|
-
expect(@plugin["network"]["settings"][
|
553
|
+
expect(@plugin["network"]["settings"]["net.local.stream.sendspace"]).to eq("8192")
|
554
|
+
expect(@plugin["network"]["settings"]["net.local.stream.recvspace"]).to eq("8192")
|
555
|
+
expect(@plugin["network"]["settings"]["net.local.stream.tracemdns"]).to eq("0")
|
556
|
+
expect(@plugin["network"]["settings"]["net.local.dgram.maxdgram"]).to eq("2048")
|
557
|
+
expect(@plugin["network"]["settings"]["net.local.dgram.recvspace"]).to eq("4096")
|
558
|
+
expect(@plugin["network"]["settings"]["net.local.inflight"]).to eq("0")
|
559
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.lowfirst"]).to eq("1023")
|
560
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.lowlast"]).to eq("600")
|
561
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.first"]).to eq("49152")
|
562
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.last"]).to eq("65535")
|
563
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.hifirst"]).to eq("49152")
|
564
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.portrange.hilast"]).to eq("65535")
|
565
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.forwarding"]).to eq("1")
|
566
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.redirect"]).to eq("1")
|
567
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.ttl"]).to eq("64")
|
568
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.rtexpire"]).to eq("12")
|
569
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.rtminexpire"]).to eq("10")
|
570
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.rtmaxcache"]).to eq("128")
|
571
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.sourceroute"]).to eq("0")
|
572
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.intr_queue_maxlen"]).to eq("50")
|
573
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.intr_queue_drops"]).to eq("0")
|
574
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.accept_sourceroute"]).to eq("0")
|
575
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.keepfaith"]).to eq("0")
|
576
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.gifttl"]).to eq("30")
|
577
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.subnets_are_local"]).to eq("0")
|
578
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.mcast.maxgrpsrc"]).to eq("512")
|
579
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.mcast.maxsocksrc"]).to eq("128")
|
580
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.mcast.loop"]).to eq("1")
|
581
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.check_route_selfref"]).to eq("1")
|
582
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.use_route_genid"]).to eq("1")
|
583
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.hash_size"]).to eq("64")
|
584
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.curr_time"]).to eq("0")
|
585
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.ready_heap"]).to eq("0")
|
586
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.extract_heap"]).to eq("0")
|
587
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.searches"]).to eq("0")
|
588
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.search_steps"]).to eq("0")
|
589
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.expire"]).to eq("1")
|
590
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.max_chain_len"]).to eq("16")
|
591
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_lookup_depth"]).to eq("256")
|
592
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_avg_pkt_size"]).to eq("512")
|
593
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_max_pkt_size"]).to eq("1500")
|
594
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.debug"]).to eq("0")
|
595
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.enable"]).to eq("1")
|
596
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.autoinc_step"]).to eq("100")
|
597
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.one_pass"]).to eq("0")
|
598
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.debug"]).to eq("0")
|
599
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.verbose"]).to eq("0")
|
600
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.verbose_limit"]).to eq("0")
|
601
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_buckets"]).to eq("256")
|
602
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.curr_dyn_buckets"]).to eq("256")
|
603
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_count"]).to eq("0")
|
604
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_max"]).to eq("4096")
|
605
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.static_count"]).to eq("2")
|
606
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_ack_lifetime"]).to eq("300")
|
607
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_syn_lifetime"]).to eq("20")
|
608
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_fin_lifetime"]).to eq("1")
|
609
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_rst_lifetime"]).to eq("1")
|
610
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_udp_lifetime"]).to eq("10")
|
611
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_short_lifetime"]).to eq("5")
|
612
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_keepalive"]).to eq("1")
|
613
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.maxfragpackets"]).to eq("1536")
|
614
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.maxfragsperpacket"]).to eq("128")
|
615
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.maxfrags"]).to eq("3072")
|
616
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.scopedroute"]).to eq("1")
|
617
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.check_interface"]).to eq("0")
|
618
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.linklocal.in.allowbadttl"]).to eq("1")
|
619
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.random_id"]).to eq("1")
|
620
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.maxchainsent"]).to eq("0")
|
621
|
+
expect(@plugin["network"]["settings"]["net.inet.ip.select_srcif_debug"]).to eq("0")
|
622
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.maskrepl"]).to eq("0")
|
623
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.icmplim"]).to eq("250")
|
624
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.timestamp"]).to eq("0")
|
625
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.drop_redirect"]).to eq("0")
|
626
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.log_redirect"]).to eq("0")
|
627
|
+
expect(@plugin["network"]["settings"]["net.inet.icmp.bmcastecho"]).to eq("1")
|
628
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.recvifkludge"]).to eq("1")
|
629
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.sendra"]).to eq("1")
|
630
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.sendlocal"]).to eq("1")
|
631
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.v1enable"]).to eq("1")
|
632
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.v2enable"]).to eq("1")
|
633
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.legacysupp"]).to eq("0")
|
634
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.default_version"]).to eq("3")
|
635
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.gsrdelay"]).to eq("10")
|
636
|
+
expect(@plugin["network"]["settings"]["net.inet.igmp.debug"]).to eq("0")
|
637
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rfc1323"]).to eq("1")
|
638
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rfc1644"]).to eq("0")
|
639
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.mssdflt"]).to eq("512")
|
640
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.keepidle"]).to eq("7200000")
|
641
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.keepintvl"]).to eq("75000")
|
642
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sendspace"]).to eq("65536")
|
643
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.recvspace"]).to eq("65536")
|
644
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.keepinit"]).to eq("75000")
|
645
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.v6mssdflt"]).to eq("1024")
|
646
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.log_in_vain"]).to eq("0")
|
647
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.blackhole"]).to eq("0")
|
648
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.delayed_ack"]).to eq("3")
|
649
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_lq_overflow"]).to eq("1")
|
650
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.recvbg"]).to eq("0")
|
651
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.drop_synfin"]).to eq("1")
|
652
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.reass.maxsegments"]).to eq("3072")
|
653
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.reass.cursegments"]).to eq("0")
|
654
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.reass.overflows"]).to eq("0")
|
655
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.slowlink_wsize"]).to eq("8192")
|
656
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.maxseg_unacked"]).to eq("8")
|
657
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3465"]).to eq("1")
|
658
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3465_lim2"]).to eq("1")
|
659
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rtt_samples_per_slot"]).to eq("20")
|
660
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.recv_allowed_iaj"]).to eq("5")
|
661
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.acc_iaj_high_thresh"]).to eq("100")
|
662
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rexmt_thresh"]).to eq("2")
|
663
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.path_mtu_discovery"]).to eq("1")
|
664
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.slowstart_flightsize"]).to eq("1")
|
665
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.local_slowstart_flightsize"]).to eq("8")
|
666
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.tso"]).to eq("1")
|
667
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.ecn_initiate_out"]).to eq("0")
|
668
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.ecn_negotiate_in"]).to eq("0")
|
669
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.packetchain"]).to eq("50")
|
670
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.socket_unlocked_on_output"]).to eq("1")
|
671
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3390"]).to eq("1")
|
672
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.min_iaj_win"]).to eq("4")
|
673
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.acc_iaj_react_limit"]).to eq("200")
|
674
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sack"]).to eq("1")
|
675
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sack_maxholes"]).to eq("128")
|
676
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sack_globalmaxholes"]).to eq("65536")
|
677
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sack_globalholes"]).to eq("0")
|
678
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.minmss"]).to eq("216")
|
679
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.minmssoverload"]).to eq("0")
|
680
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.do_tcpdrain"]).to eq("0")
|
681
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.pcbcount"]).to eq("86")
|
682
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.icmp_may_rst"]).to eq("1")
|
683
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.strict_rfc1948"]).to eq("0")
|
684
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.isn_reseed_interval"]).to eq("0")
|
685
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.background_io_enabled"]).to eq("1")
|
686
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rtt_min"]).to eq("100")
|
687
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.rexmt_slop"]).to eq("200")
|
688
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.randomize_ports"]).to eq("0")
|
689
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.newreno_sockets"]).to eq("81")
|
690
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.background_sockets"]).to eq("-1")
|
691
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.tcbhashsize"]).to eq("4096")
|
692
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.background_io_trigger"]).to eq("5")
|
693
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.msl"]).to eq("15000")
|
694
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.max_persist_timeout"]).to eq("0")
|
695
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.always_keepalive"]).to eq("0")
|
696
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.timer_fastmode_idlemax"]).to eq("20")
|
697
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.broken_peer_syn_rxmit_thres"]).to eq("7")
|
698
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_timer_advanced"]).to eq("5")
|
699
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_resched_timerlist"]).to eq("12209")
|
700
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.pmtud_blackhole_detection"]).to eq("1")
|
701
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.pmtud_blackhole_mss"]).to eq("1200")
|
702
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.timer_fastquantum"]).to eq("100")
|
703
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.timer_slowquantum"]).to eq("500")
|
704
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.win_scale_factor"]).to eq("3")
|
705
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.sockthreshold"]).to eq("64")
|
706
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.bg_target_qdelay"]).to eq("100")
|
707
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.bg_allowed_increase"]).to eq("2")
|
708
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.bg_tether_shift"]).to eq("1")
|
709
|
+
expect(@plugin["network"]["settings"]["net.inet.tcp.bg_ss_fltsz"]).to eq("2")
|
710
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.checksum"]).to eq("1")
|
711
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.maxdgram"]).to eq("9216")
|
712
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.recvspace"]).to eq("42080")
|
713
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.log_in_vain"]).to eq("0")
|
714
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.blackhole"]).to eq("0")
|
715
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.pcbcount"]).to eq("72")
|
716
|
+
expect(@plugin["network"]["settings"]["net.inet.udp.randomize_ports"]).to eq("1")
|
717
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.def_policy"]).to eq("1")
|
718
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_trans_deflev"]).to eq("1")
|
719
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_net_deflev"]).to eq("1")
|
720
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_trans_deflev"]).to eq("1")
|
721
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_net_deflev"]).to eq("1")
|
722
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_cleartos"]).to eq("1")
|
723
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_offsetmask"]).to eq("0")
|
724
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.dfbit"]).to eq("0")
|
725
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.ecn"]).to eq("0")
|
726
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.debug"]).to eq("0")
|
727
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_randpad"]).to eq("-1")
|
728
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.bypass"]).to eq("0")
|
729
|
+
expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_port"]).to eq("4500")
|
730
|
+
expect(@plugin["network"]["settings"]["net.inet.raw.maxdgram"]).to eq("8192")
|
731
|
+
expect(@plugin["network"]["settings"]["net.inet.raw.recvspace"]).to eq("8192")
|
732
|
+
expect(@plugin["network"]["settings"]["net.link.generic.system.ifcount"]).to eq("10")
|
733
|
+
expect(@plugin["network"]["settings"]["net.link.generic.system.dlil_verbose"]).to eq("0")
|
734
|
+
expect(@plugin["network"]["settings"]["net.link.generic.system.multi_threaded_input"]).to eq("1")
|
735
|
+
expect(@plugin["network"]["settings"]["net.link.generic.system.dlil_input_sanity_check"]).to eq("0")
|
736
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.prune_intvl"]).to eq("300")
|
737
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.max_age"]).to eq("1200")
|
738
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.host_down_time"]).to eq("20")
|
739
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.apple_hwcksum_tx"]).to eq("1")
|
740
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.apple_hwcksum_rx"]).to eq("1")
|
741
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.arp_llreach_base"]).to eq("30")
|
742
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.maxtries"]).to eq("5")
|
743
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.useloopback"]).to eq("1")
|
744
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.proxyall"]).to eq("0")
|
745
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.sendllconflict"]).to eq("0")
|
746
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.log_arp_warnings"]).to eq("0")
|
747
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.keep_announcements"]).to eq("1")
|
748
|
+
expect(@plugin["network"]["settings"]["net.link.ether.inet.send_conflicting_probes"]).to eq("1")
|
749
|
+
expect(@plugin["network"]["settings"]["net.link.bridge.log_stp"]).to eq("0")
|
750
|
+
expect(@plugin["network"]["settings"]["net.link.bridge.debug"]).to eq("0")
|
751
|
+
expect(@plugin["network"]["settings"]["net.key.debug"]).to eq("0")
|
752
|
+
expect(@plugin["network"]["settings"]["net.key.spi_trycnt"]).to eq("1000")
|
753
|
+
expect(@plugin["network"]["settings"]["net.key.spi_minval"]).to eq("256")
|
754
|
+
expect(@plugin["network"]["settings"]["net.key.spi_maxval"]).to eq("268435455")
|
755
|
+
expect(@plugin["network"]["settings"]["net.key.int_random"]).to eq("60")
|
756
|
+
expect(@plugin["network"]["settings"]["net.key.larval_lifetime"]).to eq("30")
|
757
|
+
expect(@plugin["network"]["settings"]["net.key.blockacq_count"]).to eq("10")
|
758
|
+
expect(@plugin["network"]["settings"]["net.key.blockacq_lifetime"]).to eq("20")
|
759
|
+
expect(@plugin["network"]["settings"]["net.key.esp_keymin"]).to eq("256")
|
760
|
+
expect(@plugin["network"]["settings"]["net.key.esp_auth"]).to eq("0")
|
761
|
+
expect(@plugin["network"]["settings"]["net.key.ah_keymin"]).to eq("128")
|
762
|
+
expect(@plugin["network"]["settings"]["net.key.prefered_oldsa"]).to eq("0")
|
763
|
+
expect(@plugin["network"]["settings"]["net.key.natt_keepalive_interval"]).to eq("20")
|
764
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.forwarding"]).to eq("0")
|
765
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.redirect"]).to eq("1")
|
766
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.hlim"]).to eq("64")
|
767
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.maxfragpackets"]).to eq("1536")
|
768
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.accept_rtadv"]).to eq("0")
|
769
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.keepfaith"]).to eq("0")
|
770
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.log_interval"]).to eq("5")
|
771
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.hdrnestlimit"]).to eq("15")
|
772
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.dad_count"]).to eq("1")
|
773
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.auto_flowlabel"]).to eq("1")
|
774
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.defmcasthlim"]).to eq("1")
|
775
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.gifhlim"]).to eq("0")
|
776
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.kame_version"]).to eq("2009/apple-darwin")
|
777
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.use_deprecated"]).to eq("1")
|
778
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.rr_prune"]).to eq("5")
|
779
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.v6only"]).to eq("0")
|
780
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.rtexpire"]).to eq("3600")
|
781
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.rtminexpire"]).to eq("10")
|
782
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.rtmaxcache"]).to eq("128")
|
783
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.use_tempaddr"]).to eq("1")
|
784
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.temppltime"]).to eq("86400")
|
785
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.tempvltime"]).to eq("604800")
|
786
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.auto_linklocal"]).to eq("1")
|
787
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.prefer_tempaddr"]).to eq("1")
|
788
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.use_defaultzone"]).to eq("0")
|
789
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.maxfrags"]).to eq("12288")
|
790
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast_pmtu"]).to eq("0")
|
791
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.neighborgcthresh"]).to eq("1024")
|
792
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.maxifprefixes"]).to eq("16")
|
793
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.maxifdefrouters"]).to eq("16")
|
794
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.maxdynroutes"]).to eq("1024")
|
795
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.enable"]).to eq("1")
|
796
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.debug"]).to eq("0")
|
797
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.verbose"]).to eq("0")
|
798
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.verbose_limit"]).to eq("0")
|
799
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.scopedroute"]).to eq("1")
|
800
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.select_srcif_debug"]).to eq("0")
|
801
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.maxgrpsrc"]).to eq("512")
|
802
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.maxsocksrc"]).to eq("128")
|
803
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.loop"]).to eq("1")
|
804
|
+
expect(@plugin["network"]["settings"]["net.inet6.ip6.only_allow_rfc4193_prefixes"]).to eq("0")
|
805
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.def_policy"]).to eq("1")
|
806
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_trans_deflev"]).to eq("1")
|
807
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_net_deflev"]).to eq("1")
|
808
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ah_trans_deflev"]).to eq("1")
|
809
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ah_net_deflev"]).to eq("1")
|
810
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ecn"]).to eq("0")
|
811
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.debug"]).to eq("0")
|
812
|
+
expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_randpad"]).to eq("-1")
|
813
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.rediraccept"]).to eq("1")
|
814
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.redirtimeout"]).to eq("600")
|
815
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_prune"]).to eq("1")
|
816
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_delay"]).to eq("5")
|
817
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_umaxtries"]).to eq("3")
|
818
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_mmaxtries"]).to eq("3")
|
819
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_useloopback"]).to eq("1")
|
820
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nodeinfo"]).to eq("3")
|
821
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.errppslimit"]).to eq("500")
|
822
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_maxnudhint"]).to eq("0")
|
823
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_debug"]).to eq("0")
|
824
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_accept_6to4"]).to eq("1")
|
825
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_onlink_ns_rfc4861"]).to eq("0")
|
826
|
+
expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_llreach_base"]).to eq("30")
|
827
|
+
expect(@plugin["network"]["settings"]["net.inet6.mld.gsrdelay"]).to eq("10")
|
828
|
+
expect(@plugin["network"]["settings"]["net.inet6.mld.v1enable"]).to eq("1")
|
829
|
+
expect(@plugin["network"]["settings"]["net.inet6.mld.use_allow"]).to eq("1")
|
830
|
+
expect(@plugin["network"]["settings"]["net.inet6.mld.debug"]).to eq("0")
|
831
|
+
expect(@plugin["network"]["settings"]["net.idle.route.expire_timeout"]).to eq("30")
|
832
|
+
expect(@plugin["network"]["settings"]["net.idle.route.drain_interval"]).to eq("10")
|
833
|
+
expect(@plugin["network"]["settings"]["net.statistics"]).to eq("1")
|
834
|
+
expect(@plugin["network"]["settings"]["net.alf.loglevel"]).to eq("55")
|
835
|
+
expect(@plugin["network"]["settings"]["net.alf.perm"]).to eq("0")
|
836
|
+
expect(@plugin["network"]["settings"]["net.alf.defaultaction"]).to eq("1")
|
837
|
+
expect(@plugin["network"]["settings"]["net.alf.mqcount"]).to eq("0")
|
838
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.version"]).to eq("107000")
|
839
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.loglevel"]).to eq("0")
|
840
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.kern_ntlmssp"]).to eq("0")
|
841
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.kern_deprecatePreXPServers"]).to eq("1")
|
842
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.kern_deadtimer"]).to eq("60")
|
843
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.kern_hard_deadtimer"]).to eq("600")
|
844
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.kern_soft_deadtimer"]).to eq("30")
|
845
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.tcpsndbuf"]).to eq("261120")
|
846
|
+
expect(@plugin["network"]["settings"]["net.smb.fs.tcprcvbuf"]).to eq("261120")
|
848
847
|
end
|
849
848
|
end
|
850
849
|
end
|