def test_stop_marathon_job():
    client = mock.create_autospec(marathon.MarathonClient)
    cluster = 'my_cluster'
    service = 'my_service'
    instance = 'my_instance'
    app_id = 'mock_app_id'
    marathon_serviceinit.stop_marathon_job(service, instance, app_id, client, cluster)
    client.scale_app.assert_called_once_with(app_id, instances=0, force=True)
Beispiel #2
0
def test_stop_marathon_job():
    client = mock.create_autospec(marathon.MarathonClient)
    cluster = 'my_cluster'
    service = 'my_service'
    instance = 'my_instance'
    app_id = 'mock_app_id'
    marathon_serviceinit.stop_marathon_job(service, instance, app_id, client, cluster)
    client.scale_app.assert_called_once_with(app_id, instances=0, force=True)