-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the develop branch to the master branch, preparation to v2.0.0-rc0
- Loading branch information
Showing
59 changed files
with
618 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule contracts
updated
from c85aeb to 7e1792
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Molecule managed | ||
|
||
{% if item.registry is defined %} | ||
FROM {{ item.registry.url }}/{{ item.image }} | ||
{% else %} | ||
FROM {{ item.image }} | ||
{% endif %} | ||
|
||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \ | ||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash && dnf clean all; \ | ||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ | ||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \ | ||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ | ||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
lint: | ||
name: yamllint | ||
enabled: True | ||
options: | ||
config-data: | ||
ignore: ../../hosts.yml | ||
platforms: | ||
- name: multiple-host | ||
groups: | ||
- example | ||
children: | ||
- oracle | ||
- monitor | ||
- ui | ||
image: ubuntu:16.04 | ||
privileged: true | ||
network_mode: host | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
provisioner: | ||
name: ansible | ||
lint: | ||
name: ansible-lint | ||
enabled: True | ||
options: | ||
r: ["bug"] | ||
playbooks: | ||
prepare: ../prepare.yml | ||
converge: ../monitor/converge.yml | ||
inventory: | ||
host_vars: | ||
multiple-host: | ||
ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY: "8e829f695aed89a154550f30262f1529582cc49dc30eff74a6b491359e0230f9" | ||
MONITOR_PORT: 3003 | ||
syslog_server_port: "udp://127.0.0.1:514" | ||
verifier: | ||
name: testinfra | ||
lint: | ||
name: flake8 | ||
additional_files_or_dirs: | ||
- ../../tests/* | ||
scenario: | ||
name: multiple | ||
test_sequence: | ||
- lint | ||
- cleanup | ||
- destroy | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- verify | ||
- destroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import os | ||
import pytest | ||
import testinfra.utils.ansible_runner | ||
|
||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( | ||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') | ||
|
||
|
||
@pytest.mark.parametrize("service", [ | ||
("poabridge"), | ||
("tokenbridge-ui"), | ||
("tokenbridge-monitor") | ||
]) | ||
def test_services(host, service): | ||
assert host.service(service).is_enabled | ||
assert host.service(service).is_running | ||
|
||
|
||
@pytest.mark.parametrize("name", [ | ||
("oracle_rabbit_1"), | ||
("oracle_redis_1"), | ||
("oracle_bridge_request_1"), | ||
("oracle_bridge_collected_1"), | ||
("oracle_bridge_affirmation_1"), | ||
("oracle_bridge_senderhome_1"), | ||
("oracle_bridge_senderforeign_1"), | ||
("ui_ui_1"), | ||
("monitor_monitor_1") | ||
]) | ||
def test_docker_containers(host, name): | ||
container = host.docker(name) | ||
assert container.is_running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Molecule managed | ||
|
||
{% if item.registry is defined %} | ||
FROM {{ item.registry.url }}/{{ item.image }} | ||
{% else %} | ||
FROM {{ item.image }} | ||
{% endif %} | ||
|
||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \ | ||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash && dnf clean all; \ | ||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ | ||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \ | ||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ | ||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: oracle-amb-host | ||
groups: | ||
- ultimate | ||
- amb | ||
children: | ||
- oracle | ||
image: ubuntu:16.04 | ||
privileged: true | ||
network_mode: host | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
provisioner: | ||
name: ansible | ||
playbooks: | ||
prepare: ../prepare.yml | ||
converge: ../ultimate-commons/converge.yml | ||
inventory: | ||
host_vars: | ||
oracle-amb-host: | ||
COMMON_HOME_RPC_URL: "http://parity1:8545" | ||
COMMON_FOREIGN_RPC_URL: "http://parity2:8545" | ||
ORACLE_VALIDATOR_ADDRESS: "0xaaB52d66283F7A1D5978bcFcB55721ACB467384b" | ||
ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY: "8e829f695aed89a154550f30262f1529582cc49dc30eff74a6b491359e0230f9" | ||
verifier: | ||
name: testinfra | ||
lint: | ||
name: flake8 | ||
scenario: | ||
name: ultimate-amb | ||
test_sequence: | ||
- cleanup | ||
- destroy | ||
- syntax | ||
- create | ||
- prepare | ||
- converge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.