Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : testsuite update - don't read the custom service definition from the real system
  • From: Ladislav Slezak <lslezak@xxxxxxxxxx>
  • Date: Thu, 27 Aug 2009 11:47:55 +0200
  • Message-id: <E1MiTqP-0006iC-7M@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 24be7a4b9c09766cbe8cf97763c56ae44b01570f
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
Date: Thu Aug 27 11:47:55 2009 +0200

testsuite update - don't read the custom service definition from the real
system

+ the two disabled tests have been re-enabled
---
plugins/services/test/unit/services_test.rb | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/services/test/unit/services_test.rb
b/plugins/services/test/unit/services_test.rb
index 66f87f0..29c6915 100644
--- a/plugins/services/test/unit/services_test.rb
+++ b/plugins/services/test/unit/services_test.rb
@@ -87,17 +87,19 @@ class ServiceTest < ActiveSupport::TestCase
test "check missing LSB service" do
ret = {"exit" => "127", "stderr" => "", "stdout" => "sh: line 1:
/etc/init.d/non_existing_service: No such file or directory\n"}
YastService.stubs(:Call).with('YaPI::SERVICES::Execute',
'non_existing_service', 'status').returns(ret)
+
YaST::ConfigFile.stubs(:config_default_location).returns(vendor_config('missing'))

s = Service.new('non_existing_service')
- #assert s.save('status') == ret
+ assert s.save('status') == ret
end

test "check LSB service status" do
ret = {:exit => 0}
YastService.stubs(:Call).with('YaPI::SERVICES::Execute', 'ntp',
'status').returns(ret)
+
YaST::ConfigFile.stubs(:config_default_location).returns(vendor_config('missing'))

s = Service.new('ntp')
- #assert s.save('status') == ret
+ assert s.save('status') == ret
end


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages