|
| 1 | +Molecule tests for the role. |
| 2 | + |
| 3 | +# Test Matrix |
| 4 | + |
| 5 | +Test options "flow down" thro table unless changed. |
| 6 | + |
| 7 | +test | # partitions | # groups in partitions? | other |
| 8 | +--- | --- | --- | --- |
| 9 | +test1 | 1 | N | 2x compute node, sequential names (default test) |
| 10 | +test1b | 1 | N | 1x compute node |
| 11 | +test1c | 1 | N | 2x compute nodes, nonsequential names |
| 12 | +test2 | 2 | N | 4x compute node, sequential names |
| 13 | +test3 | 1 | Y | |
| 14 | + |
| 15 | +# Local Installation & Running |
| 16 | + |
| 17 | +Local installation on a Centos7 machine looks like: |
| 18 | + |
| 19 | + sudo yum install -y gcc python3-pip python3-devel openssl-devel python3-libselinux |
| 20 | + sudo yum install -y docker-ce docker-ce-cli containerd.io |
| 21 | + sudo yum install -y yum-utils |
| 22 | + sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
| 23 | + sudo yum install -y docker-ce docker-ce-cli containerd.io |
| 24 | + python3 -m pip install --upgrade --user pip |
| 25 | + python3 -m pip install --upgrade --user setuptools |
| 26 | + python3 -m pip install --upgrade --user "molecule[lint]" |
| 27 | + python3 -m pip install --upgrade --user docker |
| 28 | + |
| 29 | + sudo systemctl start docker |
| 30 | + sudo usermod -aG docker ${USER} |
| 31 | + newgrp docker |
| 32 | + docker run hello-world # test docker works without sudo |
| 33 | + |
| 34 | + sudo yum install -y git |
| 35 | + git clone [email protected]:stackhpc/ansible-role-openhpc.git |
| 36 | + cd ansible-role-openhpc/ |
| 37 | + |
| 38 | +Then to run all tests: |
| 39 | + |
| 40 | + cd ansible-role-openhpc/ |
| 41 | + molecule test --all |
| 42 | + |
0 commit comments