Move molecule to deployment-e2e (#196)

* Moved deployment/molecule to deployment-e2e

* Update paths and readmes

* Nested molecule

* Corrected paths

* paths

* path

* Moved docker up
This commit is contained in:
Przemyslaw Rzad 2019-08-29 10:30:34 +02:00 committed by GitHub
parent 9af253b83e
commit 677bc50519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 16 additions and 15 deletions

@ -170,19 +170,19 @@ jobs:
steps: steps:
- checkout - checkout
- run: git submodule update --init - run: git submodule update --init
- run: deployment/molecule/molecule.sh oracle - run: deployment-e2e/molecule.sh oracle
deployment-ui: deployment-ui:
executor: tokenbridge-orb/machine-with-docker-caching executor: tokenbridge-orb/machine-with-docker-caching
steps: steps:
- checkout - checkout
- run: git submodule update --init - run: git submodule update --init
- run: deployment/molecule/molecule.sh ui - run: deployment-e2e/molecule.sh ui
deployment-monitor: deployment-monitor:
executor: tokenbridge-orb/machine-with-docker-caching executor: tokenbridge-orb/machine-with-docker-caching
steps: steps:
- checkout - checkout
- run: git submodule update --init - run: git submodule update --init
- run: deployment/molecule/molecule.sh monitor - run: deployment-e2e/molecule.sh monitor
ultimate: ultimate:
executor: tokenbridge-orb/machine-with-docker-caching executor: tokenbridge-orb/machine-with-docker-caching
parameters: parameters:

@ -26,6 +26,7 @@ Sub-repositories maintained within this monorepo are listed below.
| [Oracle-E2E](oracle-e2e/README.md) | End to end tests for the Oracle | | [Oracle-E2E](oracle-e2e/README.md) | End to end tests for the Oracle |
| [Monitor-E2E](monitor-e2e/README.md) | End to end tests for the Monitor | | [Monitor-E2E](monitor-e2e/README.md) | End to end tests for the Monitor |
| [UI-E2E](ui-e2e/README.md) | End to end tests for the UI | | [UI-E2E](ui-e2e/README.md) | End to end tests for the UI |
| [Deployment-E2E](deployment-e2e/README.md) | End to end tests for the Deployment |
| [Commons](commons/README.md) | Interfaces, constants and utilities shared between the sub-repositories | | [Commons](commons/README.md) | Interfaces, constants and utilities shared between the sub-repositories |
| [E2E-Commons](e2e-commons/README.md) | Common utilities and configuration used in end to end tests | | [E2E-Commons](e2e-commons/README.md) | Common utilities and configuration used in end to end tests |

@ -2,4 +2,4 @@ FROM python:3.7-stretch
RUN apt-get update && apt-get install -y rsync RUN apt-get update && apt-get install -y rsync
RUN curl -fsSL https://get.docker.com | sh RUN curl -fsSL https://get.docker.com | sh
RUN pip3 install docker molecule==2.22rc1 molecule[docker] flake8 RUN pip3 install docker molecule==2.22rc1 molecule[docker] flake8
WORKDIR mono/deployment WORKDIR mono/deployment-e2e

@ -33,4 +33,4 @@ ui | Deploys and checks standalone UI on Ubuntu host
## Ultimate E2E tests ## Ultimate E2E tests
For information on the Ultimate tests, please refer to [Ultimate](../../e2e-commons/ULTIMATE.md). For information on the Ultimate tests, please refer to [Ultimate](../e2e-commons/ULTIMATE.md).

@ -4,9 +4,9 @@ services:
molecule_runner: molecule_runner:
build: build:
context: .. context: ..
dockerfile: molecule/Dockerfile dockerfile: deployment-e2e/Dockerfile
restart: 'no' restart: 'no'
privileged: true privileged: true
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ../..:/mono - ..:/mono

@ -29,7 +29,7 @@ provisioner:
r: ["bug"] r: ["bug"]
playbooks: playbooks:
prepare: ../prepare.yml prepare: ../prepare.yml
converge: ../../site.yml converge: ../../../deployment/site.yml
inventory: inventory:
host_vars: host_vars:
monitor-host: monitor-host:

@ -29,7 +29,7 @@ provisioner:
r: ["bug"] r: ["bug"]
playbooks: playbooks:
prepare: ../prepare.yml prepare: ../prepare.yml
converge: ../../site.yml converge: ../../../deployment/site.yml
inventory: inventory:
host_vars: host_vars:
oracle-host: oracle-host:

@ -29,7 +29,7 @@ provisioner:
r: ["bug"] r: ["bug"]
playbooks: playbooks:
prepare: ../prepare.yml prepare: ../prepare.yml
converge: ../../site.yml converge: ../../../deployment/site.yml
inventory: inventory:
host_vars: host_vars:
ui-host: ui-host:

@ -1,5 +1,5 @@
--- ---
- import_playbook: ../../site.yml - import_playbook: ../../../deployment/site.yml
# The docker-compose files have to be modified, in order to join the docker containers over network with the parity containers # The docker-compose files have to be modified, in order to join the docker containers over network with the parity containers
- import_playbook: ./oracle-docker-compose.yml - import_playbook: ./oracle-docker-compose.yml
- import_playbook: ./ui-docker-compose.yml - import_playbook: ./ui-docker-compose.yml

@ -16,7 +16,7 @@ Please refer to [Execution](./EXECUTION.md).
## Testing ## Testing
Please refer to [Testing](./molecule/TESTING.md). Please refer to [Deployment-E2E](../deployment-e2e/README.md).
## Contributing ## Contributing

@ -45,15 +45,15 @@ while [ "$1" != "" ]; do
fi fi
if [ "$1" == "native-to-erc" ]; then if [ "$1" == "native-to-erc" ]; then
../deployment/molecule/molecule.sh ultimate-native-to-erc ../deployment-e2e/molecule.sh ultimate-native-to-erc
fi fi
if [ "$1" == "erc-to-native" ]; then if [ "$1" == "erc-to-native" ]; then
../deployment/molecule/molecule.sh ultimate-erc-to-native ../deployment-e2e/molecule.sh ultimate-erc-to-native
fi fi
if [ "$1" == "erc-to-erc" ]; then if [ "$1" == "erc-to-erc" ]; then
../deployment/molecule/molecule.sh ultimate-erc-to-erc ../deployment-e2e/molecule.sh ultimate-erc-to-erc
fi fi
shift # Shift all the parameters down by one shift # Shift all the parameters down by one