Commit Graph

61 Commits

Author SHA1 Message Date
tavni
05778eecff CDI e2e negative tests
Signed-off-by: tavni <tavni@redhat.com>
2018-10-17 11:04:41 +03:00
j-griffith
537bcd02b0 Update unit and functional tests 2018-10-12 22:07:43 -06:00
Alexander Wels
2c327088cc Clean up some code and spelling issues.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-27 14:09:07 -04:00
tavni
ce22c48834 CDI controller code dedupe
Signed-off-by: tavni <tavni@redhat.com>
2018-09-17 19:44:09 +03:00
John Griffith
c455577cca Fix lint errors on common package (#449)
This change just updates the common package to pass golint.  Of course
that has some reaching implications into other packages with renaming of
constants.

I've intentionally kept this patch set to the bare minimum for the lint
test, I do think that we should put some effort into our use of
constants (especially those in common.go) in the future.

Ideally we'd declare constants where they're used, and we wouldn't
export them if they don't need to be.  There are some in here that
are only used in one or two packages, and that can be cleaned up pretty
easily however it's likely that there might be plans to use them
elsewhere in the future.
2018-09-10 09:14:09 -04:00
Jeff Vance
a450005167 NewFrameworkOrDie (#399)
* add NewFrameworkOrDie

* Config{} defaults

* review comments

* init fmt fix
2018-08-31 16:11:14 -05:00
David Vossel
d84ba95e75 Clone functional tests for DataVolume (#384)
* Make generic function for populating and verifying pvc data

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Add DataVolume PVC source functional tests

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Make DataVolume PVC variable consistent with other sources

Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-31 08:39:50 -04:00
Alexander Wels
01cfa85dd1 Configure STDCI
- Added oVirt STDCI configuration files.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-30 15:50:36 -04:00
Adam Litke
78751fad46 tests: Fix PR #386 (#388)
Mismatched function names: PodNode should be PodGetNode.

Signed-off-by: Adam Litke <alitke@redhat.com>
2018-08-29 13:39:52 -07:00
Adam Litke
facfe372b6 Fix clone tests (#386)
* test: fix pvc annotation check

The clone controller uses a slightly different annotation on PVCs.  The
test was using the form used by the import controller.  Quick fix.

Signed-off-by: Adam Litke <alitke@redhat.com>

* tests: Pods must be polled to determine their node

When checking the node on which a pod is scheduled we must use an
Eventually assertion and poll.  Otherwise, tests could flake when pod
scheduling is delayed.

Signed-off-by: Adam Litke <alitke@redhat.com>
2018-08-29 15:59:28 -04:00
Alexander Wels
ac638c8107 Add cloner e2e tests (#372)
- Positive test clone from namespace into same namespace.
- Positive test clone from namespace into other namespace.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-28 14:12:07 -07:00