def test_server_region_and_id(appliance_ip):
    """Server ID begins with region number, so check that.
    """
    region = db_queries.get_server_region(appliance_ip)
    if region == 0:
        pytest.skip("Can't check this if the region is 0")
    assert str(db_queries.get_server_id(appliance_ip)).startswith(str(region))
Esempio n. 2
0
def test_server_region_and_id(appliance_ip):
    """Server ID begins with region number, so check that.
    """
    region = db_queries.get_server_region(appliance_ip)
    if region == 0:
        pytest.skip("Can't check this if the region is 0")
    assert str(db_queries.get_server_id(appliance_ip)).startswith(str(region))
Esempio n. 3
0
def test_server_region_and_id(appliance_ip):
    """Server ID begins with region number, so check that.
    """
    assert str(db_queries.get_server_id(appliance_ip)).startswith(
        str(db_queries.get_server_region(appliance_ip))
    )
Esempio n. 4
0
def server_region():
    return get_server_region(get_ip_address())
def server_region():
    return get_server_region(get_ip_address())