How to use the iotedgedev.output.Output function in iotedgedev

To help you get started, we’ve selected a few iotedgedev examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / iotedgedev / tests / test_utility.py View on Github external
def utility():
    output = Output()
    envvars = EnvVars(output)
    envvars.load()
    return Utility(envvars, output)
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_in_command_list_empty_3():
    output = Output()
    envvars = EnvVars(output)
    assert envvars.in_command_list("", ["init", "e2e", "", "new", "simulator stop"])
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def setup_test_env(request):
    output = Output()
    envvars = EnvVars(output)
    envvars.set_envvar("CONTAINER_REGISTRY_SERVER_UNITTEST", 'unittest.azurecr.io')
    envvars.set_envvar("CONTAINER_REGISTRY_USERNAME_UNITTEST", 'username')
    envvars.set_envvar("CONTAINER_REGISTRY_PASSWORD_UNITTEST", 'password')

    def clean():
        os.environ.pop("CONTAINER_REGISTRY_SERVER_UNITTEST")
        os.environ.pop("CONTAINER_REGISTRY_USERNAME_UNITTEST")
        os.environ.pop("CONTAINER_REGISTRY_PASSWORD_UNITTEST")
    request.addfinalizer(clean)

    return
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_is_terse_command_empty():
    output = Output()
    envvars = EnvVars(output)
    assert envvars.is_terse_command("")
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_default_container_registry_server_key_exists():
    output = Output()
    envvars = EnvVars(output)
    envvars.load()
    assert "CONTAINER_REGISTRY_SERVER" in os.environ
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_default_container_registry_username_value_exists_or_returns_empty_string():
    output = Output()
    envvars = EnvVars(output)
    username = envvars.get_envvar("CONTAINER_REGISTRY_USERNAME")
    assert username is not None
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_is_terse_command_false():
    output = Output()
    envvars = EnvVars(output)
    assert not envvars.is_terse_command("solution add")
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_default_container_registry_server_value_exists():
    output = Output()
    envvars = EnvVars(output)
    server = envvars.get_envvar("CONTAINER_REGISTRY_SERVER")
    assert server is not None
github Azure / iotedgedev / tests / test_envvars.py View on Github external
def test_set_envvar():
    output = Output()
    envvars = EnvVars(output)
    registry_server = envvars.get_envvar("DEPLOYMENT_CONFIG_TEMPLATE_FILE")
    envvars.set_envvar("DEPLOYMENT_CONFIG_TEMPLATE_FILE", "deployment.template_new.json")
    new_registry_server = envvars.get_envvar("DEPLOYMENT_CONFIG_TEMPLATE_FILE")
    assert new_registry_server == "deployment.template_new.json"
    envvars.set_envvar("DEPLOYMENT_CONFIG_TEMPLATE_FILE", registry_server)
github Azure / iotedgedev / iotedgedev / buildoptionsparser.py View on Github external
def __init__(self, build_options):
        self.build_options = build_options
        self.output = Output()
        self.sdk_options = {}