behave-test-steps steps documentation

Given define variable

steps/steps.py:292

Given container is started with env

steps/container_steps.py:72

Given container is started with args

steps/container_steps.py:86

Given container is started with entrypoint {entrypoint}

steps/container_steps.py:98

Given container is started with command {cmd}

steps/container_steps.py:106

This will start a container with a specific command provided by the user Useful for container that does not have an entrypoint or does not executes nothing i.e. start the container with bash command eh perform some commands on the container

Given image is built

steps/container_steps.py:128

Given container is started with args and env

steps/container_steps.py:133

Given container is started as uid {uid}

steps/container_steps.py:153

Given s2i build {application} from {path} with env and {incremental} using {tag} without running

steps/s2i_steps.py:52

Given s2i build {application} from {path} without running

steps/s2i_steps.py:52

Given s2i build {application} from {path} using {tag} and runtime-image {runtime_image}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path} with env and {incremental} using {tag}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path} with env and {incremental}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path} with env using {tag}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path} with env

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path} using {tag}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} from {path}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application} using {tag}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given s2i build {application}

steps/s2i_steps.py:58

Perform an S2I build, that must succeed.

Given failing s2i build {application} from {path} using {tag}

steps/s2i_steps.py:80

Given failing s2i build {application} from {path}

steps/s2i_steps.py:80

Given XML namespace {prefix}:{url}

steps/xml_steps.py:7

Given XML namespaces

steps/xml_steps.py:14

When container is ready

steps/container_steps.py:11

When container {name} is started with env

steps/container_steps.py:72

When container is started with env with process {pname}

steps/container_steps.py:72

When container is started with env

steps/container_steps.py:72

When container {name} is started with args

steps/container_steps.py:86

When container is started with args

steps/container_steps.py:86

When container {name} is started with command {cmd}

steps/container_steps.py:106

This will start a container with a specific command provided by the user Useful for container that does not have an entrypoint or does not executes nothing i.e. start the container with bash command eh perform some commands on the container

When container is started with command {cmd}

steps/container_steps.py:106

This will start a container with a specific command provided by the user Useful for container that does not have an entrypoint or does not executes nothing i.e. start the container with bash command eh perform some commands on the container

When container {name} is started with args and env

steps/container_steps.py:133

When container is started with args and env

steps/container_steps.py:133

When container {name} is started as uid {uid}

steps/container_steps.py:153

When container is started as uid {uid} with process {pname}

steps/container_steps.py:153

When container is started as uid {uid}

steps/container_steps.py:153

Then check that page is not served

steps/steps.py:76

Then check that page is served

steps/steps.py:122

Then check that port {port} is open

steps/steps.py:215

Then file {file_name} should exist and be a {file_type}

steps/steps.py:234

Then file {file_name} should exist

steps/steps.py:234

Then file {file_name} should not exist

steps/steps.py:263

Then files at {path} should have count of {count}

steps/steps.py:275

Then container log should match regex {regex}

steps/container_steps.py:19

Then exactly {num} times container log should contain {message}

steps/container_steps.py:25

Then container log should contain {message}

steps/container_steps.py:31

Then container log should not contain {message}

steps/container_steps.py:37

This will check if {message} is not available in the container log. It'll wait until the default timeout. Sometimes you want to check it only once, see available_log_not_contains_msg method

Then available container log should contain {message}

steps/container_steps.py:50

This will check only once if the {message} is available in the container log.

Then available container log should not contain {message}

steps/container_steps.py:61

This will check only once if the {message} is missing in the container log.

Then all files under {path} are writeable by current user

steps/container_steps.py:254

Then run {cmd} in container and immediately check its output contains {output_phrase}

steps/container_steps.py:270

Then run {cmd} in container and immediately check its output for {output_phrase}

steps/container_steps.py:270

Then run {cmd} in container and immediately check its output does not contain {output_phrase}

steps/container_steps.py:276

Then run {cmd} in container and check its output does not contain {output_phrase}

steps/container_steps.py:285

Then run {cmd} in container once

steps/container_steps.py:294

Then run {cmd} in container and detach

steps/container_steps.py:299

Then run {cmd} in container

steps/container_steps.py:305

Then run {cmd} in container and check its output contains {output_phrase}

steps/container_steps.py:305

Then run {cmd} in container and check its output for {output_phrase}

steps/container_steps.py:305

Then file {filename} should contain {phrase}

steps/container_steps.py:341

Then file {filename} should not contain {phrase}

steps/container_steps.py:347

Then inspect container

steps/container_steps.py:353

Then copy {src_file} to {dest_folder} in container

steps/container_steps.py:388

Then the image should contain label {label} {check} value {value}

steps/image_steps.py:13

Then the image should contain label {label}

steps/image_steps.py:13

Then image should contain {count} layers

steps/image_steps.py:40

This feature is used to test if the image contains specific number of layers. It's useful to test if squashing was executed properly.

https://projects.engineering.redhat.com/browse/APPINFRAT-1097

Then s2i build log should contain {phrase}

steps/s2i_steps.py:89

Then s2i build log should match regex {regex}

steps/s2i_steps.py:97

Then s2i build log should not contain {phrase}

steps/s2i_steps.py:105

Then XML file {xml_file} should contain value {value} on XPath {xpath}

steps/xml_steps.py:21

Then XML file {xml_file} should contain trimmed value {value} on XPath {xpath}

steps/xml_steps.py:26

Then XML file {xml_file} should have {count} elements on XPath {xpath} and wait {timeout} seconds

steps/xml_steps.py:66

Then XML file {xml_file} should have {count} elements on XPath {xpath}

steps/xml_steps.py:66