Skip to content

Commit 71a4cbc

Browse files
committed
Test HyperCore v9.5.5
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent bba9dee commit 71a4cbc

File tree

8 files changed

+113
-1
lines changed

8 files changed

+113
-1
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Create python venv and clone code.
44

5-
```
5+
```bash
66
mkdir -p ansible_collections/scale_computing/
77
cd ansible_collections/scale_computing/
88

ci-infra/helpers/run-tests.sh

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/bin/bash
2+
3+
# Usage:
4+
# ./ci-infra/helpers/run-tests.sh outdir test-names.txt
5+
# Input:
6+
# - outdir will contain status/progress file, and log files of individual tests
7+
# - (optional) test-names.txt contains integration tests to be run, one per line.
8+
# Output:
9+
# - logs are one test per file, in outdir/log-timestamp/
10+
# - list of succeded/failed tests are in outdir/status.txt
11+
# If line starts with:
12+
# - PEND (or contains just test name), test will be run
13+
# - SKIP means skip this test
14+
# - OK or ERR are set after test is run
15+
16+
set -ue
17+
# set -v
18+
OUTD1="$1"
19+
TNFILE="${2:-}"
20+
21+
TIME=$(date +%Y%m%d-%H%M%S)
22+
TSTATUS="$OUTD1/status.txt"
23+
24+
[ ! -d "$OUTD1" ] && mkdir "$OUTD1"
25+
OUTD2="$OUTD1/log-$TIME"
26+
mkdir "$OUTD2"
27+
28+
if [ ! -f "$TSTATUS" ]
29+
then
30+
if [ -n "$TNFILE" ]
31+
then
32+
/bin/cp "$TNFILE" "$TSTATUS"
33+
else
34+
/bin/ls tests/integration/targets/ >"$TSTATUS"
35+
fi
36+
fi
37+
sed -i 's/^[a-z]/PEND\t&/' "$TSTATUS"
38+
if grep -q -v -E "^(OK|ERR|PEND|SKIP)" "$TSTATUS"
39+
then
40+
echo "ERROR file content $TSTATUS" 1>&2
41+
exit 1
42+
fi
43+
44+
TEST_NAMES=$(grep "^PEND" "$TSTATUS" | awk '{print $2}')
45+
# shellcheck disable=SC2086
46+
echo "Pending tests: "$TEST_NAMES
47+
# shellcheck disable=SC2086
48+
for TN in $TEST_NAMES
49+
do
50+
echo "Running test $TN"
51+
(
52+
echo ansible-test integration --local "$TN"
53+
echo "======================"
54+
set +e
55+
ansible-test integration --local "$TN"
56+
RET=$?
57+
set -e
58+
if [ "$RET" == "0" ]
59+
then
60+
status="OK"
61+
else
62+
status="ERR"
63+
fi
64+
sed -i "s/^PEND\t$TN\$/$status\t$TN/" "$TSTATUS"
65+
echo "======================"
66+
echo "RESULT $status"
67+
) >"$OUTD2/$TN.log" 2>&1
68+
res=$(grep $'\t'"$TN\$" "$TSTATUS" | awk '{print $1}')
69+
echo " result $res $TN"
70+
done

tests/integration/integration_config.yml.j2

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,40 @@ sc_config:
270270
is_supported: True
271271
cluster_name:
272272
is_writable: True
273+
274+
https://10.5.11.206:
275+
<<: *base_cfg
276+
ci_system_name: vsns206
277+
sc_username: admin
278+
sc_password: admin
279+
sc_replication_dest_host: ""
280+
sc_replication_dest_cluster_name: ""
281+
sc_replication_dest_username: ""
282+
sc_replication_dest_password: ""
283+
cluster:
284+
name: VSNS206
285+
support_tunnel:
286+
open: true
287+
code: "4427"
288+
smtp:
289+
<<: *base_smtp
290+
from_address: VSNS206@scalecomputing.com
291+
version_update:
292+
magic_allow_string: "oh-no-no"
293+
vm_shutdown_restart_allow_string: "allow-vm-shutdown-restart-test"
294+
syslog_server:
295+
host: 10.5.11.222
296+
features:
297+
version_update:
298+
current_version: "9.5.5.219383"
299+
next_version: ""
300+
latest_version: ""
301+
can_be_applied: False
302+
old_update_status_present: False
303+
virtual_disk:
304+
is_supported: True
305+
replication_factor: 1
306+
vtpm_disk:
307+
is_supported: True
308+
cluster_name:
309+
is_writable: True

tests/sanity/ignore-2.16.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore.txt

tests/sanity/ignore-2.17.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore.txt

tests/sanity/ignore-2.18.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore.txt

tests/sanity/ignore-2.19.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore.txt

tests/sanity/ignore.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ci-infra/helpers/run-tests.sh shebang

0 commit comments

Comments
 (0)