velero/test/e2e
David L. Smith-Uchida aa47309700
Add an E2E test framework to test Velero across cloud platforms (#3060)
* Basic end-to-end tests, generate data/backup/remove/restore/verify
Uses distributed data generator

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Moved backup/restore into velero_utils, started using a name for the restore

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* remove checked in binary and update test/e2e Makefile

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>

* Ran make update

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Save

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>

* Ran make update

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Basic end-to-end test, generate data/backup/remove/restore/verify
Uses distributed data generator

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Changed tests/e2e Makefile to just use go get to install ginkgo in the GOPATH/bin
Updated to ginkgo 1.14.2
Put cobra back to v0.0.7

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Added CLOUD_PLATFORM env variable to Makefile, updated README, removed ginkgo from .gitignore

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* choose velero CLI binary based on local env

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>

Co-authored-by: Ashish Amarnath <ashisham@vmware.com>
2020-11-24 14:12:52 -05:00
..
Makefile Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
README.md Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
aws_test.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
azure_test.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
backup_test.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
common.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
e2e_suite_test.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
kibishii_utils.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
kind_test.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00
velero_utils.go Add an E2E test framework to test Velero across cloud platforms (#3060) 2020-11-24 14:12:52 -05:00

README.md

End-to-end tests

Document for running Velero end-to-end test suite.

Command line flags for E2E tests

Command line flags can be set after

velerocli - the velero CLI to use
kibishiins - the namespace to install kibishii in
cloudplatform - the cloud platform the tests will be run against (aws, vsphere, azure)

Running tests locally

  1. From Velero repository root

    make test-e2e
    
  2. From test/e2e/ directory

    make run
    

Running tests based on cloud platforms

  1. Running Velero E2E tests on KinD

    CLOUD_PLATFORM=kind make test-e2e
    
  2. Running Velero E2E tests on AWS

    CLOUD_PLATFORM=aws make test-e2e
    
  3. Running Velero E2E tests on Azure

    CLOUD_PLATFORM=azure make test-e2e