Beispiel #1
0
def test_host_bundle_can_be_on_any_level(sdk_client_fs: ADCMClient):
    stack_dir = utils.get_data_dir(__file__, 'host_bundle_on_any_level')
    sdk_client_fs.upload_from_fs(stack_dir)
    with allure.step('Check host bundle'):
        assert sdk_client_fs.host_prototype_list()
Beispiel #2
0
def test_host_bundle_can_be_on_any_level(sdk_client_fs: ADCMClient):
    """Test upload hostprovider bundle lower that in directory root"""
    stack_dir = utils.get_data_dir(__file__, "host_bundle_on_any_level")
    sdk_client_fs.upload_from_fs(stack_dir)
    with allure.step("Check host bundle"):
        assert sdk_client_fs.host_prototype_list()
Beispiel #3
0
def test_check_host_bundle_versions_as_a_string(sdk_client_fs: ADCMClient):
    stack_dir = utils.get_data_dir(__file__, 'host_version_as_a_string')
    sdk_client_fs.upload_from_fs(stack_dir)
    with allure.step('Check host versions'):
        assert isinstance(random.choice(sdk_client_fs.host_prototype_list()).version, str) is True