Reading package lists... Building dependency tree... Reading state information... NOTICE: 'ohai' packaging is maintained in the 'Git' version control system at: git://anonscm.debian.org/pkg-ruby-extras/ohai.git Need to get 451 kB of source archives. Get:1 http://urika:3142/ftp.debian.org/debian/ sid/main ohai 8.4.0-1 (dsc) [2,324 B] Get:2 http://urika:3142/ftp.debian.org/debian/ sid/main ohai 8.4.0-1 (tar) [442 kB] Get:3 http://urika:3142/ftp.debian.org/debian/ sid/main ohai 8.4.0-1 (diff) [6,644 B] gpgv: keyblock resource `/tmp/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Thu 18 Jun 2015 12:44:12 PM UTC using RSA key ID CD460BDE gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./ohai_8.4.0-1.dsc dpkg-source: info: extracting ohai in ohai-8.4.0 dpkg-source: info: unpacking ohai_8.4.0.orig.tar.gz dpkg-source: info: unpacking ohai_8.4.0-1.debian.tar.xz dpkg-source: info: applying 0001-Drop-dependency-on-wmi-lite.patch dpkg-source: info: applying 0002-Avoid-dependency-on-rspec-collection_matchers.patch dpkg-source: info: applying 0003-Ruby-plugin-run-only-against-default-Ruby.patch Fetched 451 kB in 0s (20.0 MB/s) Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: bsdmainutils ca-certificates debhelper devscripts dh-python file gem2deb gem2deb-test-runner gettext gettext-base groff-base intltool-debian libasprintf0v5 libcroco3 libexpat1 libffi6 libglib2.0-0 libgmp-dev libgmpxx4ldbl libicu52 libmagic1 libmpdec2 libpipeline1 libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib libruby2.1 libruby2.2 libsqlite3-0 libunistring0 libxml2 libyajl-dev libyajl2 libyaml-0-2 man-db mime-support openssl po-debconf python3 python3-chardet python3-debian python3-minimal python3-pkg-resources python3-six python3.4 python3.4-minimal rake ruby ruby-all-dev ruby-diff-lcs ruby-ffi ruby-ffi-yajl ruby-ipaddress ruby-mime-types ruby-minitest ruby-mixlib-cli ruby-mixlib-config ruby-mixlib-log ruby-mixlib-shellout ruby-plist ruby-power-assert ruby-rspec ruby-rspec-core ruby-rspec-expectations ruby-rspec-mocks ruby-rspec-support ruby-setup ruby-sigar ruby-systemu ruby-test-unit ruby-thread-order ruby2.1 ruby2.1-dev ruby2.2 ruby2.2-dev rubygems-integration 0 upgraded, 76 newly installed, 0 to remove and 0 not upgraded. Need to get 34.1 MB of archives. After this operation, 133 MB of additional disk space will be used. Get:1 http://urika:3142/ftp.debian.org/debian/ sid/main libasprintf0v5 amd64 0.19.5.1-1 [32.2 kB] Get:2 http://urika:3142/ftp.debian.org/debian/ sid/main libmagic1 amd64 1:5.22+15-2 [249 kB] Get:3 http://urika:3142/ftp.debian.org/debian/ sid/main libicu52 amd64 52.1-10 [6,786 kB] Get:4 http://urika:3142/ftp.debian.org/debian/ sid/main libxml2 amd64 2.9.2+dfsg1-3 [934 kB] Get:5 http://urika:3142/ftp.debian.org/debian/ sid/main groff-base amd64 1.22.3-1 [1,205 kB] Get:6 http://urika:3142/ftp.debian.org/debian/ sid/main bsdmainutils amd64 9.0.6 [183 kB] Get:7 http://urika:3142/ftp.debian.org/debian/ sid/main libpipeline1 amd64 1.4.1-1 [27.8 kB] Get:8 http://urika:3142/ftp.debian.org/debian/ sid/main man-db amd64 2.7.2-1 [1,000 kB] Get:9 http://urika:3142/ftp.debian.org/debian/ sid/main libffi6 amd64 3.2.1-3 [20.1 kB] Get:10 http://urika:3142/ftp.debian.org/debian/ sid/main libglib2.0-0 amd64 2.44.1-1.1 [2,461 kB] Get:11 http://urika:3142/ftp.debian.org/debian/ sid/main libcroco3 amd64 0.6.8-3+b1 [135 kB] Get:12 http://urika:3142/ftp.debian.org/debian/ sid/main libmpdec2 amd64 2.4.1-1 [85.7 kB] Get:13 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3.4-minimal amd64 3.4.3-8 [495 kB] Get:14 http://urika:3142/ftp.debian.org/debian/ sid/main mime-support all 3.59 [36.4 kB] Get:15 http://urika:3142/ftp.debian.org/debian/ sid/main libsqlite3-0 amd64 3.8.11.1-1 [454 kB] Get:16 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3.4-stdlib amd64 3.4.3-8 [2,057 kB] Get:17 http://urika:3142/ftp.debian.org/debian/ sid/main libunistring0 amd64 0.9.3-5.2+b1 [288 kB] Get:18 http://urika:3142/ftp.debian.org/debian/ sid/main libyajl2 amd64 2.1.0-2 [23.2 kB] Get:19 http://urika:3142/ftp.debian.org/debian/ sid/main libyaml-0-2 amd64 0.1.6-3 [50.4 kB] Get:20 http://urika:3142/ftp.debian.org/debian/ sid/main libexpat1 amd64 2.1.0-7 [80.0 kB] Get:21 http://urika:3142/ftp.debian.org/debian/ sid/main python3.4-minimal amd64 3.4.3-8 [1,401 kB] Get:22 http://urika:3142/ftp.debian.org/debian/ sid/main python3-minimal amd64 3.4.3-4 [34.7 kB] Get:23 http://urika:3142/ftp.debian.org/debian/ sid/main python3.4 amd64 3.4.3-8 [219 kB] Get:24 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3-stdlib amd64 3.4.3-4 [18.1 kB] Get:25 http://urika:3142/ftp.debian.org/debian/ sid/main dh-python all 2.20150728 [71.3 kB] Get:26 http://urika:3142/ftp.debian.org/debian/ sid/main python3 amd64 3.4.3-4 [21.1 kB] Get:27 http://urika:3142/ftp.debian.org/debian/ sid/main file amd64 1:5.22+15-2 [60.1 kB] Get:28 http://urika:3142/ftp.debian.org/debian/ sid/main gettext-base amd64 0.19.5.1-1 [122 kB] Get:29 http://urika:3142/ftp.debian.org/debian/ sid/main openssl amd64 1.0.2d-1 [695 kB] Get:30 http://urika:3142/ftp.debian.org/debian/ sid/main ca-certificates all 20150426 [208 kB] Get:31 http://urika:3142/ftp.debian.org/debian/ sid/main gettext amd64 0.19.5.1-1 [1,459 kB] Get:32 http://urika:3142/ftp.debian.org/debian/ sid/main intltool-debian all 0.35.0+20060710.2 [25.9 kB] Get:33 http://urika:3142/ftp.debian.org/debian/ sid/main po-debconf all 1.0.18 [248 kB] Get:34 http://urika:3142/ftp.debian.org/debian/ sid/main debhelper all 9.20150811 [817 kB] Get:35 http://urika:3142/ftp.debian.org/debian/ sid/main devscripts amd64 2.15.8 [908 kB] Get:36 http://urika:3142/ftp.debian.org/debian/ sid/main rubygems-integration all 1.9 [4,754 B] Get:37 http://urika:3142/ftp.debian.org/debian/ sid/main libruby2.1 amd64 2.1.5-4 [3,280 kB] Get:38 http://urika:3142/ftp.debian.org/debian/ sid/main ruby2.1 amd64 2.1.5-4 [276 kB] Get:39 http://urika:3142/ftp.debian.org/debian/ sid/main ruby all 1:2.1.5.1 [9,756 B] Get:40 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-power-assert all 0.2.3-1 [7,236 B] Get:41 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-test-unit all 3.1.2-1 [60.0 kB] Get:42 http://urika:3142/ftp.debian.org/debian/ sid/main libruby2.2 amd64 2.2.2-3 [3,098 kB] Get:43 http://urika:3142/ftp.debian.org/debian/ sid/main ruby2.2 amd64 2.2.2-3 [213 kB] Get:44 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-minitest all 5.8.0-1 [49.7 kB] Get:45 http://urika:3142/ftp.debian.org/debian/ sid/main gem2deb-test-runner all 0.20.2 [16.8 kB] Get:46 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pkg-resources all 18.0.1-2 [44.2 kB] Get:47 http://urika:3142/ftp.debian.org/debian/ sid/main python3-chardet all 2.3.0-1 [96.1 kB] Get:48 http://urika:3142/ftp.debian.org/debian/ sid/main python3-six all 1.9.0-3 [13.7 kB] Get:49 http://urika:3142/ftp.debian.org/debian/ sid/main python3-debian all 0.1.27 [50.9 kB] Get:50 http://urika:3142/ftp.debian.org/debian/ sid/main libgmpxx4ldbl amd64 2:6.0.0+dfsg-7 [22.2 kB] Get:51 http://urika:3142/ftp.debian.org/debian/ sid/main libgmp-dev amd64 2:6.0.0+dfsg-7 [621 kB] Get:52 http://urika:3142/ftp.debian.org/debian/ sid/main ruby2.1-dev amd64 2.1.5-4 [1,103 kB] Get:53 http://urika:3142/ftp.debian.org/debian/ sid/main ruby2.2-dev amd64 2.2.2-3 [1,142 kB] Get:54 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-all-dev all 1:2.1.5.1 [9,188 B] Get:55 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-setup all 3.4.1-9 [34.2 kB] Get:56 http://urika:3142/ftp.debian.org/debian/ sid/main gem2deb all 0.20.2 [52.1 kB] Get:57 http://urika:3142/ftp.debian.org/debian/ sid/main libyajl-dev amd64 2.1.0-2 [30.9 kB] Get:58 http://urika:3142/ftp.debian.org/debian/ sid/main rake all 10.4.2-1 [49.0 kB] Get:59 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-diff-lcs all 1.2.5-2 [26.7 kB] Get:60 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-ffi amd64 1.9.6debian-2+b1 [94.1 kB] Get:61 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-ffi-yajl amd64 2.2.0-1+b1 [120 kB] Get:62 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-ipaddress all 0.8.0-3 [26.1 kB] Get:63 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-mime-types all 2.6.1-1 [120 kB] Get:64 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-mixlib-cli all 1.5.0-1 [7,130 B] Get:65 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-mixlib-config all 2.2.1-1 [9,494 B] Get:66 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-mixlib-log all 1.6.0-1 [6,084 B] Get:67 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-mixlib-shellout all 2.1.0-1 [16.4 kB] Get:68 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-plist all 3.1.0-2 [11.4 kB] Get:69 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-rspec-support all 3.3.0c0e0m0s0-1 [24.3 kB] Get:70 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-rspec-expectations all 3.3.0c0e0m0s0-1 [90.1 kB] Get:71 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-rspec-mocks all 3.3.0c0e0m0s0-1 [87.0 kB] Get:72 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-thread-order all 1.1.0-1 [5,096 B] Get:73 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-rspec-core all 3.3.0c0e0m0s0-1 [174 kB] Get:74 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-rspec all 3.3.0c0e0m0s0-1 [6,544 B] Get:75 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-sigar amd64 0.7.2-3.1+b3 [75.0 kB] Get:76 http://urika:3142/ftp.debian.org/debian/ sid/main ruby-systemu all 2.6.5-1 [8,758 B] debconf: delaying package configuration, since apt-utils is not installed Fetched 34.1 MB in 0s (38.2 MB/s) Selecting previously unselected package libasprintf0v5:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 15408 files and directories currently installed.) Preparing to unpack .../libasprintf0v5_0.19.5.1-1_amd64.deb ... Unpacking libasprintf0v5:amd64 (0.19.5.1-1) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../libmagic1_1%3a5.22+15-2_amd64.deb ... Unpacking libmagic1:amd64 (1:5.22+15-2) ... Selecting previously unselected package libicu52:amd64. Preparing to unpack .../libicu52_52.1-10_amd64.deb ... Unpacking libicu52:amd64 (52.1-10) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../libxml2_2.9.2+dfsg1-3_amd64.deb ... Unpacking libxml2:amd64 (2.9.2+dfsg1-3) ... Selecting previously unselected package groff-base. Preparing to unpack .../groff-base_1.22.3-1_amd64.deb ... Unpacking groff-base (1.22.3-1) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../bsdmainutils_9.0.6_amd64.deb ... Unpacking bsdmainutils (9.0.6) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../libpipeline1_1.4.1-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.4.1-1) ... Selecting previously unselected package man-db. Preparing to unpack .../man-db_2.7.2-1_amd64.deb ... Unpacking man-db (2.7.2-1) ... Selecting previously unselected package libffi6:amd64. Preparing to unpack .../libffi6_3.2.1-3_amd64.deb ... Unpacking libffi6:amd64 (3.2.1-3) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../libglib2.0-0_2.44.1-1.1_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.44.1-1.1) ... Selecting previously unselected package libcroco3:amd64. Preparing to unpack .../libcroco3_0.6.8-3+b1_amd64.deb ... Unpacking libcroco3:amd64 (0.6.8-3+b1) ... Selecting previously unselected package libmpdec2:amd64. Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ... Unpacking libmpdec2:amd64 (2.4.1-1) ... Selecting previously unselected package libpython3.4-minimal:amd64. Preparing to unpack .../libpython3.4-minimal_3.4.3-8_amd64.deb ... Unpacking libpython3.4-minimal:amd64 (3.4.3-8) ... Selecting previously unselected package mime-support. Preparing to unpack .../mime-support_3.59_all.deb ... Unpacking mime-support (3.59) ... Selecting previously unselected package libsqlite3-0:amd64. Preparing to unpack .../libsqlite3-0_3.8.11.1-1_amd64.deb ... Unpacking libsqlite3-0:amd64 (3.8.11.1-1) ... Selecting previously unselected package libpython3.4-stdlib:amd64. Preparing to unpack .../libpython3.4-stdlib_3.4.3-8_amd64.deb ... Unpacking libpython3.4-stdlib:amd64 (3.4.3-8) ... Selecting previously unselected package libunistring0:amd64. Preparing to unpack .../libunistring0_0.9.3-5.2+b1_amd64.deb ... Unpacking libunistring0:amd64 (0.9.3-5.2+b1) ... Selecting previously unselected package libyajl2:amd64. Preparing to unpack .../libyajl2_2.1.0-2_amd64.deb ... Unpacking libyajl2:amd64 (2.1.0-2) ... Selecting previously unselected package libyaml-0-2:amd64. Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ... Unpacking libyaml-0-2:amd64 (0.1.6-3) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../libexpat1_2.1.0-7_amd64.deb ... Unpacking libexpat1:amd64 (2.1.0-7) ... Selecting previously unselected package python3.4-minimal. Preparing to unpack .../python3.4-minimal_3.4.3-8_amd64.deb ... Unpacking python3.4-minimal (3.4.3-8) ... Selecting previously unselected package python3-minimal. Preparing to unpack .../python3-minimal_3.4.3-4_amd64.deb ... Unpacking python3-minimal (3.4.3-4) ... Selecting previously unselected package python3.4. Preparing to unpack .../python3.4_3.4.3-8_amd64.deb ... Unpacking python3.4 (3.4.3-8) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../libpython3-stdlib_3.4.3-4_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.4.3-4) ... Selecting previously unselected package dh-python. Preparing to unpack .../dh-python_2.20150728_all.deb ... Unpacking dh-python (2.20150728) ... Setting up libpython3.4-minimal:amd64 (3.4.3-8) ... Setting up libexpat1:amd64 (2.1.0-7) ... Setting up python3.4-minimal (3.4.3-8) ... Setting up python3-minimal (3.4.3-4) ... Processing triggers for libc-bin (2.19-19) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 17034 files and directories currently installed.) Preparing to unpack .../python3_3.4.3-4_amd64.deb ... Unpacking python3 (3.4.3-4) ... Selecting previously unselected package file. Preparing to unpack .../file_1%3a5.22+15-2_amd64.deb ... Unpacking file (1:5.22+15-2) ... Selecting previously unselected package gettext-base. Preparing to unpack .../gettext-base_0.19.5.1-1_amd64.deb ... Unpacking gettext-base (0.19.5.1-1) ... Selecting previously unselected package openssl. Preparing to unpack .../openssl_1.0.2d-1_amd64.deb ... Unpacking openssl (1.0.2d-1) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../ca-certificates_20150426_all.deb ... Unpacking ca-certificates (20150426) ... Selecting previously unselected package gettext. Preparing to unpack .../gettext_0.19.5.1-1_amd64.deb ... Unpacking gettext (0.19.5.1-1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../intltool-debian_0.35.0+20060710.2_all.deb ... Unpacking intltool-debian (0.35.0+20060710.2) ... Selecting previously unselected package po-debconf. Preparing to unpack .../po-debconf_1.0.18_all.deb ... Unpacking po-debconf (1.0.18) ... Selecting previously unselected package debhelper. Preparing to unpack .../debhelper_9.20150811_all.deb ... Unpacking debhelper (9.20150811) ... Selecting previously unselected package devscripts. Preparing to unpack .../devscripts_2.15.8_amd64.deb ... Unpacking devscripts (2.15.8) ... Selecting previously unselected package rubygems-integration. Preparing to unpack .../rubygems-integration_1.9_all.deb ... Unpacking rubygems-integration (1.9) ... Selecting previously unselected package libruby2.1:amd64. Preparing to unpack .../libruby2.1_2.1.5-4_amd64.deb ... Unpacking libruby2.1:amd64 (2.1.5-4) ... Selecting previously unselected package ruby2.1. Preparing to unpack .../ruby2.1_2.1.5-4_amd64.deb ... Unpacking ruby2.1 (2.1.5-4) ... Selecting previously unselected package ruby. Preparing to unpack .../ruby_1%3a2.1.5.1_all.deb ... Unpacking ruby (1:2.1.5.1) ... Selecting previously unselected package ruby-power-assert. Preparing to unpack .../ruby-power-assert_0.2.3-1_all.deb ... Unpacking ruby-power-assert (0.2.3-1) ... Selecting previously unselected package ruby-test-unit. Preparing to unpack .../ruby-test-unit_3.1.2-1_all.deb ... Unpacking ruby-test-unit (3.1.2-1) ... Selecting previously unselected package libruby2.2:amd64. Preparing to unpack .../libruby2.2_2.2.2-3_amd64.deb ... Unpacking libruby2.2:amd64 (2.2.2-3) ... Selecting previously unselected package ruby2.2. Preparing to unpack .../ruby2.2_2.2.2-3_amd64.deb ... Unpacking ruby2.2 (2.2.2-3) ... Selecting previously unselected package ruby-minitest. Preparing to unpack .../ruby-minitest_5.8.0-1_all.deb ... Unpacking ruby-minitest (5.8.0-1) ... Selecting previously unselected package gem2deb-test-runner. Preparing to unpack .../gem2deb-test-runner_0.20.2_all.deb ... Unpacking gem2deb-test-runner (0.20.2) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../python3-pkg-resources_18.0.1-2_all.deb ... Unpacking python3-pkg-resources (18.0.1-2) ... Selecting previously unselected package python3-chardet. Preparing to unpack .../python3-chardet_2.3.0-1_all.deb ... Unpacking python3-chardet (2.3.0-1) ... Selecting previously unselected package python3-six. Preparing to unpack .../python3-six_1.9.0-3_all.deb ... Unpacking python3-six (1.9.0-3) ... Selecting previously unselected package python3-debian. Preparing to unpack .../python3-debian_0.1.27_all.deb ... Unpacking python3-debian (0.1.27) ... Selecting previously unselected package libgmpxx4ldbl:amd64. Preparing to unpack .../libgmpxx4ldbl_2%3a6.0.0+dfsg-7_amd64.deb ... Unpacking libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-7) ... Selecting previously unselected package libgmp-dev:amd64. Preparing to unpack .../libgmp-dev_2%3a6.0.0+dfsg-7_amd64.deb ... Unpacking libgmp-dev:amd64 (2:6.0.0+dfsg-7) ... Selecting previously unselected package ruby2.1-dev:amd64. Preparing to unpack .../ruby2.1-dev_2.1.5-4_amd64.deb ... Unpacking ruby2.1-dev:amd64 (2.1.5-4) ... Selecting previously unselected package ruby2.2-dev:amd64. Preparing to unpack .../ruby2.2-dev_2.2.2-3_amd64.deb ... Unpacking ruby2.2-dev:amd64 (2.2.2-3) ... Selecting previously unselected package ruby-all-dev. Preparing to unpack .../ruby-all-dev_1%3a2.1.5.1_all.deb ... Unpacking ruby-all-dev (1:2.1.5.1) ... Selecting previously unselected package ruby-setup. Preparing to unpack .../ruby-setup_3.4.1-9_all.deb ... Unpacking ruby-setup (3.4.1-9) ... Selecting previously unselected package gem2deb. Preparing to unpack .../gem2deb_0.20.2_all.deb ... Unpacking gem2deb (0.20.2) ... Selecting previously unselected package libyajl-dev:amd64. Preparing to unpack .../libyajl-dev_2.1.0-2_amd64.deb ... Unpacking libyajl-dev:amd64 (2.1.0-2) ... Selecting previously unselected package rake. Preparing to unpack .../archives/rake_10.4.2-1_all.deb ... Unpacking rake (10.4.2-1) ... Selecting previously unselected package ruby-diff-lcs. Preparing to unpack .../ruby-diff-lcs_1.2.5-2_all.deb ... Unpacking ruby-diff-lcs (1.2.5-2) ... Selecting previously unselected package ruby-ffi. Preparing to unpack .../ruby-ffi_1.9.6debian-2+b1_amd64.deb ... Unpacking ruby-ffi (1.9.6debian-2+b1) ... Selecting previously unselected package ruby-ffi-yajl. Preparing to unpack .../ruby-ffi-yajl_2.2.0-1+b1_amd64.deb ... Unpacking ruby-ffi-yajl (2.2.0-1+b1) ... Selecting previously unselected package ruby-ipaddress. Preparing to unpack .../ruby-ipaddress_0.8.0-3_all.deb ... Unpacking ruby-ipaddress (0.8.0-3) ... Selecting previously unselected package ruby-mime-types. Preparing to unpack .../ruby-mime-types_2.6.1-1_all.deb ... Unpacking ruby-mime-types (2.6.1-1) ... Selecting previously unselected package ruby-mixlib-cli. Preparing to unpack .../ruby-mixlib-cli_1.5.0-1_all.deb ... Unpacking ruby-mixlib-cli (1.5.0-1) ... Selecting previously unselected package ruby-mixlib-config. Preparing to unpack .../ruby-mixlib-config_2.2.1-1_all.deb ... Unpacking ruby-mixlib-config (2.2.1-1) ... Selecting previously unselected package ruby-mixlib-log. Preparing to unpack .../ruby-mixlib-log_1.6.0-1_all.deb ... Unpacking ruby-mixlib-log (1.6.0-1) ... Selecting previously unselected package ruby-mixlib-shellout. Preparing to unpack .../ruby-mixlib-shellout_2.1.0-1_all.deb ... Unpacking ruby-mixlib-shellout (2.1.0-1) ... Selecting previously unselected package ruby-plist. Preparing to unpack .../ruby-plist_3.1.0-2_all.deb ... Unpacking ruby-plist (3.1.0-2) ... Selecting previously unselected package ruby-rspec-support. Preparing to unpack .../ruby-rspec-support_3.3.0c0e0m0s0-1_all.deb ... Unpacking ruby-rspec-support (3.3.0c0e0m0s0-1) ... Selecting previously unselected package ruby-rspec-expectations. Preparing to unpack .../ruby-rspec-expectations_3.3.0c0e0m0s0-1_all.deb ... Unpacking ruby-rspec-expectations (3.3.0c0e0m0s0-1) ... Selecting previously unselected package ruby-rspec-mocks. Preparing to unpack .../ruby-rspec-mocks_3.3.0c0e0m0s0-1_all.deb ... Unpacking ruby-rspec-mocks (3.3.0c0e0m0s0-1) ... Selecting previously unselected package ruby-thread-order. Preparing to unpack .../ruby-thread-order_1.1.0-1_all.deb ... Unpacking ruby-thread-order (1.1.0-1) ... Selecting previously unselected package ruby-rspec-core. Preparing to unpack .../ruby-rspec-core_3.3.0c0e0m0s0-1_all.deb ... Unpacking ruby-rspec-core (3.3.0c0e0m0s0-1) ... Selecting previously unselected package ruby-rspec. Preparing to unpack .../ruby-rspec_3.3.0c0e0m0s0-1_all.deb ... Unpacking ruby-rspec (3.3.0c0e0m0s0-1) ... Selecting previously unselected package ruby-sigar. Preparing to unpack .../ruby-sigar_0.7.2-3.1+b3_amd64.deb ... Unpacking ruby-sigar (0.7.2-3.1+b3) ... Selecting previously unselected package ruby-systemu. Preparing to unpack .../ruby-systemu_2.6.5-1_all.deb ... Unpacking ruby-systemu (2.6.5-1) ... Setting up libasprintf0v5:amd64 (0.19.5.1-1) ... Setting up libmagic1:amd64 (1:5.22+15-2) ... Setting up libicu52:amd64 (52.1-10) ... Setting up libxml2:amd64 (2.9.2+dfsg1-3) ... Setting up groff-base (1.22.3-1) ... Setting up bsdmainutils (9.0.6) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up libpipeline1:amd64 (1.4.1-1) ... Setting up man-db (2.7.2-1) ... Building database of manual pages ... Setting up libffi6:amd64 (3.2.1-3) ... Setting up libglib2.0-0:amd64 (2.44.1-1.1) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.8-3+b1) ... Setting up libmpdec2:amd64 (2.4.1-1) ... Setting up mime-support (3.59) ... Setting up libsqlite3-0:amd64 (3.8.11.1-1) ... Setting up libpython3.4-stdlib:amd64 (3.4.3-8) ... Setting up libunistring0:amd64 (0.9.3-5.2+b1) ... Setting up libyajl2:amd64 (2.1.0-2) ... Setting up libyaml-0-2:amd64 (0.1.6-3) ... Setting up python3.4 (3.4.3-8) ... Setting up libpython3-stdlib:amd64 (3.4.3-4) ... Setting up file (1:5.22+15-2) ... Setting up gettext-base (0.19.5.1-1) ... Setting up openssl (1.0.2d-1) ... Setting up ca-certificates (20150426) ... Setting up gettext (0.19.5.1-1) ... Setting up intltool-debian (0.35.0+20060710.2) ... Setting up po-debconf (1.0.18) ... Setting up debhelper (9.20150811) ... Setting up rubygems-integration (1.9) ... Setting up libruby2.1:amd64 (2.1.5-4) ... Setting up ruby2.1 (2.1.5-4) ... Setting up ruby (1:2.1.5.1) ... Setting up ruby-power-assert (0.2.3-1) ... Setting up ruby-test-unit (3.1.2-1) ... Setting up libruby2.2:amd64 (2.2.2-3) ... Setting up ruby2.2 (2.2.2-3) ... Setting up ruby-minitest (5.8.0-1) ... Setting up gem2deb-test-runner (0.20.2) ... Setting up libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-7) ... Setting up libgmp-dev:amd64 (2:6.0.0+dfsg-7) ... Setting up ruby2.1-dev:amd64 (2.1.5-4) ... Setting up ruby2.2-dev:amd64 (2.2.2-3) ... Setting up ruby-all-dev (1:2.1.5.1) ... Setting up ruby-setup (3.4.1-9) ... Setting up libyajl-dev:amd64 (2.1.0-2) ... Setting up rake (10.4.2-1) ... Setting up ruby-diff-lcs (1.2.5-2) ... Setting up ruby-ffi (1.9.6debian-2+b1) ... Setting up ruby-ffi-yajl (2.2.0-1+b1) ... Setting up ruby-ipaddress (0.8.0-3) ... Setting up ruby-mime-types (2.6.1-1) ... Setting up ruby-mixlib-cli (1.5.0-1) ... Setting up ruby-mixlib-config (2.2.1-1) ... Setting up ruby-mixlib-log (1.6.0-1) ... Setting up ruby-mixlib-shellout (2.1.0-1) ... Setting up ruby-plist (3.1.0-2) ... Setting up ruby-rspec-support (3.3.0c0e0m0s0-1) ... Setting up ruby-rspec-expectations (3.3.0c0e0m0s0-1) ... Setting up ruby-rspec-mocks (3.3.0c0e0m0s0-1) ... Setting up ruby-thread-order (1.1.0-1) ... Setting up ruby-rspec-core (3.3.0c0e0m0s0-1) ... Setting up ruby-rspec (3.3.0c0e0m0s0-1) ... Setting up ruby-sigar (0.7.2-3.1+b3) ... Setting up ruby-systemu (2.6.5-1) ... Setting up python3 (3.4.3-4) ... Setting up devscripts (2.15.8) ... Setting up python3-pkg-resources (18.0.1-2) ... Setting up python3-chardet (2.3.0-1) ... Setting up python3-six (1.9.0-3) ... Setting up python3-debian (0.1.27) ... Setting up gem2deb (0.20.2) ... Setting up dh-python (2.20150728) ... Processing triggers for libc-bin (2.19-19) ... Processing triggers for ca-certificates (20150426) ... Updating certificates in /etc/ssl/certs... 180 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Killed old client process Internet Systems Consortium DHCP Client 4.3.2 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/b2:30:f3:08:80:ae Sending on LPF/eth0/b2:30:f3:08:80:ae Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.3.1 port 67 dpkg-buildpackage: source package ohai dpkg-buildpackage: source version 8.4.0-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Antonio Terceiro dpkg-source --before-build ohai-8.4.0 dpkg-buildpackage: host architecture amd64 debian/rules clean dh clean --buildsystem=ruby --with ruby dh_testdir -O--buildsystem=ruby dh_auto_clean -O--buildsystem=ruby dh_ruby --clean dh_ruby --clean dh_clean -O--buildsystem=ruby dpkg-source -b ohai-8.4.0 dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building ohai using existing ./ohai_8.4.0.orig.tar.gz dpkg-source: info: building ohai in ohai_8.4.0-1.debian.tar.xz dpkg-source: info: building ohai in ohai_8.4.0-1.dsc debian/rules build dh build --buildsystem=ruby --with ruby dh_testdir -O--buildsystem=ruby dh_auto_configure -O--buildsystem=ruby dh_ruby --configure dh_auto_build -O--buildsystem=ruby dh_ruby --build dh_ruby --build dh_auto_test -O--buildsystem=ruby dh_ruby --test debian/rules binary dh binary --buildsystem=ruby --with ruby dh_testroot -O--buildsystem=ruby dh_prep -O--buildsystem=ruby dh_auto_install -O--buildsystem=ruby dh_ruby --install /ohai-8.4.0/debian/ohai dh_ruby --install ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install files │ └──────────────────────────────────────────────────────────────────────────────┘ install -d /ohai-8.4.0/debian/ohai/usr/bin install -D -m755 /ohai-8.4.0/bin/ohai /ohai-8.4.0/debian/ohai/usr/bin/ohai install -d /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby install -D -m644 /ohai-8.4.0/lib/ohai.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/gce_metadata.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/gce_metadata.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/string.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/string.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/network_constants.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/network_constants.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/constant_helper.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/constant_helper.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/command.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/command.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/seconds_to_human.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/seconds_to_human.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/os.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/os.rb install -D -m644 /ohai-8.4.0/lib/ohai/mixin/ec2_metadata.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mixin/ec2_metadata.rb install -D -m644 /ohai-8.4.0/lib/ohai/application.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/application.rb install -D -m644 /ohai-8.4.0/lib/ohai/system.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/system.rb install -D -m644 /ohai-8.4.0/lib/ohai/loader.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/loader.rb install -D -m644 /ohai-8.4.0/lib/ohai/mash.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/mash.rb install -D -m644 /ohai-8.4.0/lib/ohai/exception.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/exception.rb install -D -m644 /ohai-8.4.0/lib/ohai/hints.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/hints.rb install -D -m644 /ohai-8.4.0/lib/ohai/version.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/version.rb install -D -m644 /ohai-8.4.0/lib/ohai/log.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/log.rb install -D -m644 /ohai-8.4.0/lib/ohai/config.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/config.rb install -D -m644 /ohai-8.4.0/lib/ohai/common/dmi.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/common/dmi.rb install -D -m644 /ohai-8.4.0/lib/ohai/dsl/plugin/versionvii.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/dsl/plugin/versionvii.rb install -D -m644 /ohai-8.4.0/lib/ohai/dsl/plugin/versionvi.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/dsl/plugin/versionvi.rb install -D -m644 /ohai-8.4.0/lib/ohai/dsl/plugin.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/dsl/plugin.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/groovy.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/groovy.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/elixir.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/elixir.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/windows/drivers.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/windows/drivers.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/windows/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/windows/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/windows/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/windows/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/windows/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/windows/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/windows/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/windows/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/hostname.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/hostname.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/cloud_v2.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/cloud_v2.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/digital_ocean.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/digital_ocean.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ruby.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ruby.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/root_group.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/root_group.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/mono.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/mono.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/uptime.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/uptime.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/azure.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/azure.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/cloud.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/cloud.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/network_route.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/network_route.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/sigar/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/sigar/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/nodejs.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/nodejs.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/os.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/os.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/freebsd/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/freebsd/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/python.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/python.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/go.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/go.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/php.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/php.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/network_listeners.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/network_listeners.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/rackspace.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/rackspace.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/command.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/command.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ec2.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ec2.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ohai.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ohai.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ohai_time.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ohai_time.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/netbsd/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/netbsd/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/dmi.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/dmi.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/init_package.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/init_package.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ps.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ps.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/eucalyptus.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/eucalyptus.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/c.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/c.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ssh_host_key.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ssh_host_key.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linode.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linode.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/java.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/java.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/rust.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/rust.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/uptime.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/uptime.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/kernel.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/kernel.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/aix/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/aix/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/keys.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/keys.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/joyent.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/joyent.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/lua.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/lua.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/ip_scopes.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ip_scopes.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openbsd/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openbsd/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/openstack.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/openstack.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/mdadm.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/mdadm.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/lsb.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/lsb.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/block_device.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/block_device.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/linux/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/linux/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/zpools.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/zpools.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/virtualization.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/virtualization.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/dmi.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/dmi.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/solaris2/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/solaris2/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/languages.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/languages.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/cpu.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/cpu.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/system_profiler.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/system_profiler.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/network.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/network.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/memory.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/memory.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/platform.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/platform.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/darwin/filesystem.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/darwin/filesystem.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/erlang.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/erlang.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/passwd.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/passwd.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/kernel.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/kernel.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/perl.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/perl.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/chef.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/chef.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/os.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/os.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/powershell.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/powershell.rb install -D -m644 /ohai-8.4.0/lib/ohai/plugins/gce.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/gce.rb install -D -m644 /ohai-8.4.0/lib/ohai/runner.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/runner.rb install -D -m644 /ohai-8.4.0/lib/ohai/util/file_helper.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/util/file_helper.rb install -D -m644 /ohai-8.4.0/lib/ohai/util/win32/group_helper.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/util/win32/group_helper.rb install -D -m644 /ohai-8.4.0/lib/ohai/util/ip_helper.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/util/ip_helper.rb install -D -m644 /ohai-8.4.0/lib/ohai/util/win32.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/util/win32.rb install -D -m644 /ohai-8.4.0/lib/ohai/provides_map.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/provides_map.rb install -D -m644 /ohai-8.4.0/lib/ohai/dsl.rb /ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby/ohai/dsl.rb Rewriting shebang line of /ohai-8.4.0/debian/ohai/usr/bin/ohai ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ └──────────────────────────────────────────────────────────────────────────────┘ generating gemspec at /ohai-8.4.0/debian/ohai/usr/share/rubygems-integration/all/specifications/ohai-8.4.0.gemspec /usr/bin/ruby2.1 /usr/bin/gem2deb-test-runner ┌──────────────────────────────────────────────────────────────────────────────┐ │ Checking Rubygems dependency resolution on ruby2.1 │ └──────────────────────────────────────────────────────────────────────────────┘ GEM_PATH=/tmp/.gem/ruby/2.1.0:/var/lib/gems/2.1.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1:/usr/share/rubygems-integration/all:debian/ohai/usr/share/rubygems-integration/all ruby2.1 -e gem\ \"ohai\" ┌──────────────────────────────────────────────────────────────────────────────┐ │ Run tests for ruby2.1 from debian/ruby-tests.rake │ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=/ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby:. rake2.1 -f debian/ruby-tests.rake /usr/bin/ruby2.1 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation Run options: include {:focus=>true} exclude {:requires_root=>true, :ruby_19_only=>true, :ruby_18_only=>true, :windows_only=>true} All examples were filtered out; ignoring {:focus=>true} Ohai should have a version constant defined Ohai::DSL::Plugin::VersionVII should not modify the plugin name when the plugin is named correctly when the plugin is named incorrectly because the plugin name doesn't start with a capital letter should raise an Ohai::Exceptions::InvalidPluginName exception because the plugin name contains an underscore should raise an Ohai::Exceptions::InvalidPluginName exception because the plugin name isn't a symbol should raise an Ohai::Exceptions::InvalidPluginName exception #version should save the plugin version as :version7 #provides should collect a single attribute should collect a list of attributes should collect from multiple provides statements should collect attributes across multiple plugin files should collect unique attributes #depends should collect a single dependency should collect a list of dependencies should collect from multiple depends statements should collect dependencies across multiple plugin files should collect unique attributes #collect_data should save as :default if no platform is given should save a single given platform should save a list of platforms should save multiple collect_data blocks should save platforms across multiple plugins should fail a platform has already been defined in the same plugin should fail if a platform has already been defined in another plugin file #provides (deprecated) should log a warning #require_plugin (deprecated) should log a warning behaves like Ohai::DSL::Plugin #initialize should set has_run? to false should set the correct plugin version #run when plugin is enabled should run the plugin should set has_run? to true if the plugin is disabled should not run the plugin should log a message to debug should set has_run? to true when accessing data via method_missing should take a missing method and store the method name as a key, with its arguments as values should return the current value of the method name should allow you to get the value of a key by calling method_missing with no arguments when checking attribute existence should return true if an attribute exists with the given name should return false if an attribute does not exist with the given name when setting attributes should let you set an attribute when getting attributes should let you get an attribute Ohai::DSL::Plugin::VersionVI #version should save the plugin version as :version6 #provides should log a debug message when provides is used should not update the provides map for version 6 plugins. behaves like Ohai::DSL::Plugin #initialize should set has_run? to false should set the correct plugin version #run when plugin is enabled should run the plugin should set has_run? to true if the plugin is disabled should not run the plugin should log a message to debug should set has_run? to true when accessing data via method_missing should take a missing method and store the method name as a key, with its arguments as values should return the current value of the method name should allow you to get the value of a key by calling method_missing with no arguments when checking attribute existence should return true if an attribute exists with the given name should return false if an attribute does not exist with the given name when setting attributes should let you set an attribute when getting attributes should let you get an attribute Ohai::Hints When the plugins directory doesn't contain any hints hint? should return nil When the plugins directory contains empty and full hints hint? should return the data for full hints hint? should return empty hash for empty hints Ohai::Loader #initialize should return an Ohai::Loader object When the plugins directory contains both V6 & V7 plugins load_plugin() method should log a warning if a plugin doesn't exist when loading a v7 plugin should save the plugin according to its attribute should save a single plugin source should save all plugin sources when loading a v6 plugin should not add this plugin's provided attributes to the provides map should save the plugin's source When the plugins directory contains invalid plugins load_plugin() method when the plugin uses Ohai.plugin instead of Ohai.plugins should log an unsupported operation warning [2015-08-18T20:28:31+00:00] WARN: Plugin Method Error: : unsupported operation 'plugins' should not raise an error when the plugin tries to call an unexisting method shoud log an unsupported operation warning [2015-08-18T20:28:31+00:00] WARN: Plugin Method Error: : unsupported operation 'really_wants' should not raise an error when the plugin defines collect_data on the same platform more than once shoud log an illegal plugin definition warning [2015-08-18T20:28:31+00:00] WARN: Plugin Definition Error: : collect_data already defined on platform darwin should not raise an error when an unexpected error is encountered should log a warning [2015-08-18T20:28:31+00:00] WARN: Plugin Error: : You aren't expecting this. should not raise an error when the plugin name symbol has bad syntax should log a syntax error warning [2015-08-18T20:28:31+00:00] WARN: Plugin Syntax Error: : /tmp/ohai-plugins20150818-18086-uxy1sg/bad_symbol.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END Ohai.plugin(:1nval!d) do ^ should not raise an error when the plugin forgets an 'end' should log a syntax error warning [2015-08-18T20:28:31+00:00] WARN: Plugin Syntax Error: : /tmp/ohai-plugins20150818-18086-1if8bdx/no_end.rb:4: syntax error, unexpected end-of-input, expecting keyword_end should not raise an error when the plugin has an invalid name should log an invalid plugin name warning [2015-08-18T20:28:31+00:00] WARN: Plugin Name Error: : you_give_plugins_a_bad_name is not a valid plugin name. A valid plugin name is a symbol which begins with a capital letter and contains no underscores should not raise an error Ohai::Mixin::Command popen4 should default all commands to be run in the POSIX standard C locale should respect locale when specified explicitly should force encode the string to UTF-8 reaps zombie processes after exec fails [OHAI-455] when external commands return UTF-8 strings and we are running under LANG=C encoding should force encode the string to UTF-8 Ohai::Mixin::Ec2Metadata #best_api_version with a sorted list of metadata versions returns the most recent version with an unsorted list of metadata versions returns the most recent version (using string sort) when no supported versions are found WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/mixin/ec2_metadata_spec.rb:52:in `block (4 levels) in '. raises an error when the response code is 404 returns 'latest' as the version when the response code is unexpected WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/mixin/ec2_metadata_spec.rb:69:in `block (4 levels) in '. raises an error #metadata_get when the response code is unexpected raises an error Ohai::System AIX cpu plugin sets the vendor id to IBM sets the available attribute sets the total number of devices detects the model detects the mhz detects the status of the device detects the location of the device lsattr -El device_name detects all the attributes of the device Ohai::System AIX filesystem plugin df -P returns the filesystem block size returns the filesystem used space in kb returns the filesystem available space in kb returns the filesystem capacity in percentage returns the filesystem mounted location mount returns the filesystem mount location returns the filesystem type returns the filesystem mount options having node values returns the filesystem mount location returns the filesystem type returns the filesystem mount options Ohai::System Aix hostname plugin should set the machinename Ohai::System AIX kernel plugin uname -s detects the name uname -r detects the release uname -v detects the version uname -p detects the machine detects the modules Ohai::System AIX network plugin run detects network information detects the interfaces detects the ip addresses of the interfaces netstat -rn |grep default returns the default gateway of the system's network returns the default interface of the system's network lsdev -Cc if detects the state of the interfaces in the system detects the description of the interfaces in the system ifconfig interface detects the CHAIN network flag detects the metric network flag inet entries detects the family detects the netmask detects the broadcast detects all key-values with no netmask in the output detects the default prefixlen detects the default netmask inet6 entries detects the prefixlen detects the family entstat -d interface detects the family netstat -nrf family inet detects the route destinations detects the route family detects the route gateway detects the route flags inet6 detects the route destinations detects the route family detects the route gateway detects the route flags arp -an supresses the hostname entries detects the remote ip entry detects the remote mac entry hex_to_dec_netmask method converts a netmask from hexadecimal form to decimal form Ohai::System Aix plugin platform should set platform to aix should set the platform_version should set platform_family Ohai::System Aix plugin uptime should set uptime_seconds to uptime should set uptime to a human readable date Ohai::System AIX virtualization plugin inside an LPAR uname -L detects the LPAR number and name inside a WPAR uname -W detects the WPAR number Ohai::System plugin azure with azure cloud file should set the azure cloud attributes without azure cloud file should not behave like azure with rackspace cloud file should not behave like azure Ohai::System plugin c should get the gcc version from running gcc -v should set languages[:c][:gcc][:version] should set languages[:c][:gcc][:description] should not set the languages[:c][:gcc] tree up if gcc command fails should get the glibc x.x.x version from running /lib/libc.so.6 should set languages[:c][:glibc][:version] should set languages[:c][:glibc][:description] should not set the languages[:c][:glibc] tree up if glibc command fails should get the glibc x.x version from running /lib/libc.so.6 should get the cl version from running cl /? should set languages[:c][:cl][:version] should set languages[:c][:cl][:description] should not set the languages[:c][:cl] tree up if cl command fails should get the vs version from running devenv.com /? should set languages[:c][:vs][:version] should set languages[:c][:vs][:description] should not set the languages[:c][:vs] tree up if devenv command fails should get the xlc version from running xlc -qversion should set languages[:c][:xlc][:version] should set languages[:c][:xlc][:description] should not set the languages[:c][:xlc] tree up if xlc command fails should set the languages[:c][:xlc] tree up if xlc exit status is 249 should get the cc version from running cc -V -flags should set languages[:c][:sunpro][:version] should set languages[:c][:sunpro][:description] should not set the languages[:c][:sunpro] tree up if cc command fails should not set the languages[:c][:sunpro] tree if the corresponding cc command fails on linux should not set the languages[:c][:sunpro] tree if the corresponding cc command fails on hpux should get the cc version from running what cc should set languages[:c][:hpcc][:version] should set languages[:c][:hpcc][:description] should not set the languages[:c][:hpcc] tree up if cc command fails Ohai::System plugin chef would set [:chef_packages][:chef][:version] if chef was available (PENDING: Not yet implemented) Ohai::System plugin cloud with no cloud mashes doesn't populate the cloud data with EC2 mash populates cloud public ip populates cloud private ip populates cloud provider with rackspace populates cloud public ip populates cloud public ipv6 populates cloud private ip populates cloud private ipv6 populates first cloud public ip populates first cloud public ip populates cloud provider with linode mash populates cloud public ip populates cloud private ip populates first cloud public ip populates cloud provider with eucalyptus mash populates cloud public ip populates cloud private ip populates cloud provider with Azure mash populates cloud public ip populates cloud vm_name populates cloud public_fqdn populates cloud public_ssh_port should not populate cloud public_ssh_port when winrm is used populates cloud public_winrm_port populates cloud provider with digital_ocean mash populates cloud public hostname populates cloud local hostname populates cloud public ips populates cloud private ips populates cloud public_ipv4 populates cloud local_ipv4 populates cloud public_ipv6 populates cloud local_ipv6 populates cloud provider CloudAttrs object populates cloud mash WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:55:in `block (2 levels) in '. throws exception with a bad ipv4 address WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:60:in `block (2 levels) in '. throws exception with a bad ipv6 address WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:65:in `block (2 levels) in '. throws exception with ipv6 address passed to ipv4 WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:70:in `block (2 levels) in '. throws exception with ipv4 address passed to ipv6 Ohai::System plugin cloud with no cloud mashes doesn't populate the cloud data with EC2 mash populates cloud public ip populates cloud private ip populates cloud provider with GCE mash with a public IP populates cloud public ip populates cloud private ip populates cloud provider with no public IP does not populate cloud public ip populates cloud private ip populates cloud provider with rackspace populates cloud public ip populates cloud public ipv6 populates cloud private ip populates cloud private ipv6 populates first cloud public ip populates first cloud public ip populates cloud provider with linode mash populates cloud public ip populates cloud private ip populates first cloud public ip populates cloud provider with eucalyptus mash populates cloud public ip populates cloud private ip populates cloud provider with Azure mash populates cloud public ip doesn't populates cloud vm_name populates cloud public_hostname doesn't populate cloud public_ssh_port should not populate cloud public_ssh_port when winrm is used populates cloud public_winrm_port populates cloud provider with digital_ocean mash populates cloud public hostname populates cloud local hostname populates cloud public_ipv4_addrs populates cloud local_ipv4_addrs populates cloud public_ipv4 populates cloud local_ipv4 populates cloud public_ipv6_addrs populates cloud local_ipv6_addrs populates cloud public_ipv6 populates cloud local_ipv6 populates cloud provider Ohai::System Darwin cpu plugin should set cpu[:total] to 8 should set cpu[:real] to 4 should set cpu[:mhz] to 2300 should set cpu[:vendor_id] to GenuineIntel should set cpu[:model_name] to Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz should set cpu[:model] to 58 should set cpu[:family] to 6 should set cpu[:stepping] to 9 should set cpu[:flags] to array of flags Ohai::System Darwin hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System Darwin kernel plugin should populate kernel[:modules] from `kextstat -k -l` should not set kernel_machine to x86_64 should set kernel_machine to x86_64 should set the kernel_os to the kernel_name value Ohai::System Darwin Memory Plugin should set memory[:total] to 16384MB should set memory[:active] to 5140MB should set memory[:inactive] to 738MB should set memory[:free] to 10504MB Ohai::System Darwin Network Plugin gathering IP layer address info completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv6 addresses of the ethernet interface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries detects the ethernet counters detects the loopback counters finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route should detect network settings Ohai::System Darwin plugin platform should run sw_vers should set platform to ProductName, downcased with _ for \s should set platform_version to ProductVersion should set platform_build to BuildVersion should set platform_family to mac_os_x on os x server should set platform to mac_os_x_server should set platform_family to mac_os_x Ohai::System Darwin system_profiler plugin should return the right serial number Ohai::System plugin digital_ocean with digital_ocean hint file without private networking enabled it should behave like digital_ocean creates a digital_ocean mash has all hint attributes skips the ip_addresses hint attribute has correct values for all hint attributes creates the networks attribute pulls ip addresses from the network interfaces with private networking enabled should extract the private networking ips without digital_ocean hint file with the /etc/digitalocean file it should behave like digital_ocean_networking creates the networks attribute pulls ip addresses from the network interfaces without the /etc/digitalocean file it should behave like !digital_ocean does not create the digital_ocean mash with ec2 hint file with the /etc/digitalocean file it should behave like digital_ocean_networking creates the networks attribute pulls ip addresses from the network interfaces without the /etc/digitalocean file it should behave like !digital_ocean does not create the digital_ocean mash Ohai::System plugin dmi should run dmidecode should have [:dmi][:bios][:vendor] set should have [:dmi][:bios][:vendor] set for windows output should have [:dmi][:bios][:release_date] set should have [:dmi][:bios][:release_date] set for windows output should have [:dmi][:system][:manufacturer] set should have [:dmi][:system][:manufacturer] set for windows output should have [:dmi][:system][:product_name] set should have [:dmi][:system][:product_name] set for windows output should have [:dmi][:chassis][:lock] set should have [:dmi][:chassis][:lock] set for windows output should have [:dmi][:chassis][:asset_tag] set should have [:dmi][:chassis][:asset_tag] set for windows output should correctly ignore unwanted data Ohai::System plugin ec2 with ec2 mac and metadata address connected it should behave like ec2 should recursively fetch all the ec2 metadata should parse ec2 network/ directory as a multi-level hash should ignore "./" and "../" on ec2 metadata paths to avoid infinity loops should complete the run despite unavailable metadata with ec2_iam cloud file should parse ec2 iam/ directory and collect iam/security-credentials/ without ec2_iam cloud file should parse ec2 iam/ directory and NOT collect iam/security-credentials/ without ec2 mac and metadata address connected it should behave like !ec2 should NOT attempt to fetch the ec2 metadata with ec2 cloud file it should behave like ec2 should recursively fetch all the ec2 metadata should parse ec2 network/ directory as a multi-level hash should ignore "./" and "../" on ec2 metadata paths to avoid infinity loops should complete the run despite unavailable metadata with ec2_iam cloud file should parse ec2 iam/ directory and collect iam/security-credentials/ without ec2_iam cloud file should parse ec2 iam/ directory and NOT collect iam/security-credentials/ without cloud file it should behave like !ec2 should NOT attempt to fetch the ec2 metadata with rackspace cloud file it should behave like !ec2 should NOT attempt to fetch the ec2 metadata Ohai::System plugin elixir should get the elixir version should set languages[:elixir][:version] should not set the languages[:elixir] if elixir command fails Ohai::System plugin erlang should get the erlang version from erl +V should set languages[:erlang][:version] should set languages[:erlang][:options] should set languages[:erlang][:emulator] should not set the languages[:erlang] tree up if erlang command fails Ohai::System plugin eucalyptus with eucalyptus mac and metadata address connected it should behave like eucalyptus should recursively fetch all the eucalyptus metadata without eucalyptus mac and metadata address connected it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata with eucalyptus cloud file it should behave like eucalyptus should recursively fetch all the eucalyptus metadata without cloud file it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata with ec2 cloud file it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata when using DSL commands outside Ohai.plugin block behaves like a v7 loading failure [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'provides' should not have attribute keys [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'provides' should not have source key should write to Ohai::Log behaves like a v7 loading failure [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'depends' should not have attribute keys [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'depends' should not have source key should write to Ohai::Log behaves like a v7 loading failure [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'collect_data' should not have attribute keys [2015-08-18T20:28:33+00:00] WARN: Plugin Method Error: : unsupported operation 'collect_data' should not have source key should write to Ohai::Log when using nonexistent DSL commands in Ohai.plugin block behaves like a v7 loading failure [2015-08-18T20:28:33+00:00] WARN: Plugin Error: : wrong number of arguments (0 for 1) should not have attribute keys [2015-08-18T20:28:33+00:00] WARN: Plugin Error: : wrong number of arguments (0 for 1) should not have source key should write to Ohai::Log Ohai::System FreeBSD cpu plugin detects all CPU flags detects all CPU model_name detects all CPU mhz detects all CPU vendor_id detects all CPU stepping detects all CPU total Ohai::System FreeBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the fqdn to the value from 'hostname -f' should set the machinename to the value from 'hostname' Ohai::System FreeBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System FreeBSD plugin os should set os_version to __FreeBSD_version Ohai::System FreeBSD plugin platform should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] Ohai::System FreeBSD virtualization plugin jails detects we are in a jail detects we are hosting jails when on a virtualbox guest detects we are a guest when on a virtualbox host detects we are a host when on a QEMU guest detects we are a guest Ohai::System plugin gce with hint file and with metadata connection it should behave like gce should recursively fetch and properly parse json metadata without hint file and without metadata connection it should behave like !gce should NOT attempt to fetch the gce metadata Ohai::System plugin go should get the go version should set languages[:go][:version] should not set the languages[:go] tree up if go command fails Ohai::System plugin groovy should get the groovy version from running groovy -v should set languages[:groovy][:version] should not set the languages[:groovy] tree up if groovy command fails Ohai::System hostname plugin when sigar is not installed should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn should set the [short] hostname to everything before the first dot of the fqdn when sigar is installed should set the machinename to the value from 'hostname' should set the fqdn to the returned value from sigar should set the domain to everything after the first dot of the fqdn should set the [short] hostname to everything before the first dot of the fqdn when a system has a bare hostname without a FQDN should correctly set the [short] hostname hostname --fqdn when it returns empty string should be called twice hostname --fqdn when it works should be not be called twice Ohai::System Init package should set init_package to init when init_package is systemd should set init_package to systemd Ohai::System plugin ip_scopes without the ipaddr_extensions gem does not add ip_scope to addresses does not add a privateaddress attribute Ohai::System plugin java (Java5 Client VM) when not on Mac OS X and the client JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the server JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails when on Mac OS X with Java installed detects that it is on a darwin platform and real Java is installed and the client JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the server JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the JVM stubs are installed does not attempt to get java info Ohai::System plugin joyent without joyent should NOT create joyent with joyent should create joyent under global zone should ditect global zone should NOT create sm_id under smartmachine should retrive zone uuid should collect sm_id should collect images should collect pkgsrc Ohai::System plugin kernel should get the kernel[:name] value from 'uname -s' should set the kernel[:name] to the value from 'uname -s' should get the kernel[:release] value from 'uname -r' should set the kernel[:release] to the value from 'uname -r' should get the kernel[:version] value from 'uname -v' should set the kernel[:version] to the value from 'uname -v' should get the kernel[:machine] value from 'uname -m' should set the kernel[:machine] to the value from 'uname -m' Ohai::System plugin linode without linode kernel it should behave like !linode does not create the linode mash with linode kernel it should behave like linode creates a linode mash has all required attributes has correct values for all attributes with configured private ip address as suggested by linode detects and sets the private ip with linode cloud file it should behave like linode creates a linode mash has all required attributes has correct values for all attributes without cloud file it should behave like !linode does not create the linode mash with ec2 cloud file it should behave like !linode does not create the linode mash Ohai::System General Linux cpu plugin doesn't have a cpu 1 has a vendor_id for cpu 0 has a family for cpu 0 has a model for cpu 0 has a stepping for cpu 0 doesn't have a phyiscal_id for cpu 0 doesn't have a core_id for cpu 0 doesn't have a cores for cpu 0 has a model name for cpu 0 has a mhz for cpu 0 has a cache_size for cpu 0 has flags for cpu 0 behaves like Common cpu info cpu has cpu[:total] equals to 1 has cpu[:real] equals to 0 has a cpu 0 Ohai::System S390 linux cpu plugin has a cpu 1 has a vendor_id has a bogomips per cpu has features behaves like Common cpu info cpu has cpu[:total] equals to 2 has cpu[:real] equals to 0 has a cpu 0 behaves like S390 processor info S390 processor has a version for cpu 0 has a identification for cpu 0 has a machine for cpu 0 behaves like S390 processor info S390 processor has a version for cpu 1 has a identification for cpu 1 has a machine for cpu 1 Ohai::System Linux filesystem plugin when gathering filesystem usage data from df should run df -P and df -iP should set kb_size to value from df -P should set kb_used to value from df -P should set kb_available to value from df -P should set percent_used to value from df -P should set mount to value from df -P should set total_inodes to value from df -iP should set inodes_used to value from df -iP should set inodes_available to value from df -iP when gathering mounted filesystem data from mount should run mount should set mount to value from mount should set fs_type to value from mount should set mount_options to an array of values from mount when gathering filesystem type data from blkid should run blkid -s TYPE should set kb_size to value from blkid -s TYPE when gathering filesystem type data from lsblk should run lsblk -r -n -o NAME,FSTYPE should set kb_size to value from lsblk -r -n -o NAME,FSTYPE when gathering filesystem uuid data from blkid should run blkid -s UUID should set kb_size to value from blkid -s UUID when gathering filesystem uuid data from lsblk should run lsblk -r -n -o NAME,UUID should set kb_size to value from lsblk -r -n -o NAME,UUID when gathering filesystem label data from blkid should run blkid -s LABEL should set kb_size to value from blkid -s LABEL when gathering filesystem label data from lsblk should run blkid -s LABEL should set kb_size to value from blkid -s LABEL when gathering data from /proc/mounts should set mount to value from /proc/mounts should set fs_type to value from /proc/mounts should set mount_options to an array of values from /proc/mounts Ohai::System Linux hostname plugin should set the hostname to the value from 'hostname -s' should set the fqdn to the value from 'hostname --fqdn' should set the machinename to the value from 'hostname' when domain name is unset should not raise an error should not set fqdn Ohai::System Linux kernel plugin should get the "kernel"[:os] value from 'uname -o' should set the "kernel"[:os] to the value from 'uname -o' Ohai::System Linux lsb plugin should not set any lsb values if /etc/lsb-release or /usr/bin/lsb_release do not exist on systems with /etc/lsb-release should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] on systems with /usr/bin/lsb_release on Centos 5.4 correctly should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] on Fedora 14 correctly should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] Ohai::System Linux Mdadm Plugin gathering Mdadm information via /proc/mdstat and mdadm should not raise an error should detect raid level should detect raid state should detect raid size should detect raid metadata level should detect device count of "raid" should detect device count of "total" should detect device count of "active" should detect device count of "working" should detect device count of "failed" should detect device count of "spare" Ohai::System Linux Network Plugin #iproute2_binary_available? accepts /sbin/ip accepts /usr/bin/ip accepts /bin/ip gathering IP layer address info via ifconfig completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv4 addresses of an ethernet subinterface detects the ipv6 addresses of the ethernet interface detects the ipv6 addresses of an ethernet subinterface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the number of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries gathering interface counters via ifconfig detects the ethernet counters detects the loopback counters setting the node's default IP address attribute with ifconfig without a subinterface finds the default interface by asking which iface has the default route finds the default gateway by asking which iface has the default route with a link level default route finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route with a subinterface finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route gathering IP layer address info via iproute2 completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv4 addresses of an ethernet subinterface detects the ipv6 addresses of the ethernet interface detects the ipv6 addresses of an ethernet subinterface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the number of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries gathering interface counters via iproute2 detects the ethernet counters detects the loopback counters setting the node's default IP address attribute with iproute2 without a subinterface finds the default interface by asking which iface has the default route finds the default gateway by asking which iface has the default route with a link level default route finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route with a subinterface finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route for newer network features using iproute2 only completes the run finds the default inet6 interface if there's a inet6 default route finds the default inet6 gateway if there's a inet6 default route finds inet6 neighbours detects the ipv4 addresses of an ethernet interface with a crazy name generates a fake interface for ip aliases for backward compatibility adds the vlan information of an interface adds the state of an interface detects interfaces only visible via ip link when IPv6 is disabled doesn't set ip6address when dealing with routes adds routes when there isn't a source field in route entries doesn't set ipaddress doesn't set macaddress doesn't set ip6address when there's a source field in the default route entry completes the run sets ipaddress sets ip6address when there're several default routes completes the run sets default ipv4 interface and gateway sets default ipv6 interface and gateway when there're a mixed setup of routes that could be used to set ipaddress completes the run sets ipaddress sets ip6address when there's a source field in a local route entry completes the run sets ipaddress sets ip6address when about to set macaddress sets macaddress when then interface has the NOARP flag completes the run doesn't set macaddress with a link level default route completes the run doesn't set ipaddress when not having a global scope ipv6 address completes the run doesn't set ip6address with no default route completes the run doesn't set ipaddress doesn't set ip6address with irrelevant routes (container setups) completes the run doesn't add bogus routes doesn't set ipaddress doesn't set ip6address when encountering a surprise interface logs a message and skips previously unseen interfaces in 'ip route show' when running with ip version ss131122 adds the vlan information of an interface Ohai::System Linux plugin platform on lsb compliant distributions should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] should set platform to ubuntu and platform_family to debian [:lsb][:id] contains Ubuntu should set platform to linuxmint and platform_family to debian [:lsb][:id] contains LinuxMint should set platform to debian and platform_family to debian [:lsb][:id] contains Debian should set platform to redhat and platform_family to rhel when [:lsb][:id] contains Redhat should set platform to amazon and platform_family to rhel when [:lsb][:id] contains Amazon should set platform to scientific when [:lsb][:id] contains ScientificSL should set platform to ibm_powerkvm and platform_family to rhel when [:lsb][:id] contains IBM_PowerKVM on debian should read the version from /etc/debian_version should correctly strip any newlines should detect Ubuntu as itself rather than debian should detect Raspbian as itself with debian as the family on slackware should set platform and platform_family to slackware on arch should set platform to arch and platform_family to arch should set platform_version to kernel release on gentoo should set platform and platform_family to gentoo on exherbo should set platform and platform_family to exherbo should set platform_version to kernel release on redhat breeds with lsb_release results should set the platform to redhat and platform_family to rhel even if the LSB name is something absurd but redhat like should set the platform to centos and platform_family to rhel should set the platform_family to rhel if the LSB name is oracle-ish should set the platform_family to rhel if the LSB name is amazon-ish should set the platform_family to fedora if the LSB name is fedora-ish should set the platform_family to redhat if the LSB name is scientific-ish should set the platform_family to redhat if the LSB name is ibm-ish without lsb_release results should read the platform as centos and version as 5.3 may be that someone munged Red Hat to be RedHat should read the platform as redhat and version as 5.3 should read the platform as fedora and version as 13 (rawhide) should read the platform as fedora and version as 10 should read the platform as fedora and version as 13 using to_i on pcs linux with lsb_result should read the platform as parallels and version as 6.0.5 without lsb_results should read the platform as parallels and version as 6.0.5 on oracle enterprise linux with lsb_results should read the platform as oracle and version as 5.7 should read the platform as oracle and version as 6.1 without lsb_results should read the platform as oracle and version as 5 should read the platform as oracle and version as 5.1 should read the platform as oracle and version as 5.7 should read the platform as oracle and version as 6.0 should read the platform as oracle and version as 6.1 on suse with lsb_release results should read the platform as opensuse on openSUSE without lsb_release results should set platform and platform_family to suse and bogus verion to 10.0 should read the version as 10.1 for bogus SLES 10 should read the version as 11.2 [OHAI-272] should read the version as 11.3 [OHAI-272] should read the version as 9.1 [OHAI-272] should read the version as 11.4 should read the platform as opensuse on openSUSE Ohai::System Linux plugin uptime should set uptime_seconds to uptime should set uptime to a human readable date should set idletime_seconds to uptime should set idletime to a human readable date Ohai::System Linux virtualization platform should not set virtualization if no tests match when we are checking for xen should set xen guest if /proc/xen exists but /proc/xen/capabilities does not should set xen host if /proc/xen/capabilities contains control_d should set xen guest if /proc/xen/capabilities exists but is empty should not set virtualization if xen isn't there when we are checking for kvm should set kvm host if /proc/modules contains kvm should set kvm guest if /proc/cpuinfo contains QEMU Virtual CPU should set kvm guest if /proc/cpuinfo contains Common KVM processor should set kvm guest if /proc/cpuinfo contains Common 32-bit KVM processor should not set virtualization if kvm isn't there when we are checking for VirtualBox should set vbox host if /proc/modules contains vboxdrv should set vbox gues if /proc/modules contains vboxguest should not set virtualization if vbox isn't there when we are parsing dmidecode should set virtualpc guest if dmidecode detects Microsoft Virtual Machine should set vmware guest if dmidecode detects VMware Virtual Platform should set vbox guest if dmidecode detects Oracle Corporation should set openstack guest if dmidecode detects OpenStack should run dmidecode and not set virtualization if nothing is detected when we are checking for Linux-VServer should set Linux-VServer host if /proc/self/status contains s_context: 0 should set Linux-VServer host if /proc/self/status contains VxID: 0 should set Linux-VServer host if /proc/self/status contains multiple space VxID: 0 should set Linux-VServer host if /proc/self/status contains tabbed VxID: 0 should set Linux-VServer guest if /proc/self/status contains s_context > 0 should set Linux-VServer guest if /proc/self/status contains VxID > 0 should not set virtualization if Linux-VServer isn't there when we are checking for openvz should set openvz host if /proc/bc/0 exists should set openvz guest if /proc/bc/0 doesn't exist and /proc/vz exists should not set virtualization if openvz isn't there when we are checking for lxc should set lxc guest if /proc/self/cgroup exist and there are /lxc/ mounts should set lxc guest if /proc/self/cgroup exist and there are /lxc/ mounts should set not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc. should not set virtualization if /proc/self/cgroup isn't there /proc/self/cgroup only has / mounts sets lxc host if lxc-version exists does not set the old virtualization attributes if they are already set does not set lxc host if lxc-version does not exist when we are checking for docker should set docker guest if /proc/self/cgroup exist and there are /docker/ mounts should set docker guest if /proc/self/cgroup exist and there are /docker/ mounts should set not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc. does not set the old virtualization attributes if they are already set does not set docker host if docker does not exist should not set virtualization if /proc/self/cgroup isn't there should set virtualization if /.dockerenv exists should set virtualization if /.dockerinit exists should not set virtualization if /.dockerenv or /.dockerinit doesn't exists Ohai::System plugin lua should get the lua version from running lua -v should set languages[:lua][:version] should not set the languages[:lua] tree up if lua command fails Ohai::System plugin mono should get the mono version from running mono -V should set languages[:mono][:version] should not set the languages[:mono] tree up if mono command fails Ohai::System NetBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System NetBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System NetBSD plugin platform should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] Ohai::System Network Plugin with linux when the linux::network plugin hasn't set any of {ip,ip6,mac}address attributes simple setup populates ipaddress, macaddress and ip6address detects {ip,ip6,mac}address default ipv4 and ipv6 gateway on different interfaces both interfaces have an ARP populates ipaddress, macaddress and ip6address detects {ip,ip6}address set macaddress from the ipv4 setup informs about this setup ipv4 interface has no ARP populates ipaddress, macaddress and ip6address detects {ip,ip6}address doesn't set macaddress, ipv4 setup is valid and has precedence over ipv6 informs about this setup conflicting results from the linux::network plugin default interface doesn't match the default_gateway populates ipaddress, macaddress and ip6address picks {ip,ip6,mac}address warns about this conflict there's a default gateway, none of the configured ip/mask theorically allows to reach it picks {ip,ip6,mac}address no ip address for the given default interface/gateway doesnt fail doesn't detect {ip,ip6,mac}address warns about this conflict no ip at all doesnt fail doesn't detect {ip,ip6,mac}address should warn about it several ipaddresses matching the default route bigger prefix not set on the default interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly bigger prefix set on the default interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly smallest ip not set on the default_interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly smallest ip set on the default_interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly no default route first interface is not the best choice populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the first interface can choose from addresses with different scopes populates ipaddress, macaddress and ip6address prefers global scope addressses to set {ip,mac,ip6}address link level default route simple setup populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface fe80::1 as a default gateway populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface can choose from addresses with different scopes populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface point to point address populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface ipv6 only node doesnt fail can't detect ipaddress warns about not being able to set {ip,mac}address (ipv4) sets {ip6,mac}address [2015-08-18T20:28:35+00:00] WARN: unable to detect ipaddress [2015-08-18T20:28:35+00:00] WARN: unable to detect macaddress informs about macaddress being set using the ipv6 setup the freebsd::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address the linux::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address the windows::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address Ohai::System plugin nodejs should get the nodejs version from running node -v should set languages[:nodejs][:version] should not set the languages[:nodejs] tree up if node command fails Ohai::System plugin ohai should set [:chef_packages][:ohai][:version] to the current version Ohai::System plugin ohai_time should get the current time should turn the time into a floating point number should set ohai_time to the current time Ohai::System OpenBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System OpenBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System OpenBSD plugin platform should set platform_version to lsb[:release] OpenStack Plugin when there is no relevant hint does not set any openstack data when there is an `openstack` hint and the metadata service is not available does not set any openstack data and the metadata service is available reads the reservation_id from the metadata service reads the public_keys_0_openssh_key from the metadata service reads the security_groups from the metadata service reads the public_ipv4 from the metadata service reads the ami_manifest_path from the metadata service reads the instance_type from the metadata service reads the instance_id from the metadata service reads the local_ipv4 from the metadata service reads the ari_id from the metadata service reads the local_hostname from the metadata service reads the placement_availability_zone from the metadata service reads the ami_launch_index from the metadata service reads the public_hostname from the metadata service reads the hostname from the metadata service reads the ami_id from the metadata service reads the instance_action from the metadata service reads the aki_id from the metadata service reads the block_device_mapping_ami from the metadata service reads the block_device_mapping_root from the metadata service reads the provider from the metadata service Retreive openStack specific metadata reads the availability_zone from the openstack metadata service reads the hostname from the openstack metadata service reads the launch_index from the openstack metadata service reads the meta from the openstack metadata service reads the name from the openstack metadata service reads the public_keys from the openstack metadata service reads the uuid from the openstack metadata service Ohai::System plugin os should set os_version to kernel_release on linux should set the os to linux on darwin should set the os to darwin on solaris sets the os to solaris2 on something we have never seen before, but ruby has sets the os to the ruby 'host_os' Ohai::System plugin etc should include a list of all users should ignore duplicate users should set the current user should set the available groups sets the encoding of strings to the default external encoding Ohai::System plugin perl should run perl -V:version -V:archname should set languages[:perl][:version] should set languages[:perl][:archname] should set languages[:perl] if perl command succeeds should not set languages[:perl] if perl command fails Ohai::System plugin php should get the php version from running php -V should set languages[:php][:version] should not set the languages[:php] tree up if php command fails should parse builddate even if it's suhosin patched should not set zend_optcache_version if not compiled with opcache should parse zend_optcache_version if compiled with opcache Ohai::System plugin platform should set the platform and platform family to the os if it was not set earlier should not set the platform to the os if it was set earlier should set the platform_family to the platform if platform was set earlier but not platform_family should not set the platform_family if the platform_family was set earlier. should set the platform_version to the os_version if it was not set earlier should not set the platform to the os if it was set earlier Ohai::System plugin powershell should set languages[:powershell][:version] for v4 should not set the languages[:powershell] tree up if powershell command fails Ohai::System plugin python should get the python version from printing sys.version and sys.platform should set languages[:python][:version] when the python command fails should not set the languages[:python] tree up Ohai::System plugin rackspace with rackspace cloud file it should behave like rackspace should create rackspace should have all required attributes should resolve hostname if reverse dns is set should return ip address when reverse dns returns exception: Resolv::ResolvError should return ip address when reverse dns returns exception: Resolv::ResolvTimeout should have correct values for all attributes should capture region information with no public interfaces (empty eth0) should have all required attributes should have correct values for all attributes without cloud file it should behave like !rackspace should NOT create rackspace with ec2 cloud file it should behave like !rackspace should NOT create rackspace xenstore provider returns rackspace it should behave like rackspace should create rackspace should have all required attributes should resolve hostname if reverse dns is set should return ip address when reverse dns returns exception: Resolv::ResolvError should return ip address when reverse dns returns exception: Resolv::ResolvTimeout should have correct values for all attributes should capture region information xenstore provider does not return rackspace it should behave like !rackspace should NOT create rackspace does not have private networks should not have private_networks object has private networks should private_networks object should have correct values for all attributes Ohai::System root_group unix platform with wheel group should have a root_group of wheel with root group should have a root_group of root platform hpux with sys group should have a root_group of sys platform aix with system group should have a root_group of system windows platform should return the group administrators Ohai::System plugin rust should get the rust version should set languages[:rust][:version] should not set the languages[:rust] if rust command fails Ohai::System Sigar network route plugin should set the routes should set the route details Ohai::System Solaris2.X cpu plugin should get the total virtual processor count should get the total processor count per-cpu information should include vendor_id for processors should include family for processors should include model for processors should include stepping for processors should include model name for processors should include mhz name for processors Ohai::System Solaris2.X DMI plugin should run smbios should have [:dmi][:bios][:vendor] set should have [:dmi][:bios][:release_date] set should have [:dmi][:system][:manufacturer] set should have [:dmi][:system][:product] set should have [:dmi][:chassis][:lock_present] set should have [:dmi][:chassis][:asset_tag] set should ignore unwanted types Ohai::System Solaris2.X hostname plugin should set the hostname to the value from 'hostname' should get the fqdn value from #resolve_fqdn Ohai::System Solaris2.X kernel plugin should get the "kernel"[:os] value from 'uname -s' should set the "kernel"[:os] to the value from 'uname -s' gives excruciating detail about kernel modules Ohai::System Solaris2.X memory plugin should get the total memory Ohai::System Solaris2.X network plugin gathering IP layer address info completes the run detects the interfaces detects the ip addresses of the interfaces detects the encapsulation type of the interfaces detects the L3PROTECT network flag setting the node's default IP address attribute finds the default interface by asking which iface has the default route Ohai::System Solaris plugin platform on SmartOS should run uname and set platform and build should set the platform should set the platform_version on Solaris 11 should run uname and set platform and build should set the platform should set the platform_version Ohai::System Solaris virtualization platform should not set virtualization if no tests match when we are checking for kvm should run psrinfo -pv Should set kvm guest if psrinfo -pv contains QEMU Virtual CPU should not set virtualization if kvm isn't there when we are parsing smbios should run smbios should set virtualpc guest if smbios detects Microsoft Virtual Machine should set vmware guest if smbios detects VMware Virtual Platform should run smbios and not set virtualization if nothing is detected Ohai::System Solaris 2.x zpool plugin On Solaris2 Common Should have entries for both zpools Should have the correct pool size Should have the correct pool allocated size Should have the correct pool free size Should have the correct capacity_used Should have the correct dedup_factor Should have the correct health Should have the correct number of devices On OmniOS_151006 Won't have a version number On Solaris_11.1 Should have a version number Ohai::System ssh_host_key plugin when an sshd_config exists behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly when an sshd_config exists with commented entries behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly when an sshd_config can not be found behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly Ohai::ProvidesMap when looking up providing plugins for a single attribute when the attribute does not exist should raise Ohai::Exceptions::AttributeNotFound error when the attribute does not have a provider should raise Ohai::Exceptions::ProviderNotFound error when only one plugin provides the attribute should return the provider when multiple plugins provide the attribute should return all providers when looking up providing plugins for multiple attributes when a different plugin provides each attribute should return each provider when one plugin provides both requested attributes should return unique providers when looking up providers for multi-level attributes when the full attribute exists in the map should collect the provider when setting multi-level attributes when the attribute contains // should raise an Ohai::Exceptions::AttributeSyntaxError when the attribute has a trailing slash should raise an Ohai::Exceptions::AttributeSyntaxError when looking for providers of attributes specified in CLI should find providers for subattributes if any exists when the attribute doesn't have a provider should find providers for the first parent attribute when the attribute or any subattributes doesn't have a provider when looking for the closest providers and the full attribute is provided should return the provider of the full attribute and the full attribute is not provided should not raise error if a parent attribute is provided should return the providers of the closest parent attribute should raise error if the least-specific parent is not an attribute should raise error if no parent attribute has a provider when listing all plugins should find all the plugins providing attributes with an attribute filter finds plugins with a single level of attribute finds plugins with an exact match for multiple levels of attribute finds plugins that provide subattributes of the requested path Ohai::Runner run_plugin when running an invalid plugin should raise error when running a plugin version 7 should call run_v7_plugin if the plugin has run before should not run the plugin version 6 should call run_v6_plugin if the plugin has not run before if safe_run is not set safe_run should be called if safe_run is set run should be called if the plugin has run before should not run invalid version should raise error when running a plugin with no dependencies, Ohai::Runner should run the plugin should add plugin data to Ohai::System.data when running a plugin with one dependency when the dependency does not exist should raise Ohai::Excpetions::AttributeNotFound WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/runner_spec.rb:144:in `block (4 levels) in '. should not run the plugin when the dependency has a single provider should run the plugins when the dependency has multiple providers should run the plugins when running a plugin with many dependencies should run the plugins when a cycle is detected when there are no edges in the cycle (A->A) ignores the cycle when there is one edge in the cycle (A->B and B->A) should raise Ohai::Exceptions::DependencyCycle when A depends on B and C, and B depends on C should not detect a cycle when B is the first provider returned should not detect a cycle when C is the first provider returned Ohai::Runner fetch_plugins should collect the provider should return unique providers when the attribute is not provided by any plugin and some parent attribute has providers should return the providers for the parent and no parent attribute has providers should raise Ohai::Exceptions::AttributeNotFound exception Ohai::Runner#get_cycle should return the sources for the plugins in the cycle, when given an exact cycle should return the sources for only the plugins in the cycle, when there are plugins before the cycle begins Ohai::System #initialize should return an Ohai::System object should set @attributes to a ProvidesMap should set @v6_dependency_solver to a Hash When the plugins directory contains v6 and v7 plugins [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1xh996t/lake.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html load_plugins() should load all the plugins When the plugins directory contains directories inside [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-dgpxd2/repo1/lake.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-dgpxd2/repo2/mountain.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html load_plugins() should load all the plugins when running plugins When the plugins directory contains v6 plugins only [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1k1ph0x/zoo.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1k1ph0x/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect data from all the plugins when using :disabled_plugins [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-a242v/zoo.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-a242v/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html shouldn't run disabled version 6 plugins when running in whitelist mode runs v6 plugins runs plugins that provide the requested attributes runs dependencies of plugins that provide requested attributes does not run plugins that are irrelevant to the requested attributes When the plugins directory contains a v7 plugins with :default and platform specific blocks should collect platform specific When the plugins directory contains v7 plugins only should collect data from all the plugins should write an error to Ohai::Log when using :disabled_plugins shouldn't run disabled plugins When the plugins directory contains v6 & v7 plugins in different directories when using :disabled_plugins [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-hqnn5x/my_plugins/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-hqnn5x/my_plugins/home.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html shouldn't run disabled plugins When the plugins directory contains v6 plugins that depend on v7 plugins [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1pb1ea/messages.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1pb1ea/v6message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect all data require_plugin() When the plugins directory contains v6 and v7 plugin with the same name [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1sv8jea/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html version 6 should run When the plugins directory a v6 plugin that requires a v7 plugin with dependencies [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1it7jny/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect all the data properly When the plugins directory a v6 plugin that requires non-existing v7 plugin [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-1lqxkey/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should raise DependencyNotFound when Chef OHAI resource executes :reload action When the plugins directory contains a v6 plugin [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-xx8w7i/a_v6plugin.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:36+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18086-xx8w7i/a_v6plugin.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html reloads only the v6 plugin when given a specific plugin to load When the plugins directory contains a random plugin should rerun the plugin providing the desired attributes when refreshing plugins When the plugins directory contains v7 plugins should rerun the plugin providing the desired attributes should not re-run dependencies of the plugin providing the desired attributes should not re-run plugins unrelated to the plugin providing the desired attributes when running ohai for specific attributes When the plugins directory contains v7 plugins should run all the plugins when a top level attribute is specified should run the first parent when a non-existent child is specified should be able to run multiple plugins Ohai::Util::FileHelper which returns the path to an executable that is in the path returns false if the executable is not in the path Ohai::Util::IpHelper private_address? with an IPv4 address that is private identifies the address as private that is public identifies the address as public with an IPv6 address that is an RFC 4193 unique local address identifies the address as a unique local address that is a non RFC 4193 unique local address does not identify the address as a unique local address unique_local_address? with an IPv4 address that is private identifies the address as private that is public identifies the address as public with an IPv6 address that is an RFC 4193 unique local address identifies the address as a unique local address that is a non RFC 4193 unique local address does not identify the address as a unique local address public_address? should call #private_address? should return the inverse of #private_address? loopback? with an IPv4 address that is a loopback address should identify the address as a loopback address that is not a loopback address should not identify the address as a loopback address with an IPv6 address that is a loopback address should identify the address as a loopback address that is not a loopback address should not identify the address as a loopback address Pending: (Failures listed here are expected and do not affect your suite's status) 1) Ohai::System plugin chef would set [:chef_packages][:chef][:version] if chef was available # Not yet implemented # ./spec/unit/plugins/chef_spec.rb:43 Finished in 4.28 seconds (files took 0.48542 seconds to load) 1141 examples, 0 failures, 1 pending /usr/bin/ruby2.2 /usr/bin/gem2deb-test-runner ┌──────────────────────────────────────────────────────────────────────────────┐ │ Checking Rubygems dependency resolution on ruby2.2 │ └──────────────────────────────────────────────────────────────────────────────┘ GEM_PATH=/tmp/.gem/ruby/2.2.0:/var/lib/gems/2.2.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.2.0:/usr/share/rubygems-integration/2.2.0:/usr/share/rubygems-integration/2.2:/usr/share/rubygems-integration/all:debian/ohai/usr/share/rubygems-integration/all ruby2.2 -e gem\ \"ohai\" ┌──────────────────────────────────────────────────────────────────────────────┐ │ Run tests for ruby2.2 from debian/ruby-tests.rake │ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=/ohai-8.4.0/debian/ohai/usr/lib/ruby/vendor_ruby:. rake2.2 -f debian/ruby-tests.rake /usr/bin/ruby2.2 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation Run options: include {:focus=>true} exclude {:requires_root=>true, :ruby_19_only=>true, :ruby_18_only=>true, :windows_only=>true} All examples were filtered out; ignoring {:focus=>true} Ohai should have a version constant defined Ohai::DSL::Plugin::VersionVII should not modify the plugin name when the plugin is named correctly when the plugin is named incorrectly because the plugin name doesn't start with a capital letter should raise an Ohai::Exceptions::InvalidPluginName exception because the plugin name contains an underscore should raise an Ohai::Exceptions::InvalidPluginName exception because the plugin name isn't a symbol should raise an Ohai::Exceptions::InvalidPluginName exception #version should save the plugin version as :version7 #provides should collect a single attribute should collect a list of attributes should collect from multiple provides statements should collect attributes across multiple plugin files should collect unique attributes #depends should collect a single dependency should collect a list of dependencies should collect from multiple depends statements should collect dependencies across multiple plugin files should collect unique attributes #collect_data should save as :default if no platform is given should save a single given platform should save a list of platforms should save multiple collect_data blocks should save platforms across multiple plugins should fail a platform has already been defined in the same plugin should fail if a platform has already been defined in another plugin file #provides (deprecated) should log a warning #require_plugin (deprecated) should log a warning behaves like Ohai::DSL::Plugin #initialize should set has_run? to false should set the correct plugin version #run when plugin is enabled should run the plugin should set has_run? to true if the plugin is disabled should not run the plugin should log a message to debug should set has_run? to true when accessing data via method_missing should take a missing method and store the method name as a key, with its arguments as values should return the current value of the method name should allow you to get the value of a key by calling method_missing with no arguments when checking attribute existence should return true if an attribute exists with the given name should return false if an attribute does not exist with the given name when setting attributes should let you set an attribute when getting attributes should let you get an attribute Ohai::DSL::Plugin::VersionVI #version should save the plugin version as :version6 #provides should log a debug message when provides is used should not update the provides map for version 6 plugins. behaves like Ohai::DSL::Plugin #initialize should set has_run? to false should set the correct plugin version #run when plugin is enabled should run the plugin should set has_run? to true if the plugin is disabled should not run the plugin should log a message to debug should set has_run? to true when accessing data via method_missing should take a missing method and store the method name as a key, with its arguments as values should return the current value of the method name should allow you to get the value of a key by calling method_missing with no arguments when checking attribute existence should return true if an attribute exists with the given name should return false if an attribute does not exist with the given name when setting attributes should let you set an attribute when getting attributes should let you get an attribute Ohai::Hints When the plugins directory doesn't contain any hints hint? should return nil When the plugins directory contains empty and full hints hint? should return the data for full hints hint? should return empty hash for empty hints Ohai::Loader #initialize should return an Ohai::Loader object When the plugins directory contains both V6 & V7 plugins load_plugin() method should log a warning if a plugin doesn't exist when loading a v7 plugin should save the plugin according to its attribute should save a single plugin source should save all plugin sources when loading a v6 plugin should not add this plugin's provided attributes to the provides map should save the plugin's source When the plugins directory contains invalid plugins load_plugin() method when the plugin uses Ohai.plugin instead of Ohai.plugins should log an unsupported operation warning [2015-08-18T20:28:36+00:00] WARN: Plugin Method Error: : unsupported operation 'plugins' should not raise an error when the plugin tries to call an unexisting method shoud log an unsupported operation warning [2015-08-18T20:28:36+00:00] WARN: Plugin Method Error: : unsupported operation 'really_wants' should not raise an error when the plugin defines collect_data on the same platform more than once shoud log an illegal plugin definition warning [2015-08-18T20:28:36+00:00] WARN: Plugin Definition Error: : collect_data already defined on platform darwin should not raise an error when an unexpected error is encountered should log a warning [2015-08-18T20:28:36+00:00] WARN: Plugin Error: : You aren't expecting this. should not raise an error when the plugin name symbol has bad syntax should log a syntax error warning [2015-08-18T20:28:36+00:00] WARN: Plugin Syntax Error: : /tmp/ohai-plugins20150818-18409-se95ql/bad_symbol.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END Ohai.plugin(:1nval!d) do ^ should not raise an error when the plugin forgets an 'end' should log a syntax error warning [2015-08-18T20:28:36+00:00] WARN: Plugin Syntax Error: : /tmp/ohai-plugins20150818-18409-1ouxzgy/no_end.rb:4: syntax error, unexpected end-of-input, expecting keyword_end should not raise an error when the plugin has an invalid name should log an invalid plugin name warning [2015-08-18T20:28:36+00:00] WARN: Plugin Name Error: : you_give_plugins_a_bad_name is not a valid plugin name. A valid plugin name is a symbol which begins with a capital letter and contains no underscores should not raise an error Ohai::Mixin::Command popen4 should default all commands to be run in the POSIX standard C locale should respect locale when specified explicitly should force encode the string to UTF-8 reaps zombie processes after exec fails [OHAI-455] when external commands return UTF-8 strings and we are running under LANG=C encoding should force encode the string to UTF-8 Ohai::Mixin::Ec2Metadata #best_api_version with a sorted list of metadata versions returns the most recent version with an unsorted list of metadata versions returns the most recent version (using string sort) when no supported versions are found WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/mixin/ec2_metadata_spec.rb:52:in `block (4 levels) in '. raises an error when the response code is 404 returns 'latest' as the version when the response code is unexpected WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/mixin/ec2_metadata_spec.rb:69:in `block (4 levels) in '. raises an error #metadata_get when the response code is unexpected raises an error Ohai::System AIX cpu plugin sets the vendor id to IBM sets the available attribute sets the total number of devices detects the model detects the mhz detects the status of the device detects the location of the device lsattr -El device_name detects all the attributes of the device Ohai::System AIX filesystem plugin df -P returns the filesystem block size returns the filesystem used space in kb returns the filesystem available space in kb returns the filesystem capacity in percentage returns the filesystem mounted location mount returns the filesystem mount location returns the filesystem type returns the filesystem mount options having node values returns the filesystem mount location returns the filesystem type returns the filesystem mount options Ohai::System Aix hostname plugin should set the machinename Ohai::System AIX kernel plugin uname -s detects the name uname -r detects the release uname -v detects the version uname -p detects the machine detects the modules Ohai::System AIX network plugin run detects network information detects the interfaces detects the ip addresses of the interfaces netstat -rn |grep default returns the default gateway of the system's network returns the default interface of the system's network lsdev -Cc if detects the state of the interfaces in the system detects the description of the interfaces in the system ifconfig interface detects the CHAIN network flag detects the metric network flag inet entries detects the family detects the netmask detects the broadcast detects all key-values with no netmask in the output detects the default prefixlen detects the default netmask inet6 entries detects the prefixlen detects the family entstat -d interface detects the family netstat -nrf family inet detects the route destinations detects the route family detects the route gateway detects the route flags inet6 detects the route destinations detects the route family detects the route gateway detects the route flags arp -an supresses the hostname entries detects the remote ip entry detects the remote mac entry hex_to_dec_netmask method converts a netmask from hexadecimal form to decimal form Ohai::System Aix plugin platform should set platform to aix should set the platform_version should set platform_family Ohai::System Aix plugin uptime should set uptime_seconds to uptime should set uptime to a human readable date Ohai::System AIX virtualization plugin inside an LPAR uname -L detects the LPAR number and name inside a WPAR uname -W detects the WPAR number Ohai::System plugin azure with azure cloud file should set the azure cloud attributes without azure cloud file should not behave like azure with rackspace cloud file should not behave like azure Ohai::System plugin c should get the gcc version from running gcc -v should set languages[:c][:gcc][:version] should set languages[:c][:gcc][:description] should not set the languages[:c][:gcc] tree up if gcc command fails should get the glibc x.x.x version from running /lib/libc.so.6 should set languages[:c][:glibc][:version] should set languages[:c][:glibc][:description] should not set the languages[:c][:glibc] tree up if glibc command fails should get the glibc x.x version from running /lib/libc.so.6 should get the cl version from running cl /? should set languages[:c][:cl][:version] should set languages[:c][:cl][:description] should not set the languages[:c][:cl] tree up if cl command fails should get the vs version from running devenv.com /? should set languages[:c][:vs][:version] should set languages[:c][:vs][:description] should not set the languages[:c][:vs] tree up if devenv command fails should get the xlc version from running xlc -qversion should set languages[:c][:xlc][:version] should set languages[:c][:xlc][:description] should not set the languages[:c][:xlc] tree up if xlc command fails should set the languages[:c][:xlc] tree up if xlc exit status is 249 should get the cc version from running cc -V -flags should set languages[:c][:sunpro][:version] should set languages[:c][:sunpro][:description] should not set the languages[:c][:sunpro] tree up if cc command fails should not set the languages[:c][:sunpro] tree if the corresponding cc command fails on linux should not set the languages[:c][:sunpro] tree if the corresponding cc command fails on hpux should get the cc version from running what cc should set languages[:c][:hpcc][:version] should set languages[:c][:hpcc][:description] should not set the languages[:c][:hpcc] tree up if cc command fails Ohai::System plugin chef would set [:chef_packages][:chef][:version] if chef was available (PENDING: Not yet implemented) Ohai::System plugin cloud with no cloud mashes doesn't populate the cloud data with EC2 mash populates cloud public ip populates cloud private ip populates cloud provider with rackspace populates cloud public ip populates cloud public ipv6 populates cloud private ip populates cloud private ipv6 populates first cloud public ip populates first cloud public ip populates cloud provider with linode mash populates cloud public ip populates cloud private ip populates first cloud public ip populates cloud provider with eucalyptus mash populates cloud public ip populates cloud private ip populates cloud provider with Azure mash populates cloud public ip populates cloud vm_name populates cloud public_fqdn populates cloud public_ssh_port should not populate cloud public_ssh_port when winrm is used populates cloud public_winrm_port populates cloud provider with digital_ocean mash populates cloud public hostname populates cloud local hostname populates cloud public ips populates cloud private ips populates cloud public_ipv4 populates cloud local_ipv4 populates cloud public_ipv6 populates cloud local_ipv6 populates cloud provider CloudAttrs object populates cloud mash WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:55:in `block (2 levels) in '. throws exception with a bad ipv4 address WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:60:in `block (2 levels) in '. throws exception with a bad ipv6 address WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:65:in `block (2 levels) in '. throws exception with ipv6 address passed to ipv4 WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/plugins/cloud_v2_spec.rb:70:in `block (2 levels) in '. throws exception with ipv4 address passed to ipv6 Ohai::System plugin cloud with no cloud mashes doesn't populate the cloud data with EC2 mash populates cloud public ip populates cloud private ip populates cloud provider with GCE mash with a public IP populates cloud public ip populates cloud private ip populates cloud provider with no public IP does not populate cloud public ip populates cloud private ip populates cloud provider with rackspace populates cloud public ip populates cloud public ipv6 populates cloud private ip populates cloud private ipv6 populates first cloud public ip populates first cloud public ip populates cloud provider with linode mash populates cloud public ip populates cloud private ip populates first cloud public ip populates cloud provider with eucalyptus mash populates cloud public ip populates cloud private ip populates cloud provider with Azure mash populates cloud public ip doesn't populates cloud vm_name populates cloud public_hostname doesn't populate cloud public_ssh_port should not populate cloud public_ssh_port when winrm is used populates cloud public_winrm_port populates cloud provider with digital_ocean mash populates cloud public hostname populates cloud local hostname populates cloud public_ipv4_addrs populates cloud local_ipv4_addrs populates cloud public_ipv4 populates cloud local_ipv4 populates cloud public_ipv6_addrs populates cloud local_ipv6_addrs populates cloud public_ipv6 populates cloud local_ipv6 populates cloud provider Ohai::System Darwin cpu plugin should set cpu[:total] to 8 should set cpu[:real] to 4 should set cpu[:mhz] to 2300 should set cpu[:vendor_id] to GenuineIntel should set cpu[:model_name] to Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz should set cpu[:model] to 58 should set cpu[:family] to 6 should set cpu[:stepping] to 9 should set cpu[:flags] to array of flags Ohai::System Darwin hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System Darwin kernel plugin should populate kernel[:modules] from `kextstat -k -l` should not set kernel_machine to x86_64 should set kernel_machine to x86_64 should set the kernel_os to the kernel_name value Ohai::System Darwin Memory Plugin should set memory[:total] to 16384MB should set memory[:active] to 5140MB should set memory[:inactive] to 738MB should set memory[:free] to 10504MB Ohai::System Darwin Network Plugin gathering IP layer address info completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv6 addresses of the ethernet interface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries detects the ethernet counters detects the loopback counters finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route should detect network settings Ohai::System Darwin plugin platform should run sw_vers should set platform to ProductName, downcased with _ for \s should set platform_version to ProductVersion should set platform_build to BuildVersion should set platform_family to mac_os_x on os x server should set platform to mac_os_x_server should set platform_family to mac_os_x Ohai::System Darwin system_profiler plugin should return the right serial number Ohai::System plugin digital_ocean with digital_ocean hint file without private networking enabled it should behave like digital_ocean creates a digital_ocean mash has all hint attributes skips the ip_addresses hint attribute has correct values for all hint attributes creates the networks attribute pulls ip addresses from the network interfaces with private networking enabled should extract the private networking ips without digital_ocean hint file with the /etc/digitalocean file it should behave like digital_ocean_networking creates the networks attribute pulls ip addresses from the network interfaces without the /etc/digitalocean file it should behave like !digital_ocean does not create the digital_ocean mash with ec2 hint file with the /etc/digitalocean file it should behave like digital_ocean_networking creates the networks attribute pulls ip addresses from the network interfaces without the /etc/digitalocean file it should behave like !digital_ocean does not create the digital_ocean mash Ohai::System plugin dmi should run dmidecode should have [:dmi][:bios][:vendor] set should have [:dmi][:bios][:vendor] set for windows output should have [:dmi][:bios][:release_date] set should have [:dmi][:bios][:release_date] set for windows output should have [:dmi][:system][:manufacturer] set should have [:dmi][:system][:manufacturer] set for windows output should have [:dmi][:system][:product_name] set should have [:dmi][:system][:product_name] set for windows output should have [:dmi][:chassis][:lock] set should have [:dmi][:chassis][:lock] set for windows output should have [:dmi][:chassis][:asset_tag] set should have [:dmi][:chassis][:asset_tag] set for windows output should correctly ignore unwanted data Ohai::System plugin ec2 with ec2 mac and metadata address connected it should behave like ec2 should recursively fetch all the ec2 metadata should parse ec2 network/ directory as a multi-level hash should ignore "./" and "../" on ec2 metadata paths to avoid infinity loops should complete the run despite unavailable metadata with ec2_iam cloud file should parse ec2 iam/ directory and collect iam/security-credentials/ without ec2_iam cloud file should parse ec2 iam/ directory and NOT collect iam/security-credentials/ without ec2 mac and metadata address connected it should behave like !ec2 should NOT attempt to fetch the ec2 metadata with ec2 cloud file it should behave like ec2 should recursively fetch all the ec2 metadata should parse ec2 network/ directory as a multi-level hash should ignore "./" and "../" on ec2 metadata paths to avoid infinity loops should complete the run despite unavailable metadata with ec2_iam cloud file should parse ec2 iam/ directory and collect iam/security-credentials/ without ec2_iam cloud file should parse ec2 iam/ directory and NOT collect iam/security-credentials/ without cloud file it should behave like !ec2 should NOT attempt to fetch the ec2 metadata with rackspace cloud file it should behave like !ec2 should NOT attempt to fetch the ec2 metadata Ohai::System plugin elixir should get the elixir version should set languages[:elixir][:version] should not set the languages[:elixir] if elixir command fails Ohai::System plugin erlang should get the erlang version from erl +V should set languages[:erlang][:version] should set languages[:erlang][:options] should set languages[:erlang][:emulator] should not set the languages[:erlang] tree up if erlang command fails Ohai::System plugin eucalyptus with eucalyptus mac and metadata address connected it should behave like eucalyptus should recursively fetch all the eucalyptus metadata without eucalyptus mac and metadata address connected it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata with eucalyptus cloud file it should behave like eucalyptus should recursively fetch all the eucalyptus metadata without cloud file it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata with ec2 cloud file it should behave like !eucalyptus should NOT attempt to fetch the eucalyptus metadata when using DSL commands outside Ohai.plugin block behaves like a v7 loading failure [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'provides' should not have attribute keys [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'provides' should not have source key should write to Ohai::Log behaves like a v7 loading failure [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'depends' should not have attribute keys [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'depends' should not have source key should write to Ohai::Log behaves like a v7 loading failure [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'collect_data' should not have attribute keys [2015-08-18T20:28:38+00:00] WARN: Plugin Method Error: : unsupported operation 'collect_data' should not have source key should write to Ohai::Log when using nonexistent DSL commands in Ohai.plugin block behaves like a v7 loading failure [2015-08-18T20:28:38+00:00] WARN: Plugin Error: : wrong number of arguments (0 for 1) should not have attribute keys [2015-08-18T20:28:38+00:00] WARN: Plugin Error: : wrong number of arguments (0 for 1) should not have source key should write to Ohai::Log Ohai::System FreeBSD cpu plugin detects all CPU flags detects all CPU model_name detects all CPU mhz detects all CPU vendor_id detects all CPU stepping detects all CPU total Ohai::System FreeBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the fqdn to the value from 'hostname -f' should set the machinename to the value from 'hostname' Ohai::System FreeBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System FreeBSD plugin os should set os_version to __FreeBSD_version Ohai::System FreeBSD plugin platform should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] Ohai::System FreeBSD virtualization plugin jails detects we are in a jail detects we are hosting jails when on a virtualbox guest detects we are a guest when on a virtualbox host detects we are a host when on a QEMU guest detects we are a guest Ohai::System plugin gce with hint file and with metadata connection it should behave like gce should recursively fetch and properly parse json metadata without hint file and without metadata connection it should behave like !gce should NOT attempt to fetch the gce metadata Ohai::System plugin go should get the go version should set languages[:go][:version] should not set the languages[:go] tree up if go command fails Ohai::System plugin groovy should get the groovy version from running groovy -v should set languages[:groovy][:version] should not set the languages[:groovy] tree up if groovy command fails Ohai::System hostname plugin when sigar is not installed should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn should set the [short] hostname to everything before the first dot of the fqdn when sigar is installed should set the machinename to the value from 'hostname' should set the fqdn to the returned value from sigar should set the domain to everything after the first dot of the fqdn should set the [short] hostname to everything before the first dot of the fqdn when a system has a bare hostname without a FQDN should correctly set the [short] hostname hostname --fqdn when it returns empty string should be called twice hostname --fqdn when it works should be not be called twice Ohai::System Init package should set init_package to init when init_package is systemd should set init_package to systemd Ohai::System plugin ip_scopes without the ipaddr_extensions gem does not add ip_scope to addresses does not add a privateaddress attribute Ohai::System plugin java (Java5 Client VM) when not on Mac OS X and the client JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the server JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails when on Mac OS X with Java installed detects that it is on a darwin platform and real Java is installed and the client JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the server JRE is installed should run java -mx64m -version should set java[:version] should set java[:runtime][:name] to runtime name should set java[:runtime][:build] to runtime build should set java[:hotspot][:name] to hotspot name should set java[:hotspot][:build] to hotspot build should not set the languages[:java] tree up if java command fails and the JVM stubs are installed does not attempt to get java info Ohai::System plugin joyent without joyent should NOT create joyent with joyent should create joyent under global zone should ditect global zone should NOT create sm_id under smartmachine should retrive zone uuid should collect sm_id should collect images should collect pkgsrc Ohai::System plugin kernel should get the kernel[:name] value from 'uname -s' should set the kernel[:name] to the value from 'uname -s' should get the kernel[:release] value from 'uname -r' should set the kernel[:release] to the value from 'uname -r' should get the kernel[:version] value from 'uname -v' should set the kernel[:version] to the value from 'uname -v' should get the kernel[:machine] value from 'uname -m' should set the kernel[:machine] to the value from 'uname -m' Ohai::System plugin linode without linode kernel it should behave like !linode does not create the linode mash with linode kernel it should behave like linode creates a linode mash has all required attributes has correct values for all attributes with configured private ip address as suggested by linode detects and sets the private ip with linode cloud file it should behave like linode creates a linode mash has all required attributes has correct values for all attributes without cloud file it should behave like !linode does not create the linode mash with ec2 cloud file it should behave like !linode does not create the linode mash Ohai::System General Linux cpu plugin doesn't have a cpu 1 has a vendor_id for cpu 0 has a family for cpu 0 has a model for cpu 0 has a stepping for cpu 0 doesn't have a phyiscal_id for cpu 0 doesn't have a core_id for cpu 0 doesn't have a cores for cpu 0 has a model name for cpu 0 has a mhz for cpu 0 has a cache_size for cpu 0 has flags for cpu 0 behaves like Common cpu info cpu has cpu[:total] equals to 1 has cpu[:real] equals to 0 has a cpu 0 Ohai::System S390 linux cpu plugin has a cpu 1 has a vendor_id has a bogomips per cpu has features behaves like Common cpu info cpu has cpu[:total] equals to 2 has cpu[:real] equals to 0 has a cpu 0 behaves like S390 processor info S390 processor has a version for cpu 0 has a identification for cpu 0 has a machine for cpu 0 behaves like S390 processor info S390 processor has a version for cpu 1 has a identification for cpu 1 has a machine for cpu 1 Ohai::System Linux filesystem plugin when gathering filesystem usage data from df should run df -P and df -iP should set kb_size to value from df -P should set kb_used to value from df -P should set kb_available to value from df -P should set percent_used to value from df -P should set mount to value from df -P should set total_inodes to value from df -iP should set inodes_used to value from df -iP should set inodes_available to value from df -iP when gathering mounted filesystem data from mount should run mount should set mount to value from mount should set fs_type to value from mount should set mount_options to an array of values from mount when gathering filesystem type data from blkid should run blkid -s TYPE should set kb_size to value from blkid -s TYPE when gathering filesystem type data from lsblk should run lsblk -r -n -o NAME,FSTYPE should set kb_size to value from lsblk -r -n -o NAME,FSTYPE when gathering filesystem uuid data from blkid should run blkid -s UUID should set kb_size to value from blkid -s UUID when gathering filesystem uuid data from lsblk should run lsblk -r -n -o NAME,UUID should set kb_size to value from lsblk -r -n -o NAME,UUID when gathering filesystem label data from blkid should run blkid -s LABEL should set kb_size to value from blkid -s LABEL when gathering filesystem label data from lsblk should run blkid -s LABEL should set kb_size to value from blkid -s LABEL when gathering data from /proc/mounts should set mount to value from /proc/mounts should set fs_type to value from /proc/mounts should set mount_options to an array of values from /proc/mounts Ohai::System Linux hostname plugin should set the hostname to the value from 'hostname -s' should set the fqdn to the value from 'hostname --fqdn' should set the machinename to the value from 'hostname' when domain name is unset should not raise an error should not set fqdn Ohai::System Linux kernel plugin should get the "kernel"[:os] value from 'uname -o' should set the "kernel"[:os] to the value from 'uname -o' Ohai::System Linux lsb plugin should not set any lsb values if /etc/lsb-release or /usr/bin/lsb_release do not exist on systems with /etc/lsb-release should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] on systems with /usr/bin/lsb_release on Centos 5.4 correctly should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] on Fedora 14 correctly should set lsb[:id] should set lsb[:release] should set lsb[:codename] should set lsb[:description] Ohai::System Linux Mdadm Plugin gathering Mdadm information via /proc/mdstat and mdadm should not raise an error should detect raid level should detect raid state should detect raid size should detect raid metadata level should detect device count of "raid" should detect device count of "total" should detect device count of "active" should detect device count of "working" should detect device count of "failed" should detect device count of "spare" Ohai::System Linux Network Plugin #iproute2_binary_available? accepts /sbin/ip accepts /usr/bin/ip accepts /bin/ip gathering IP layer address info via ifconfig completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv4 addresses of an ethernet subinterface detects the ipv6 addresses of the ethernet interface detects the ipv6 addresses of an ethernet subinterface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the number of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries gathering interface counters via ifconfig detects the ethernet counters detects the loopback counters setting the node's default IP address attribute with ifconfig without a subinterface finds the default interface by asking which iface has the default route finds the default gateway by asking which iface has the default route with a link level default route finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route with a subinterface finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route gathering IP layer address info via iproute2 completes the run detects the interfaces detects the ipv4 addresses of the ethernet interface detects the ipv4 addresses of an ethernet subinterface detects the ipv6 addresses of the ethernet interface detects the ipv6 addresses of an ethernet subinterface detects the mac addresses of the ethernet interface detects the encapsulation type of the ethernet interface detects the flags of the ethernet interface detects the number of the ethernet interface detects the mtu of the ethernet interface detects the ipv4 addresses of the loopback interface detects the ipv6 addresses of the loopback interface detects the encapsulation type of the loopback interface detects the flags of the ethernet interface detects the mtu of the loopback interface detects the arp entries gathering interface counters via iproute2 detects the ethernet counters detects the loopback counters setting the node's default IP address attribute with iproute2 without a subinterface finds the default interface by asking which iface has the default route finds the default gateway by asking which iface has the default route with a link level default route finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route with a subinterface finds the default interface by asking which iface has the default route finds the default interface by asking which iface has the default route for newer network features using iproute2 only completes the run finds the default inet6 interface if there's a inet6 default route finds the default inet6 gateway if there's a inet6 default route finds inet6 neighbours detects the ipv4 addresses of an ethernet interface with a crazy name generates a fake interface for ip aliases for backward compatibility adds the vlan information of an interface adds the state of an interface detects interfaces only visible via ip link when IPv6 is disabled doesn't set ip6address when dealing with routes adds routes when there isn't a source field in route entries doesn't set ipaddress doesn't set macaddress doesn't set ip6address when there's a source field in the default route entry completes the run sets ipaddress sets ip6address when there're several default routes completes the run sets default ipv4 interface and gateway sets default ipv6 interface and gateway when there're a mixed setup of routes that could be used to set ipaddress completes the run sets ipaddress sets ip6address when there's a source field in a local route entry completes the run sets ipaddress sets ip6address when about to set macaddress sets macaddress when then interface has the NOARP flag completes the run doesn't set macaddress with a link level default route completes the run doesn't set ipaddress when not having a global scope ipv6 address completes the run doesn't set ip6address with no default route completes the run doesn't set ipaddress doesn't set ip6address with irrelevant routes (container setups) completes the run doesn't add bogus routes doesn't set ipaddress doesn't set ip6address when encountering a surprise interface logs a message and skips previously unseen interfaces in 'ip route show' when running with ip version ss131122 adds the vlan information of an interface Ohai::System Linux plugin platform on lsb compliant distributions should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] should set platform to ubuntu and platform_family to debian [:lsb][:id] contains Ubuntu should set platform to linuxmint and platform_family to debian [:lsb][:id] contains LinuxMint should set platform to debian and platform_family to debian [:lsb][:id] contains Debian should set platform to redhat and platform_family to rhel when [:lsb][:id] contains Redhat should set platform to amazon and platform_family to rhel when [:lsb][:id] contains Amazon should set platform to scientific when [:lsb][:id] contains ScientificSL should set platform to ibm_powerkvm and platform_family to rhel when [:lsb][:id] contains IBM_PowerKVM on debian should read the version from /etc/debian_version should correctly strip any newlines should detect Ubuntu as itself rather than debian should detect Raspbian as itself with debian as the family on slackware should set platform and platform_family to slackware on arch should set platform to arch and platform_family to arch should set platform_version to kernel release on gentoo should set platform and platform_family to gentoo on exherbo should set platform and platform_family to exherbo should set platform_version to kernel release on redhat breeds with lsb_release results should set the platform to redhat and platform_family to rhel even if the LSB name is something absurd but redhat like should set the platform to centos and platform_family to rhel should set the platform_family to rhel if the LSB name is oracle-ish should set the platform_family to rhel if the LSB name is amazon-ish should set the platform_family to fedora if the LSB name is fedora-ish should set the platform_family to redhat if the LSB name is scientific-ish should set the platform_family to redhat if the LSB name is ibm-ish without lsb_release results should read the platform as centos and version as 5.3 may be that someone munged Red Hat to be RedHat should read the platform as redhat and version as 5.3 should read the platform as fedora and version as 13 (rawhide) should read the platform as fedora and version as 10 should read the platform as fedora and version as 13 using to_i on pcs linux with lsb_result should read the platform as parallels and version as 6.0.5 without lsb_results should read the platform as parallels and version as 6.0.5 on oracle enterprise linux with lsb_results should read the platform as oracle and version as 5.7 should read the platform as oracle and version as 6.1 without lsb_results should read the platform as oracle and version as 5 should read the platform as oracle and version as 5.1 should read the platform as oracle and version as 5.7 should read the platform as oracle and version as 6.0 should read the platform as oracle and version as 6.1 on suse with lsb_release results should read the platform as opensuse on openSUSE without lsb_release results should set platform and platform_family to suse and bogus verion to 10.0 should read the version as 10.1 for bogus SLES 10 should read the version as 11.2 [OHAI-272] should read the version as 11.3 [OHAI-272] should read the version as 9.1 [OHAI-272] should read the version as 11.4 should read the platform as opensuse on openSUSE Ohai::System Linux plugin uptime should set uptime_seconds to uptime should set uptime to a human readable date should set idletime_seconds to uptime should set idletime to a human readable date Ohai::System Linux virtualization platform should not set virtualization if no tests match when we are checking for xen should set xen guest if /proc/xen exists but /proc/xen/capabilities does not should set xen host if /proc/xen/capabilities contains control_d should set xen guest if /proc/xen/capabilities exists but is empty should not set virtualization if xen isn't there when we are checking for kvm should set kvm host if /proc/modules contains kvm should set kvm guest if /proc/cpuinfo contains QEMU Virtual CPU should set kvm guest if /proc/cpuinfo contains Common KVM processor should set kvm guest if /proc/cpuinfo contains Common 32-bit KVM processor should not set virtualization if kvm isn't there when we are checking for VirtualBox should set vbox host if /proc/modules contains vboxdrv should set vbox gues if /proc/modules contains vboxguest should not set virtualization if vbox isn't there when we are parsing dmidecode should set virtualpc guest if dmidecode detects Microsoft Virtual Machine should set vmware guest if dmidecode detects VMware Virtual Platform should set vbox guest if dmidecode detects Oracle Corporation should set openstack guest if dmidecode detects OpenStack should run dmidecode and not set virtualization if nothing is detected when we are checking for Linux-VServer should set Linux-VServer host if /proc/self/status contains s_context: 0 should set Linux-VServer host if /proc/self/status contains VxID: 0 should set Linux-VServer host if /proc/self/status contains multiple space VxID: 0 should set Linux-VServer host if /proc/self/status contains tabbed VxID: 0 should set Linux-VServer guest if /proc/self/status contains s_context > 0 should set Linux-VServer guest if /proc/self/status contains VxID > 0 should not set virtualization if Linux-VServer isn't there when we are checking for openvz should set openvz host if /proc/bc/0 exists should set openvz guest if /proc/bc/0 doesn't exist and /proc/vz exists should not set virtualization if openvz isn't there when we are checking for lxc should set lxc guest if /proc/self/cgroup exist and there are /lxc/ mounts should set lxc guest if /proc/self/cgroup exist and there are /lxc/ mounts should set not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc. should not set virtualization if /proc/self/cgroup isn't there /proc/self/cgroup only has / mounts sets lxc host if lxc-version exists does not set the old virtualization attributes if they are already set does not set lxc host if lxc-version does not exist when we are checking for docker should set docker guest if /proc/self/cgroup exist and there are /docker/ mounts should set docker guest if /proc/self/cgroup exist and there are /docker/ mounts should set not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc. does not set the old virtualization attributes if they are already set does not set docker host if docker does not exist should not set virtualization if /proc/self/cgroup isn't there should set virtualization if /.dockerenv exists should set virtualization if /.dockerinit exists should not set virtualization if /.dockerenv or /.dockerinit doesn't exists Ohai::System plugin lua should get the lua version from running lua -v should set languages[:lua][:version] should not set the languages[:lua] tree up if lua command fails Ohai::System plugin mono should get the mono version from running mono -V should set languages[:mono][:version] should not set the languages[:mono] tree up if mono command fails Ohai::System NetBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System NetBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System NetBSD plugin platform should set platform to lowercased lsb[:id] should set platform_version to lsb[:release] Ohai::System Network Plugin with linux when the linux::network plugin hasn't set any of {ip,ip6,mac}address attributes simple setup populates ipaddress, macaddress and ip6address detects {ip,ip6,mac}address default ipv4 and ipv6 gateway on different interfaces both interfaces have an ARP populates ipaddress, macaddress and ip6address detects {ip,ip6}address set macaddress from the ipv4 setup informs about this setup ipv4 interface has no ARP populates ipaddress, macaddress and ip6address detects {ip,ip6}address doesn't set macaddress, ipv4 setup is valid and has precedence over ipv6 informs about this setup conflicting results from the linux::network plugin default interface doesn't match the default_gateway populates ipaddress, macaddress and ip6address picks {ip,ip6,mac}address warns about this conflict there's a default gateway, none of the configured ip/mask theorically allows to reach it picks {ip,ip6,mac}address no ip address for the given default interface/gateway doesnt fail doesn't detect {ip,ip6,mac}address warns about this conflict no ip at all doesnt fail doesn't detect {ip,ip6,mac}address should warn about it several ipaddresses matching the default route bigger prefix not set on the default interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly bigger prefix set on the default interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly smallest ip not set on the default_interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly smallest ip set on the default_interface populates ipaddress, macaddress and ip6address sets {ip,ip6,mac}address correctly no default route first interface is not the best choice populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the first interface can choose from addresses with different scopes populates ipaddress, macaddress and ip6address prefers global scope addressses to set {ip,mac,ip6}address link level default route simple setup populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface fe80::1 as a default gateway populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface can choose from addresses with different scopes populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface point to point address populates ipaddress, macaddress and ip6address picks {ip,mac,ip6}address from the default interface ipv6 only node doesnt fail can't detect ipaddress warns about not being able to set {ip,mac}address (ipv4) sets {ip6,mac}address [2015-08-18T20:28:40+00:00] WARN: unable to detect ipaddress [2015-08-18T20:28:40+00:00] WARN: unable to detect macaddress informs about macaddress being set using the ipv6 setup the freebsd::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address the linux::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address the windows::network has already set some of the {ip,mac,ip6}address attributes {ip,mac}address are already set populates ipaddress, macaddress and ip6address detects ip6address doesn't overwrite {ip,mac}address ip6address is already set node has ipv4 and ipv6 populates ipaddress, macaddress and ip6address detects {ip,mac}address doesn't overwrite ip6address ipv6 only node doesnt fail can't detect ipaddress (ipv4) can't detect macaddress either warns about not being able to set {ip,mac}address doesn't overwrite ip6address {mac,ip6}address are already set valid ipv4 setup populates ipaddress, macaddress and ip6address detects ipaddress and overwrite macaddress doesn't overwrite ip6address ipv6 only node doesnt fail can't set ipaddress doesn't overwrite {ip6,mac}address {ip,mac,ip6}address are already set populates ipaddress, macaddress and ip6address doesn't overwrite {ip,mac,ip6}address {ip,ip6}address are already set doesnt fail doesn't overwrite {ip,mac,ip6}address Ohai::System plugin nodejs should get the nodejs version from running node -v should set languages[:nodejs][:version] should not set the languages[:nodejs] tree up if node command fails Ohai::System plugin ohai should set [:chef_packages][:ohai][:version] to the current version Ohai::System plugin ohai_time should get the current time should turn the time into a floating point number should set ohai_time to the current time Ohai::System OpenBSD hostname plugin should set the hostname to the value from 'hostname -s' should set the machinename to the value from 'hostname' should use #resolve_fqdn to find the fqdn should set the domain to everything after the first dot of the fqdn Ohai::System OpenBSD kernel plugin should set the kernel_os to the kernel_name value Ohai::System OpenBSD plugin platform should set platform_version to lsb[:release] OpenStack Plugin when there is no relevant hint does not set any openstack data when there is an `openstack` hint and the metadata service is not available does not set any openstack data and the metadata service is available reads the reservation_id from the metadata service reads the public_keys_0_openssh_key from the metadata service reads the security_groups from the metadata service reads the public_ipv4 from the metadata service reads the ami_manifest_path from the metadata service reads the instance_type from the metadata service reads the instance_id from the metadata service reads the local_ipv4 from the metadata service reads the ari_id from the metadata service reads the local_hostname from the metadata service reads the placement_availability_zone from the metadata service reads the ami_launch_index from the metadata service reads the public_hostname from the metadata service reads the hostname from the metadata service reads the ami_id from the metadata service reads the instance_action from the metadata service reads the aki_id from the metadata service reads the block_device_mapping_ami from the metadata service reads the block_device_mapping_root from the metadata service reads the provider from the metadata service Retreive openStack specific metadata reads the availability_zone from the openstack metadata service reads the hostname from the openstack metadata service reads the launch_index from the openstack metadata service reads the meta from the openstack metadata service reads the name from the openstack metadata service reads the public_keys from the openstack metadata service reads the uuid from the openstack metadata service Ohai::System plugin os should set os_version to kernel_release on linux should set the os to linux on darwin should set the os to darwin on solaris sets the os to solaris2 on something we have never seen before, but ruby has sets the os to the ruby 'host_os' Ohai::System plugin etc should include a list of all users should ignore duplicate users should set the current user should set the available groups sets the encoding of strings to the default external encoding Ohai::System plugin perl should run perl -V:version -V:archname should set languages[:perl][:version] should set languages[:perl][:archname] should set languages[:perl] if perl command succeeds should not set languages[:perl] if perl command fails Ohai::System plugin php should get the php version from running php -V should set languages[:php][:version] should not set the languages[:php] tree up if php command fails should parse builddate even if it's suhosin patched should not set zend_optcache_version if not compiled with opcache should parse zend_optcache_version if compiled with opcache Ohai::System plugin platform should set the platform and platform family to the os if it was not set earlier should not set the platform to the os if it was set earlier should set the platform_family to the platform if platform was set earlier but not platform_family should not set the platform_family if the platform_family was set earlier. should set the platform_version to the os_version if it was not set earlier should not set the platform to the os if it was set earlier Ohai::System plugin powershell should set languages[:powershell][:version] for v4 should not set the languages[:powershell] tree up if powershell command fails Ohai::System plugin python should get the python version from printing sys.version and sys.platform should set languages[:python][:version] when the python command fails should not set the languages[:python] tree up Ohai::System plugin rackspace with rackspace cloud file it should behave like rackspace should create rackspace should have all required attributes should resolve hostname if reverse dns is set should return ip address when reverse dns returns exception: Resolv::ResolvError should return ip address when reverse dns returns exception: Resolv::ResolvTimeout should have correct values for all attributes should capture region information with no public interfaces (empty eth0) should have all required attributes should have correct values for all attributes without cloud file it should behave like !rackspace should NOT create rackspace with ec2 cloud file it should behave like !rackspace should NOT create rackspace xenstore provider returns rackspace it should behave like rackspace should create rackspace should have all required attributes should resolve hostname if reverse dns is set should return ip address when reverse dns returns exception: Resolv::ResolvError should return ip address when reverse dns returns exception: Resolv::ResolvTimeout should have correct values for all attributes should capture region information xenstore provider does not return rackspace it should behave like !rackspace should NOT create rackspace does not have private networks should not have private_networks object has private networks should private_networks object should have correct values for all attributes Ohai::System root_group unix platform with wheel group should have a root_group of wheel with root group should have a root_group of root platform hpux with sys group should have a root_group of sys platform aix with system group should have a root_group of system windows platform should return the group administrators Ohai::System plugin rust should get the rust version should set languages[:rust][:version] should not set the languages[:rust] if rust command fails Ohai::System Sigar network route plugin should set the routes should set the route details Ohai::System Solaris2.X cpu plugin should get the total virtual processor count should get the total processor count per-cpu information should include vendor_id for processors should include family for processors should include model for processors should include stepping for processors should include model name for processors should include mhz name for processors Ohai::System Solaris2.X DMI plugin should run smbios should have [:dmi][:bios][:vendor] set should have [:dmi][:bios][:release_date] set should have [:dmi][:system][:manufacturer] set should have [:dmi][:system][:product] set should have [:dmi][:chassis][:lock_present] set should have [:dmi][:chassis][:asset_tag] set should ignore unwanted types Ohai::System Solaris2.X hostname plugin should set the hostname to the value from 'hostname' should get the fqdn value from #resolve_fqdn Ohai::System Solaris2.X kernel plugin should get the "kernel"[:os] value from 'uname -s' should set the "kernel"[:os] to the value from 'uname -s' gives excruciating detail about kernel modules Ohai::System Solaris2.X memory plugin should get the total memory Ohai::System Solaris2.X network plugin gathering IP layer address info completes the run detects the interfaces detects the ip addresses of the interfaces detects the encapsulation type of the interfaces detects the L3PROTECT network flag setting the node's default IP address attribute finds the default interface by asking which iface has the default route Ohai::System Solaris plugin platform on SmartOS should run uname and set platform and build should set the platform should set the platform_version on Solaris 11 should run uname and set platform and build should set the platform should set the platform_version Ohai::System Solaris virtualization platform should not set virtualization if no tests match when we are checking for kvm should run psrinfo -pv Should set kvm guest if psrinfo -pv contains QEMU Virtual CPU should not set virtualization if kvm isn't there when we are parsing smbios should run smbios should set virtualpc guest if smbios detects Microsoft Virtual Machine should set vmware guest if smbios detects VMware Virtual Platform should run smbios and not set virtualization if nothing is detected Ohai::System Solaris 2.x zpool plugin On Solaris2 Common Should have entries for both zpools Should have the correct pool size Should have the correct pool allocated size Should have the correct pool free size Should have the correct capacity_used Should have the correct dedup_factor Should have the correct health Should have the correct number of devices On OmniOS_151006 Won't have a version number On Solaris_11.1 Should have a version number Ohai::System ssh_host_key plugin when an sshd_config exists behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly when an sshd_config exists with commented entries behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly when an sshd_config can not be found behaves like loads keys reads the key and sets the dsa attribute correctly reads the key and sets the rsa attribute correctly reads the key and sets the ecdsa attribute correctly reads the key and sets the ed25519 attribute correctly Ohai::ProvidesMap when looking up providing plugins for a single attribute when the attribute does not exist should raise Ohai::Exceptions::AttributeNotFound error when the attribute does not have a provider should raise Ohai::Exceptions::ProviderNotFound error when only one plugin provides the attribute should return the provider when multiple plugins provide the attribute should return all providers when looking up providing plugins for multiple attributes when a different plugin provides each attribute should return each provider when one plugin provides both requested attributes should return unique providers when looking up providers for multi-level attributes when the full attribute exists in the map should collect the provider when setting multi-level attributes when the attribute contains // should raise an Ohai::Exceptions::AttributeSyntaxError when the attribute has a trailing slash should raise an Ohai::Exceptions::AttributeSyntaxError when looking for providers of attributes specified in CLI should find providers for subattributes if any exists when the attribute doesn't have a provider should find providers for the first parent attribute when the attribute or any subattributes doesn't have a provider when looking for the closest providers and the full attribute is provided should return the provider of the full attribute and the full attribute is not provided should not raise error if a parent attribute is provided should return the providers of the closest parent attribute should raise error if the least-specific parent is not an attribute should raise error if no parent attribute has a provider when listing all plugins should find all the plugins providing attributes with an attribute filter finds plugins with a single level of attribute finds plugins with an exact match for multiple levels of attribute finds plugins that provide subattributes of the requested path Ohai::Runner run_plugin when running an invalid plugin should raise error when running a plugin version 7 should call run_v7_plugin if the plugin has run before should not run the plugin version 6 should call run_v6_plugin if the plugin has not run before if safe_run is not set safe_run should be called if safe_run is set run should be called if the plugin has run before should not run invalid version should raise error when running a plugin with no dependencies, Ohai::Runner should run the plugin should add plugin data to Ohai::System.data when running a plugin with one dependency when the dependency does not exist should raise Ohai::Excpetions::AttributeNotFound WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Instead consider providing a specific error class or message. This message can be supressed by setting: `RSpec::Expectations.configuration.warn_about_potential_false_positives = false`. Called from /ohai-8.4.0/spec/unit/runner_spec.rb:144:in `block (4 levels) in '. should not run the plugin when the dependency has a single provider should run the plugins when the dependency has multiple providers should run the plugins when running a plugin with many dependencies should run the plugins when a cycle is detected when there are no edges in the cycle (A->A) ignores the cycle when there is one edge in the cycle (A->B and B->A) should raise Ohai::Exceptions::DependencyCycle when A depends on B and C, and B depends on C should not detect a cycle when B is the first provider returned should not detect a cycle when C is the first provider returned Ohai::Runner fetch_plugins should collect the provider should return unique providers when the attribute is not provided by any plugin and some parent attribute has providers should return the providers for the parent and no parent attribute has providers should raise Ohai::Exceptions::AttributeNotFound exception Ohai::Runner#get_cycle should return the sources for the plugins in the cycle, when given an exact cycle should return the sources for only the plugins in the cycle, when there are plugins before the cycle begins Ohai::System #initialize should return an Ohai::System object should set @attributes to a ProvidesMap should set @v6_dependency_solver to a Hash When the plugins directory contains v6 and v7 plugins [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1b282ah/lake.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html load_plugins() should load all the plugins When the plugins directory contains directories inside [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1kgxcw5/repo1/lake.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1kgxcw5/repo2/mountain.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html load_plugins() should load all the plugins when running plugins When the plugins directory contains v6 plugins only [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1qruvb2/zoo.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1qruvb2/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect data from all the plugins when using :disabled_plugins [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-37jzyd/zoo.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-37jzyd/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html shouldn't run disabled version 6 plugins when running in whitelist mode runs v6 plugins runs plugins that provide the requested attributes runs dependencies of plugins that provide requested attributes does not run plugins that are irrelevant to the requested attributes When the plugins directory contains a v7 plugins with :default and platform specific blocks should collect platform specific When the plugins directory contains v7 plugins only should collect data from all the plugins should write an error to Ohai::Log when using :disabled_plugins shouldn't run disabled plugins When the plugins directory contains v6 & v7 plugins in different directories when using :disabled_plugins [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1ytibp5/my_plugins/park.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-1ytibp5/my_plugins/home.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html shouldn't run disabled plugins When the plugins directory contains v6 plugins that depend on v7 plugins [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-10ezk4a/messages.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-10ezk4a/v6message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect all data require_plugin() When the plugins directory contains v6 and v7 plugin with the same name [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-uhhpu5/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html version 6 should run When the plugins directory a v6 plugin that requires a v7 plugin with dependencies [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-xw3x1i/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should collect all the data properly When the plugins directory a v6 plugin that requires non-existing v7 plugin [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-7jp0zn/message.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html should raise DependencyNotFound when Chef OHAI resource executes :reload action When the plugins directory contains a v6 plugin [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-l2hb99/a_v6plugin.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html [2015-08-18T20:28:41+00:00] WARN: [DEPRECATION] Plugin at /tmp/ohai-plugins20150818-18409-l2hb99/a_v6plugin.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.chef.io/ohai_custom.html reloads only the v6 plugin when given a specific plugin to load When the plugins directory contains a random plugin should rerun the plugin providing the desired attributes when refreshing plugins When the plugins directory contains v7 plugins should rerun the plugin providing the desired attributes should not re-run dependencies of the plugin providing the desired attributes should not re-run plugins unrelated to the plugin providing the desired attributes when running ohai for specific attributes When the plugins directory contains v7 plugins should run all the plugins when a top level attribute is specified should run the first parent when a non-existent child is specified should be able to run multiple plugins Ohai::Util::FileHelper which returns the path to an executable that is in the path returns false if the executable is not in the path Ohai::Util::IpHelper private_address? with an IPv4 address that is private identifies the address as private that is public identifies the address as public with an IPv6 address that is an RFC 4193 unique local address identifies the address as a unique local address that is a non RFC 4193 unique local address does not identify the address as a unique local address unique_local_address? with an IPv4 address that is private identifies the address as private that is public identifies the address as public with an IPv6 address that is an RFC 4193 unique local address identifies the address as a unique local address that is a non RFC 4193 unique local address does not identify the address as a unique local address public_address? should call #private_address? should return the inverse of #private_address? loopback? with an IPv4 address that is a loopback address should identify the address as a loopback address that is not a loopback address should not identify the address as a loopback address with an IPv6 address that is a loopback address should identify the address as a loopback address that is not a loopback address should not identify the address as a loopback address Pending: (Failures listed here are expected and do not affect your suite's status) 1) Ohai::System plugin chef would set [:chef_packages][:chef][:version] if chef was available # Not yet implemented # ./spec/unit/plugins/chef_spec.rb:43 Finished in 4.4 seconds (files took 0.48275 seconds to load) 1141 examples, 0 failures, 1 pending ┌──────────────────────────────────────────────────────────────────────────────┐ │ dh_ruby --install finished │ └──────────────────────────────────────────────────────────────────────────────┘ dh_installdocs -O--buildsystem=ruby dh_ruby_fixdocs -O--buildsystem=ruby dh_installchangelogs -O--buildsystem=ruby dh_installman -O--buildsystem=ruby dh_perl -O--buildsystem=ruby dh_link -O--buildsystem=ruby dh_compress -X.rb -O--buildsystem=ruby dh_fixperms -O--buildsystem=ruby dh_installdeb -O--buildsystem=ruby dh_gencontrol -O--buildsystem=ruby dpkg-gencontrol: warning: Depends field of package ohai: unknown substitution variable ${shlibs:Depends} dh_md5sums -O--buildsystem=ruby dh_builddeb -O--buildsystem=ruby dpkg-deb: building package 'ohai' in '../ohai_8.4.0-1_all.deb'. dpkg-genchanges >../ohai_8.4.0-1_amd64.changes dpkg-genchanges: including full source code in upload dpkg-source --after-build ohai-8.4.0 dpkg-buildpackage: full upload (original source is included)