예제 #1
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))
예제 #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))
예제 #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))
    )
예제 #4
0
def server_region():
    return get_server_region(get_ip_address())
예제 #5
0
def server_region():
    return get_server_region(get_ip_address())