-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package e2e | ||
|
||
import "github.com/aws/eks-anywhere/pkg/api/v1alpha1" | ||
|
||
var kubeVersions = []v1alpha1.KubernetesVersion{v1alpha1.Kube128, v1alpha1.Kube129, v1alpha1.Kube130} | ||
|
||
// Subtest is an interface to represent a test case. | ||
type Subtest interface { | ||
GetName() string | ||
} | ||
|
||
// Suites contain all test suites. The key is the suite suffix. | ||
var Suites = map[string][]Subtest{ | ||
"SimpleFlowSuite": {}, | ||
} | ||
|
||
// SimpleFlowTest is a struct to represent a simple flow test. | ||
type SimpleFlowTest struct { | ||
KubeVersion v1alpha1.KubernetesVersion | ||
} | ||
|
||
// GetName return the test case name. | ||
func (st *SimpleFlowTest) GetName() string { | ||
return string(st.KubeVersion) | ||
} | ||
|
||
func init() { | ||
for _, k := range kubeVersions { | ||
Suites["SimpleFlowSuite"] = append(Suites["SimpleFlowSuite"], &SimpleFlowTest{KubeVersion: k}) | ||
} | ||
} |
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