示例#1
0
def test_sidecar():
    plan.start_sidecar_plan(PACKAGE_NAME)
    sidecar_plan = plan.get_sidecar_plan(PACKAGE_NAME).json()
    print("sidecar_plan: " + str(sidecar_plan))

    assert(len(sidecar_plan['phases']) == 1)
    assert(sidecar_plan['phases'][0]['name'] == 'sidecar-deploy')
    assert(len(sidecar_plan['phases'][0]['steps']) == 2)
示例#2
0
def test_sidecar():
    plan.start_sidecar_plan(PACKAGE_NAME)
    sidecar_plan = plan.get_sidecar_plan(PACKAGE_NAME).json()
    sdk_utils.out("sidecar_plan: " + str(sidecar_plan))

    assert(len(sidecar_plan['phases']) == 1)
    assert(sidecar_plan['phases'][0]['name'] == 'sidecar-deploy')
    assert(len(sidecar_plan['phases'][0]['steps']) == 2)
def test_sidecar():
    plan.start_sidecar_plan(PACKAGE_NAME, {'PLAN_PARAMETER': 'parameterized'})
    sidecar_plan = plan.get_sidecar_plan(PACKAGE_NAME).json()
    print("sidecar_plan: " + str(sidecar_plan))

    assert(len(sidecar_plan['phases']) == 1)
    assert(sidecar_plan['phases'][0]['name'] == 'sidecar-deploy')
    assert(len(sidecar_plan['phases'][0]['steps']) == 2)

    spin.time_wait_noisy(lambda: (
        plan.get_sidecar_plan(PACKAGE_NAME).json()['status'] == 'COMPLETE'))
示例#4
0
def test_sidecar():
    plan.start_sidecar_plan(PACKAGE_NAME)
    sidecar_plan = plan.get_sidecar_plan(PACKAGE_NAME).json()
    sdk_utils.out("sidecar_plan: " + str(sidecar_plan))

    assert (len(sidecar_plan['phases']) == 1)
    assert (sidecar_plan['phases'][0]['name'] == 'sidecar-deploy')
    assert (len(sidecar_plan['phases'][0]['steps']) == 2)

    spin.time_wait_noisy(lambda: (plan.get_sidecar_plan(PACKAGE_NAME).json()[
        'status'] == 'COMPLETE'))