Skip to content

Commit 92aa4ed

Browse files
committed
add basic Rally scenarios
Note: SSH scenario does not currently work due to dependency on cinder. Committing it as a starting point for further work.
1 parent f8bbd64 commit 92aa4ed

File tree

5 files changed

+2128
-0
lines changed

5 files changed

+2128
-0
lines changed

python/understack-tests/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.venv
2+
uc_*.json
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[project]
2+
name = "understack-tests"
3+
version = "0.1.0"
4+
description = "Integration tests for Undercloud"
5+
requires-python = ">=3.12"
6+
dependencies = [
7+
"rally-openstack>=3.0.0",
8+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
title: "Provision Ubuntu server, log in, check uptime then destroy."
3+
subtasks:
4+
- title: "Boot and delete"
5+
workloads:
6+
- scenario:
7+
VMTasks.boot_runcommand_delete:
8+
flavor:
9+
name: gp2.small
10+
image:
11+
name: ^Ubuntu 24.*$
12+
config_drive: true
13+
force_delete: false
14+
username: ubuntu
15+
key_name: my-rally-key
16+
command:
17+
script_inline: |
18+
echo "Hello hello!"
19+
hostname
20+
uptime
21+
interpreter: "/bin/sh"
22+
contexts:
23+
network:
24+
start_cidr: 192.168.91.0/24
25+
dns_nameservers: [8.8.8.8]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
title: "Create the network, provision a gp2.small Ubuntu server and delete it afterwards."
3+
subtasks:
4+
- title: "Boot and delete"
5+
workloads:
6+
- scenario:
7+
NovaServers.boot_and_delete_server:
8+
flavor:
9+
name: gp2.small
10+
image:
11+
name: ^Ubuntu 24.*$
12+
config_drive: true
13+
force_delete: false
14+
contexts:
15+
network:
16+
start_cidr: 192.168.91.0/24
17+
dns_nameservers: [8.8.8.8]

0 commit comments

Comments
 (0)