From de8eb60370f4d929e2ee1bc5f5b2f3b563e58b01 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Sep 2019 04:00:30 +0000 Subject: [PATCH] changed so it checks the config for P/U --- test/unit/tc_filesystem.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/tc_filesystem.rb b/test/unit/tc_filesystem.rb index eb9104e64..9e78c68dd 100644 --- a/test/unit/tc_filesystem.rb +++ b/test/unit/tc_filesystem.rb @@ -4,6 +4,7 @@ # See the file 'doc/COPYING' for copying permission # require 'test/unit' +require 'yaml' class TC_Filesystem < Test::Unit::TestCase @@ -30,8 +31,9 @@ class TC_Filesystem < Test::Unit::TestCase def test_config_file test_file = '../../config.yaml' - - basic_file_test(test_file) + user_cred=YAML.load_file(test_file) + x= user_cred['beef']['credentials'] + assert_equal({"passwd"=>"beef", "user"=>"beef"}, x, 'this shall not work' ) end def test_install_file