spec/unit/plugins/aix/filesystem_spec.rb in ohai-14.15.0 vs spec/unit/plugins/aix/filesystem_spec.rb in ohai-15.0.35

- old
+ new

@@ -14,11 +14,11 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -require_relative "../../../spec_helper.rb" +require "spec_helper" describe Ohai::System, "AIX filesystem plugin" do before(:each) do @df_pk_lpar = <<~DF_PK Filesystem 1024-blocks Used Available Capacity Mounted on @@ -43,22 +43,22 @@ /dev/fslv09 5242880 1477164 3765716 29% /wpars/toolchain-tester-5c969f/opt /proc - - - - /wpars/toolchain-tester-5c969f/proc /dev/fslv10 5242880 42884 5199996 1% /wpars/toolchain-tester-5c969f/tmp /dev/fslv11 5242880 2725048 2517832 52% /wpars/toolchain-tester-5c969f/usr /dev/fslv12 10485760 272376 10213384 3% /wpars/toolchain-tester-5c969f/var -DF_PK + DF_PK @df_pk_wpar = <<~DF_PK Filesystem 1024-blocks Used Available Capacity Mounted on Global 10485760 130872 10354888 2% / Global 5242880 39572 5203308 1% /home Global 5242880 1477164 3765716 29% /opt Global - - - - /proc Global 5242880 42884 5199996 1% /tmp Global 5242880 2725048 2517832 52% /usr Global 10485760 272376 10213384 3% /var -DF_PK + DF_PK @mount_lpar = <<~MOUNT node mounted mounted over vfs date options -------- --------------- --------------- ------ ------------ --------------- /dev/hd4 / jfs2 Jul 17 13:22 rw,log=/dev/hd8 @@ -68,11 +68,11 @@ /dev/hd1 /home jfs2 Jul 17 13:22 rw,log=/dev/hd8 /dev/hd11admin /admin jfs2 Jul 17 13:22 rw,log=/dev/hd8 /proc /proc procfs Jul 17 13:22 rw /dev/hd10opt /opt jfs2 Jul 17 13:22 rw,log=/dev/hd8 192.168.1.11 /stage/middleware1 /stage/middleware2 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys -MOUNT + MOUNT @mount_wpar = <<~MOUNT node mounted mounted over vfs date options -------- --------------- --------------- ------ ------------ --------------- Global / jfs2 Nov 23 21:03 rw,log=NULL @@ -81,10 +81,10 @@ Global /proc namefs Nov 23 21:03 rw Global /tmp jfs2 Nov 23 21:03 rw,log=NULL Global /usr jfs2 Nov 23 21:03 rw,log=NULL Global /var jfs2 Nov 23 21:03 rw,log=NULL 192.168.1.11 /stage/middleware3 /stage/middleware4 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys -MOUNT + MOUNT @plugin = get_plugin("filesystem") allow(@plugin).to receive(:collect_os).and_return(:aix) @plugin[:filesystem] = Mash.new end