Exemple #1
0
def test_delete_subnet_by_id():
    subnet_id = _adapter.subnet_id

    res = session.delete(
        f"{API_ENDPOINT}/v1/subnets/{subnet_id}?version=2021-05-06&generation=2"
    )

    assert re.search(r"v1/subnets/(.*?)\?[vg]", res.url)
    assert res.status_code == 204
Exemple #2
0
def test_delete_vpc_by_id():
    vpc_id = _adapter.vpc_id

    res = session.delete(
        f"{API_ENDPOINT}/v1/vpcs/{vpc_id}?version=2021-05-06&generation=2")

    check_required_params(res)

    assert re.search(r"v1/vpcs/(.*?)\?[vg]", res.url)
    assert res.status_code == 204