summaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2019-12-13Merge "Add simple query format, to limit response content"Steve Smokowski3-19/+68
2019-12-13Merge "Sonar fix logger"Lukasz Muszkieta2-18/+18
2019-12-13Sonar fix loggerArindam Mondal2-18/+18
2019-12-12Add simple query format, to limit response contentSmokowski, Steven3-19/+68
2019-12-11Merge "Add so-simulator project"Java-11-upgrade1212masterMax Benjamin111-63/+4357
2019-12-11Add so-simulator projectMnushkin, Dmitry111-63/+4357
2019-12-11Merge "SO CDS Metadata ingestion"Steve Smokowski14-37/+325
2019-12-10Merge "update bb input setup to use request info for"Steve Smokowski2-21/+120
2019-12-10Merge "Update Shedlock to proper version for"Steve Smokowski2-10/+4
2019-12-10-460/+158
2019-11-07Merge "Call WorkflowActionTasks.sendErrorSyncAck()"Steve Smokowski3-3/+66
2019-11-07Merge "Updated logging library version to 1.6.2-SNAPSHOT"Steve Smokowski1-3/+3
2019-11-07Merge "- Updated to include getEntity extract"Steve Smokowski3-93/+100
2019-11-07Merge "Heatbridge: Unable to proceed with any of the function related to Orch...Max Benjamin1-2/+2
2019-11-07remove unused columns infra active requestsChan, Mercy47-460/+158
2019-11-07removed unsused portsmanisha071-3/+0
2019-11-07remove delcarartionmanisha071-1/+1
0bf79-2aa3-450e-a324-ec5630dc18cf") assert service_instance.instance_id == "5410bf79-2aa3-450e-a324-ec5630dc18cf" @mock.patch.object(ServiceSubscription, "_get_service_instance_by_filter_parameter") def test_get_service_instance_by_name(mock_get): """Test Service Subscription get_service_instance_by_name method""" service_subscription = ServiceSubscription(customer=None, service_type="test_service_type", resource_version="test_resource_version") mock_get.return_value = ServiceInstance(service_subscription="ServiceSubscription", instance_id="5410bf79-2aa3-450e-a324-ec5630dc18cf", instance_name="test") service_instance = service_subscription.get_service_instance_by_name(service_instance_name="test") assert service_instance.instance_name == "test" @mock.patch.object(ServiceSubscription, "send_message_json") @mock.patch.object(CloudRegion, "get_by_id") def test_cloud_regions(mock_cloud_region_get_by_id, mock_send_message_json): """Test service subscription `cloud_regions` property""" service_subscription = ServiceSubscription(customer=mock.MagicMock(), service_type="test_service_type", resource_version="test_resource_version") mock_send_message_json.return_value = MULTIPLE_CLOUD_REGIONS_AND_TENATS_RELATIONSHIP assert len(list(service_subscription.cloud_regions)) == 2 assert len(mock_cloud_region_get_by_id.mock_calls) == 2 @mock.patch.object(ServiceSubscription, "send_message_json") @mock.patch.object(CloudRegion, "get_by_id") @mock.patch.object(CloudRegion, "get_tenant") def test_tenants(mock_cloud_region_get_tenant, mock_cloud_region_get_by_id, mock_send_message_json): """Test service subscription `tenants` property""" service_subscription = ServiceSubscription(customer=mock.MagicMock(), service_type="test_service_type", resource_version="test_resource_version") mock_send_message_json.return_value = MULTIPLE_CLOUD_REGIONS_AND_TENATS_RELATIONSHIP assert len(list(service_subscription.tenants)) == 2 @mock.patch.object(ServiceSubscription, "send_message_json") def test_service_subscription_count(mock_send_message_json): mock_send_message_json.return_value = COUNT assert ServiceSubscription.count(customer=mock.MagicMock()) == 1