Пример #1
0
def test_input_valid(run_expo_app_publish_backend):
    run_options_test(
        CliRunner(),
        run_expo_app_publish,
        ALL_VALID_OPTIONS,
        run_expo_app_publish_backend.run,
    )
Пример #2
0
def test_list_reference_types_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(), list_reference_types, LIST_TYPES_VALID_OPTIONS, blueprint_mock.run
    )
Пример #3
0
def test_input_valid(update_image_reference_backend):
    run_options_test(
        CliRunner(),
        update_image_reference,
        ALL_VALID_OPTIONS,
        update_image_reference_backend,
    )
def test_input_valid(manage_credentials_crypto_backend):
    runner = CliRunner()
    with runner.isolated_filesystem():
        os.mknod('crypto_file')
        # testing that's impossible to run without full set of required options
        run_options_test(runner, manage_credentials_crypto, ALL_VALID_OPTIONS,
                         manage_credentials_crypto_backend.run)
Пример #5
0
def test_input_valid(run_sentry_release_backend):
    run_options_test(
        CliRunner(),
        run_sentry_release,
        ALL_VALID_OPTIONS,
        run_sentry_release_backend.run,
    )
Пример #6
0
def test_query_references_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        query_references,
        QUERY_REFERENCES_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #7
0
def test_query_layer_types_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        query_layer_types,
        QUERY_TYPES_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #8
0
def test_describe_layer_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        describe_layer,
        DECSCRIBE_LAYER_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #9
0
def test_describe_component_type_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        describe_component_type,
        DECSCRIBE_TYPE_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #10
0
def test_describe_runbook_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        describe_runbook,
        DECSCRIBE_RUNBOOK_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #11
0
def test_describe_reference_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(
        CliRunner(),
        describe_reference,
        DECSCRIBE_REFERENCE_VALID_OPTIONS,
        blueprint_mock.run,
    )
Пример #12
0
def test_input_valid(manage_file_crypto_backend):
    runner = CliRunner()
    with runner.isolated_filesystem():
        open("crypto_file", "w").close()
        run_options_test(
            runner,
            manage_file_crypto,
            ALL_VALID_OPTIONS,
            manage_file_crypto_backend.run,
        )
Пример #13
0
def test_input_valid(
    blueprint_mock,
    ContextClassMock,
    create_template_backend,
    test_generate_backend,
    test_run_backend,
):

    run_options_test(
        CliRunner(), test_deployments, ALL_VALID_OPTIONS, blueprint_mock.run
    )
Пример #14
0
def test_input_valid(upload_image_backend):
    run_options_test(CliRunner(), upload_image, ALL_VALID_OPTIONS,
                     upload_image_backend)
def test_input_valid(create_buildblueprint_backend):
    run_options_test(CliRunner(), create_buildblueprint, ALL_VALID_OPTIONS,
                     create_buildblueprint_backend.run)
Пример #16
0
def test_input_valid(run_lambda_func_backend):
    run_options_test(CliRunner(), run_lambda_func, ALL_VALID_OPTIONS, run_lambda_func_backend.run)
Пример #17
0
def test_input_valid(run_pipeline_backend):
    run_options_test(CliRunner(), run_pipeline, ALL_VALID_OPTIONS,
                     run_pipeline_backend.run)
Пример #18
0
def test_list_layers_input_valid(
    blueprint_mock,
    ContextClassMock,
):
    run_options_test(CliRunner(), list_layers, LIST_LAYERS_VALID_OPTIONS,
                     blueprint_mock.run)
Пример #19
0
def test_input_valid(manage_file_crypto_backend):
    runner = CliRunner()
    with runner.isolated_filesystem():
        os.mknod('crypto_file')
        run_options_test(runner, manage_file_crypto, ALL_VALID_OPTIONS,
                         manage_file_crypto_backend.run)
Пример #20
0
def test_input_valid(manage_deployment_backend):
    run_options_test(
        CliRunner(), manage_deployment, ALL_VALID_OPTIONS, manage_deployment_backend.run
    )
Пример #21
0
def test_input_valid(manage_stack_backend):
    run_options_test(CliRunner(), manage_stack, ALL_VALID_OPTIONS, manage_stack_backend.run)
Пример #22
0
def test_input_valid(create_template_backend, create_diagram_backend):
    run_options_test(
        CliRunner(), draw_diagrams, ALL_VALID_OPTIONS, create_template_backend.run
    )
Пример #23
0
def test_input_valid(transfer_image_backend):
    run_options_test(
        CliRunner(), transfer_image, ALL_VALID_OPTIONS, transfer_image_backend
    )
Пример #24
0
def test_input_valid(run_task_backend):
    run_options_test(CliRunner(), run_task, ALL_VALID_OPTIONS,
                     run_task_backend.run)
Пример #25
0
def test_input_valid(blueprint_mock, ContextClassMock,
                     create_template_backend):
    run_options_test(CliRunner(), create_schemas, ALL_VALID_OPTIONS,
                     blueprint_mock.run)
Пример #26
0
def test_input_valid(create_template_backend):
    run_options_test(CliRunner(), create_template, ALL_VALID_OPTIONS,
                     create_template_backend.run)
Пример #27
0
def test_input_valid(blueprint_mock, ContextClassMock, contract_backend):
    run_options_test(CliRunner(), run_runbook, ALL_VALID_OPTIONS,
                     contract_backend.run)
Пример #28
0
def test_input_valid(create_reference_backend):
    runner = CliRunner()
    with runner.isolated_filesystem():
        os.mkdir('output_dir')
        run_options_test(runner, create_reference, ALL_VALID_OPTIONS,
                         create_reference_backend.run)