Example #1
0
 def test_missing_agent_nodes(self):
     """
     Rejects configuration with missing agent_nodes property.
     """
     del self.config['agent_nodes']
     with self.assertRaises(ValidationError):
         validate_cluster_configuration(self.config)
Example #2
0
 def test_missing_control_node(self):
     """
     Rejects configuration with missing control_node property.
     """
     del self.config['control_node']
     with self.assertRaises(ValidationError):
         validate_cluster_configuration(self.config)
Example #3
0
 def test_config_extra_attribute(self):
     """
     Accepts configuration file with empty agent node mapping.
     """
     self.config['agent_nodes'] = []
     validate_cluster_configuration(self.config)
Example #4
0
 def test_valid(self):
     """
     Accepts configuration file with valid entries.
     """
     validate_cluster_configuration(self.config)