ci: integration tests

Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
This commit is contained in:
Guido Grazioli
2023-07-27 14:50:08 +02:00
parent f5b8372a75
commit 198d885b8f
26 changed files with 626 additions and 703 deletions

View File

@@ -1,4 +1,5 @@
- hosts: localhost
- name: Playbook creating a virtual machine with data volume
hosts: localhost
tasks:
- name: Create VM
kubevirt.core.kubevirt_vm:
@@ -20,7 +21,7 @@
url: docker://quay.io/containerdisks/fedora:latest
storage:
accessModes:
- ReadWriteOnce
- ReadWriteOnce
resources:
requests:
storage: 5Gi
@@ -28,14 +29,14 @@
domain:
devices: {}
volumes:
- dataVolume:
name: testdv
name: datavolume
- cloudInitNoCloud:
userData: |-
#cloud-config
# The default username is: fedora
ssh_authorized_keys:
- ssh-ed25519 AAAA...
name: cloudinit
- dataVolume:
name: testdv
name: datavolume
- cloudInitNoCloud:
userData: |-
#cloud-config
# The default username is: fedora
ssh_authorized_keys:
- ssh-ed25519 AAAA...
name: cloudinit
wait: yes

View File

@@ -1,4 +1,5 @@
- hosts: localhost
- name: Playbook instantiating a virtual machine
hosts: localhost
tasks:
- name: Create VM
kubevirt.core.kubevirt_vm:

View File

@@ -1,4 +1,5 @@
- hosts: localhost
- name: Playbook creating a virtual machine with multus network
hosts: localhost
tasks:
- name: Create VM
kubevirt.core.kubevirt_vm:
@@ -15,25 +16,25 @@
domain:
devices:
interfaces:
- name: default
masquerade: {}
- name: bridge-network
bridge: {}
- name: default
masquerade: {}
- name: bridge-network
bridge: {}
networks:
- name: default
pod: {}
- name: bridge-network
multus:
networkName: kindexgw
- name: default
pod: {}
- name: bridge-network
multus:
networkName: kindexgw
volumes:
- containerDisk:
image: quay.io/containerdisks/fedora:latest
name: containerdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
# The default username is: fedora
ssh_authorized_keys:
- ssh-ed25519 AAAA...
name: cloudinit
- containerDisk:
image: quay.io/containerdisks/fedora:latest
name: containerdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
# The default username is: fedora
ssh_authorized_keys:
- ssh-ed25519 AAAA...
name: cloudinit
wait: yes

View File

@@ -1,4 +1,5 @@
- hosts: localhost
- name: Playbook terminating a virtual machine with data volume
hosts: localhost
tasks:
- name: Delete VM
kubevirt.core.kubevirt_vm:

View File

@@ -1,4 +1,5 @@
- hosts: localhost
- name: Playbook terminating a virtual machine
hosts: localhost
tasks:
- name: Delete VM
kubevirt.core.kubevirt_vm:

View File

@@ -2,4 +2,4 @@ plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
use_service: yes
use_service: yes