-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OADP-4291 Add no-pod/immediate bind VM tests. (#1479)
* OADP-4291 Add no-pod/immediate bind VM tests. Signed-off-by: Matthew Arnold <[email protected]> * Silence lint error. Signed-off-by: Matthew Arnold <[email protected]> * Add immediate mode storage class and VM templates. Signed-off-by: Matthew Arnold <[email protected]> * Fix duplicated VM test. Signed-off-by: Matthew Arnold <[email protected]> * Use UninstallApplication instead of delete. Signed-off-by: Matthew Arnold <[email protected]> * Expect error on no-pod immediate datamover test. Signed-off-by: Matthew Arnold <[email protected]> * Add another expected VM test error. Signed-off-by: Matthew Arnold <[email protected]> * Try VM tests without ginkgo.Ordered. Signed-off-by: Matthew Arnold <[email protected]> * Replace immediate storage class YAML with live copy. Signed-off-by: Matthew Arnold <[email protected]> * Restore order. Signed-off-by: Matthew Arnold <[email protected]> * Clean up lint errors. Signed-off-by: Matthew Arnold <[email protected]> * Address more review comments. Signed-off-by: Matthew Arnold <[email protected]> * Remove VM test that's expected to fail. There is no fix for this yet. Signed-off-by: Matthew Arnold <[email protected]> * Clean up after rebase. Remove expected restore errors and change immediate-mode CirrOS template PVC size. Signed-off-by: Matthew Arnold <[email protected]> --------- Signed-off-by: Matthew Arnold <[email protected]>
- Loading branch information
Showing
4 changed files
with
151 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tests/e2e/sample-applications/virtual-machines/cirros-test/cirros-test-immediate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
- apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: cirros-test | ||
namespace: cirros-test | ||
spec: | ||
dataVolumeTemplates: | ||
- apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: cirros-test-disk | ||
spec: | ||
sourceRef: | ||
kind: DataSource | ||
name: cirros | ||
namespace: openshift-virtualization-os-images | ||
storage: | ||
resources: | ||
requests: | ||
storage: 150Mi | ||
storageClassName: test-sc-immediate | ||
running: true | ||
template: | ||
metadata: | ||
annotations: | ||
vm.kubevirt.io/flavor: tiny | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: rootdisk | ||
firmware: | ||
bootloader: | ||
efi: | ||
secureBoot: false | ||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: 256Mi | ||
volumes: | ||
- name: rootdisk | ||
persistentVolumeClaim: | ||
claimName: cirros-test-disk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters