pipenv install --dev
pipenv run behave
pipenv run pytest
By default, behave
will skip integration tests, which
require the AMQ broker.
These test require the AMQ broker running
You will need deploy and start the AMQ Broker. Use the amq-broker-deployment project to deploy the broker to OpenShift
Before running the deployer, follow the instructions for deploying to your own namespace, and add the test queues by editing the file amq-broker.yml, and modifying this line:
AMQ_QUEUES: test.queue
to
AMQ_QUEUES: test_1.queue,test_2.queue
export ACTIVEMQ_ADDRESS=127.0.0.1:5672;
export QUEUE_1=test_1.queue;
export QUEUE_2=test_2.queue;
Log into OCP
oc login https://console.patrick.rht-labs.com:443
Ensure correct project
oc project <your namespace>
Run port forward to the amq broker pod (Note: Forward will time out)
oc port-forward <amq-broker pod name> 5672
Run only integration tests
pipenv run behave -t integration
Run all tests
pipenv run behave -t integration,~integration