Example #1
0
def i_receive_a_response_of_type_with_data(step, response_type):
    status_code = http.status_codes[response_type]
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_get_tier_response(world.response, status_code,
        data.get(NAME), products, networks)
Example #2
0
def i_receive_a_response_of_type_with_data(step, response_type):
    status_code = http.status_codes[response_type]
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_get_tier_response(world.response, status_code, data.get(NAME),
                                 products, networks)
Example #3
0
def the_data_of_a_tier_of_a_environment_becomes(step, tier_name, env_name):
    tier_name = dataset_utils.generate_fixed_length_param(tier_name)
    world.env_requests.get_tier_environment(env_name, tier_name)
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_get_tier_response(world.response, 200, data.get(NAME), products, networks, data)
Example #4
0
def the_data_of_a_tier_of_a_environment_becomes(step, tier_name, env_name):
    tier_name = dataset_utils.generate_fixed_length_param(tier_name)
    world.env_requests.get_tier_environment(env_name, tier_name)
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_get_tier_response(world.response, 200, data.get(NAME), products,
                                 networks, data)
Example #5
0
def there_is_a_tier_in_the_list_with_data(step):
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_tier_in_list(world.response.tiers, data.get(NAME), products, networks)
Example #6
0
def there_is_a_tier_in_the_list_with_data(step):
    data = dataset_utils.prepare_data(step.hashes[0])
    products = tier.parse_products(data.get(PRODUCTS))
    networks = tier.parse_networks(data.get(NETWORKS))
    tier.check_tier_in_list(world.response.tiers, data.get(NAME), products,
                            networks)