Skip to content

Commit

Permalink
openstack: drop spread tests
Browse files Browse the repository at this point in the history
devstack has many issues and cannot fully replicate a normal
openstack cluster for testing.

Signed-off-by: Zeyad Gouda <[email protected]>
  • Loading branch information
ZeyadYasser committed Mar 25, 2024
1 parent 027ba48 commit 58c7fad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Run tests
run: |
spread google:ubuntu-20.04-64: google:ubuntu-22.04-64-devstack:tests/openstack
spread google:
- name: Discard spread workers
if: always()
Expand Down
18 changes: 3 additions & 15 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ backends:
- ubuntu-20.04-64:
image: ubuntu-2004-64-virt-enabled
workers: 1
- ubuntu-22.04-64-devstack:
image: ubuntu-jammy-devstack
plan: n2-standard-2
storage: 20G
workers: 1

qemu:
systems:
Expand All @@ -36,29 +31,22 @@ backends:
password: ubuntu

exclude:
- .git
- .spread-reuse.yaml
- tests/.spread-reuse.yaml
- $CACHE_DISABLED


path: /home/test/src/github.com/snapcore/spread

suites:
tests/:
summary: Integration tests

prepare: |
DEBS="git qemu-kvm tree"
DEBS="git qemu-kvm lxd tree"
if ! dpkg -l $DEBS; then
apt update
apt install -y $DEBS
fi
if ! snap list lxd; then
snap install lxd
fi
# Cache is only available if SEND_CACHE=1 is set.
mkdir -p tests/cache
Expand Down Expand Up @@ -90,8 +78,8 @@ prepare: |
# - Export image: > lxc image export <IAMGE-ID> tests/cache/lxd-ubuntu-16.04
# - Extract metadata: > cd tests/cache/lxd-ubuntu-16.04 && tar -xvf <METADATA-FILE>
if [ -d tests/cache/lxd-ubuntu-16.04 ]; then
if ! lxd.lxc image list | grep '16\.04'; then
lxd.lxc image import tests/cache/lxd-ubuntu-16.04
if ! lxc image list | grep '16\.04'; then
lxc image import tests/cache/lxd-ubuntu-16.04
fi
fi
# Start lxd instance
Expand Down
4 changes: 0 additions & 4 deletions tests/openstack/checks/main/task.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions tests/openstack/spread.yaml

This file was deleted.

117 changes: 0 additions & 117 deletions tests/openstack/task.yaml

This file was deleted.

0 comments on commit 58c7fad

Please sign in to comment.