def step_impl(context, key, value, node): assert hasattr( context, "composition"), "There are no containers running for this test" changedString = common_util.changeFormat(value) containerValue = context.composition.getEnvFromContainer(node, key) assert containerValue == changedString, "The environment variable on the container was set to '{0}' (expected value: '{1}')".format( containerValue, changedString)
def step_impl(context, key, value, node): assert hasattr( context, "composition"), "There are no containers running for this test" changedString = common_util.changeFormat(value) container = context.composition.getContainerFromName( node, context.composition.containerDataList) containerValue = container.getEnv(key) assert containerValue == changedString, "The environment variable on the container was set to {}".format( containerValue)
def step_impl(context, key, value): projectName = None if hasattr(context, "projectName"): projectName = context.projectName if not hasattr(context, "composition"): context.composition = compose_util.Composition(context, projectName=projectName, startContainers=False) changedString = common_util.changeFormat(value) context.composition.environ[key] = changedString
def step_impl(context, key, value): if not hasattr(context, "composition"): context.composition = compose_util.Composition(context, startContainers=False) changedString = common_util.changeFormat(value) context.composition.environ[key] = changedString