Skip to content

Commit

Permalink
add license token to CloudStack proxy config tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Ganesh <rahulgab@amazon.com>
  • Loading branch information
Rahul Ganesh committed Feb 24, 2025
1 parent 9d6ac97 commit 7c0313f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/e2e/cloudstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1875,13 +1875,16 @@ func TestCloudStackKubernetes132RedhatProxyConfig(t *testing.T) {
// Proxy Config Multicluster
func TestCloudStackKubernetes128RedhatProxyConfigAPI(t *testing.T) {
cloudstack := framework.NewCloudStack(t)
licenseToken := framework.GetLicenseToken()
licenseToken2 := framework.GetLicenseToken2()
managementCluster := framework.NewClusterE2ETest(
t,
cloudstack,
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithControlPlaneCount(1),
api.WithWorkerNodeCount(1),
api.WithLicenseToken(licenseToken),
),
cloudstack.WithRedhat9Kubernetes128(),
)
Expand All @@ -1896,6 +1899,7 @@ func TestCloudStackKubernetes128RedhatProxyConfigAPI(t *testing.T) {
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithManagementCluster(managementCluster.ClusterName),
api.WithLicenseToken(licenseToken2),
),
cloudstack.WithRedhat9Kubernetes128(),
),
Expand All @@ -1919,13 +1923,16 @@ func TestCloudStackKubernetes128RedhatProxyConfigAPI(t *testing.T) {

func TestCloudStackKubernetes129RedhatProxyConfigAPI(t *testing.T) {
cloudstack := framework.NewCloudStack(t)
licenseToken := framework.GetLicenseToken()
licenseToken2 := framework.GetLicenseToken2()
managementCluster := framework.NewClusterE2ETest(
t,
cloudstack,
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithControlPlaneCount(1),
api.WithWorkerNodeCount(1),
api.WithLicenseToken(licenseToken),
),
cloudstack.WithRedhat9Kubernetes129(),
)
Expand All @@ -1940,6 +1947,7 @@ func TestCloudStackKubernetes129RedhatProxyConfigAPI(t *testing.T) {
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithManagementCluster(managementCluster.ClusterName),
api.WithLicenseToken(licenseToken2),
),
cloudstack.WithRedhat9Kubernetes129(),
),
Expand All @@ -1963,13 +1971,16 @@ func TestCloudStackKubernetes129RedhatProxyConfigAPI(t *testing.T) {

func TestCloudStackKubernetes130RedhatProxyConfigAPI(t *testing.T) {
cloudstack := framework.NewCloudStack(t)
licenseToken := framework.GetLicenseToken()
licenseToken2 := framework.GetLicenseToken2()
managementCluster := framework.NewClusterE2ETest(
t,
cloudstack,
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithControlPlaneCount(1),
api.WithWorkerNodeCount(1),
api.WithLicenseToken(licenseToken),
),
cloudstack.WithRedhat9Kubernetes130(),
)
Expand All @@ -1984,6 +1995,7 @@ func TestCloudStackKubernetes130RedhatProxyConfigAPI(t *testing.T) {
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithManagementCluster(managementCluster.ClusterName),
api.WithLicenseToken(licenseToken2),
),
cloudstack.WithRedhat9Kubernetes130(),
),
Expand All @@ -2007,13 +2019,16 @@ func TestCloudStackKubernetes130RedhatProxyConfigAPI(t *testing.T) {

func TestCloudStackKubernetes131RedhatProxyConfigAPI(t *testing.T) {
cloudstack := framework.NewCloudStack(t)
licenseToken := framework.GetLicenseToken()
licenseToken2 := framework.GetLicenseToken2()
managementCluster := framework.NewClusterE2ETest(
t,
cloudstack,
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithControlPlaneCount(1),
api.WithWorkerNodeCount(1),
api.WithLicenseToken(licenseToken),
),
cloudstack.WithRedhat9Kubernetes131(),
)
Expand All @@ -2028,6 +2043,7 @@ func TestCloudStackKubernetes131RedhatProxyConfigAPI(t *testing.T) {
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithManagementCluster(managementCluster.ClusterName),
api.WithLicenseToken(licenseToken2),
),
cloudstack.WithRedhat9Kubernetes131(),
),
Expand All @@ -2051,13 +2067,16 @@ func TestCloudStackKubernetes131RedhatProxyConfigAPI(t *testing.T) {

func TestCloudStackKubernetes132RedhatProxyConfigAPI(t *testing.T) {
cloudstack := framework.NewCloudStack(t)
licenseToken := framework.GetLicenseToken()
licenseToken2 := framework.GetLicenseToken2()
managementCluster := framework.NewClusterE2ETest(
t,
cloudstack,
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithControlPlaneCount(1),
api.WithWorkerNodeCount(1),
api.WithLicenseToken(licenseToken),
),
cloudstack.WithRedhat9Kubernetes132(),
)
Expand All @@ -2072,6 +2091,7 @@ func TestCloudStackKubernetes132RedhatProxyConfigAPI(t *testing.T) {
).WithClusterConfig(
api.ClusterToConfigFiller(
api.WithManagementCluster(managementCluster.ClusterName),
api.WithLicenseToken(licenseToken2),
),
cloudstack.WithRedhat9Kubernetes132(),
),
Expand Down

0 comments on commit 7c0313f

Please sign in to comment.