Esempio n. 1
0
    def set_agent_configuration_parameters_with_empty_cloudify_agent(self):

        from windows_agent_installer import set_agent_configuration_parameters

        # cloudify agent does not contain any agent configuration parameters.
        # this means all parameters should be the default ones.
        cloudify_agent = {}
        set_agent_configuration_parameters(cloudify_agent)
        self.assertEqual(cloudify_agent[constants.AGENT_START_TIMEOUT_KEY], 15)
        self.assertEqual(cloudify_agent[constants.AGENT_START_INTERVAL_KEY], 1)
Esempio n. 2
0
    def set_agent_configuration_parameters_with_full_cloudify_agent(self):

        from windows_agent_installer import set_agent_configuration_parameters

        # cloudify agent does contain agent configuration parameters.
        # this means all parameters should be the ones specified.
        cloudify_agent = {
            constants.AGENT_START_TIMEOUT_KEY: 60,
            constants.AGENT_START_INTERVAL_KEY: 5
        }
        set_agent_configuration_parameters(cloudify_agent)
        self.assertEqual(cloudify_agent[constants.AGENT_START_TIMEOUT_KEY], 60)
        self.assertEqual(cloudify_agent[constants.AGENT_START_INTERVAL_KEY], 5)