コード例 #1
0
def test_get_marathon_client():
    fake_config = MarathonConfig(
        {"url": "fakeurl", "user": "******", "password": "******"}, "/fake_config/fake_marathon.json"
    )
    client = paasta_metastatus.get_marathon_client(fake_config)
    assert client.servers == ["fakeurl"]
    assert client.auth == ("fakeuser", "fakepass")
コード例 #2
0
def test_get_marathon_client():
    fake_config = MarathonConfig({
        'url': 'fakeurl',
        'user': '******',
        'password': '******',
    })
    client = paasta_metastatus.get_marathon_client(fake_config)
    assert client.servers == ['fakeurl']
    assert client.auth == ('fakeuser', 'fakepass')
コード例 #3
0
def test_get_marathon_client():
    fake_config = MarathonConfig({
        'url': 'fakeurl',
        'user': '******',
        'password': '******',
    }, '/fake_config/fake_marathon.json')
    client = paasta_metastatus.get_marathon_client(fake_config)
    assert client.servers == ['fakeurl']
    assert client.auth == ('fakeuser', 'fakepass')
コード例 #4
0
def get_deployments():
    marathon_config = load_marathon_config()
    marathon_client = get_marathon_client(marathon_config)
    deployments = marathon_client.list_deployments()
    return deployments
コード例 #5
0
def get_deployments():
    marathon_config = load_marathon_config()
    marathon_client = get_marathon_client(marathon_config)
    deployments = marathon_client.list_deployments()
    return deployments