Beispiel #1
0
 def test_private_operations_documentation_url(self):
     for sample in mock_data.get_deployment_samples():
         sample = deployment_enricher.enrich(sample)
         url = deployment_util.get_private_operations_documentation_url(
             sample)
         if url and url != '':
             self.assertEqual(
                 mock_data.expected_value(
                     sample, 'privateOperationsDocumentationUrl'), url)
Beispiel #2
0
 def test_get_about_url_from_samples(self):
     for sample in mock_data.get_deployment_samples():
         sample = deployment_enricher.enrich(sample)
         self.assertEqual(mock_data.expected_value(sample, 'aboutUrl'),
                          deployment_util.get_about_url(sample))
Beispiel #3
0
 def test_get_slack_channels(self):
     for sample in mock_data.get_recommendation_samples():
         for channel in deployment_util.get_slack_channels(sample):
             self.assertEqual(
                 len(mock_data.expected_value(sample, 'slackChannels')),
                 len(deployment_util.get_slack_channels(sample)))
Beispiel #4
0
 def test_get_importance_from_samples(self):
     for sample in mock_data.get_deployment_samples():
         sample = deployment_enricher.enrich(sample)
         self.assertEqual(mock_data.expected_value(sample, 'importance'),
                          deployment_util.get_importance(sample))
Beispiel #5
0
 def test_get_friendly_name_from_samples(self):
     for sample in mock_data.get_deployment_samples():
         sample = deployment_enricher.enrich(sample)
         self.assertEqual(mock_data.expected_value(sample, 'friendlyName'),
                          deployment_util.get_friendly_name(sample))
Beispiel #6
0
 def test_get_monitor_pattern(self):
     for sample in mock_data.get_deployment_samples():
         sample = deployment_enricher.enrich(sample)
         self.assertEqual(
             mock_data.expected_value(sample, 'monitorPattern'),
             deployment_util.get_monitor_pattern(sample))