diff --git a/software/slaprunner/test/test.py b/software/slaprunner/test/test.py index c3685f2bb7b7862aeb0b1d559bfe195b1c2832e0..dfa76a9ca9c975eba9f253f4310d6ce40fc7e88d 100644 --- a/software/slaprunner/test/test.py +++ b/software/slaprunner/test/test.py @@ -269,3 +269,31 @@ class ServicesTestCase(SlaprunnerTestCase): expected_process_name = name.format(hash=h) self.assertIn(expected_process_name, process_names) + + +class TestInstanceResilient(SlaprunnerTestCase): + instance_max_retry = 20 + @classmethod + def getInstanceSoftwareType(cls): + return 'resilient' + + def test(self): + # just check that keys returned on requested partition are for resilient + self.assertSetEqual( + set(self.computer_partition.getConnectionParameterDict().keys()), + set([ + 'backend-url', + 'feed-url-runner-1-pull', + 'feed-url-runner-1-push', + 'git-private-url', + 'git-public-url', + 'init-password', + 'init-user', + 'monitor-base-url', + 'monitor-setup-url', + 'public-url', + 'ssh-command', + 'takeover-runner-1-password', + 'takeover-runner-1-url', + 'url', + 'webdav-url']))