Skip to content

Commit

Permalink
Run P1Prov in parallel nodes (#193)
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan Pinjani <[email protected]>
  • Loading branch information
cpinjani authored Oct 28, 2024
1 parent ed80c65 commit fa3f279
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ e2e-p1-import-tests: deps ## Run the 'P1Import' test suite for a given ${PROVIDE
ginkgo ${STANDARD_TEST_OPTIONS} --nodes 2 --focus "P1Import" ./hosted/${PROVIDER}/p1/

e2e-p1-provisioning-tests: deps ## Run the 'P1Provisioning' test suite for a given ${PROVIDER}
ginkgo ${STANDARD_TEST_OPTIONS} --focus "P1Provisioning" ./hosted/${PROVIDER}/p1/
ginkgo ${STANDARD_TEST_OPTIONS} --nodes 2 --focus "P1Provisioning" ./hosted/${PROVIDER}/p1/

e2e-sync-import-tests: deps ## Run "SyncImport" test suite for a given ${PROVIDER}
ginkgo ${STANDARD_TEST_OPTIONS} --nodes 2 --focus "SyncImport" ./hosted/${PROVIDER}/p1
Expand Down
3 changes: 2 additions & 1 deletion hosted/aks/p1/p1_provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ var _ = Describe("P1Provisioning", func() {

})

It("should successfully create 2 clusters in the same RG", func() {
XIt("should successfully create 2 clusters in the same RG", func() {
// TODO: Refer https://github.com/rancher/hosted-providers-e2e/issues/192
testCaseID = 217
rgName := namegen.AppendRandomString("custom-aks-rg")
updateFunc := func(aksConfig *aks.ClusterConfig) {
Expand Down
10 changes: 5 additions & 5 deletions hosted/aks/p1/p1_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ import (
)

var (
ctx helpers.Context
clusterName string
testCaseID int64
location = helpers.GetAKSLocation()
ctx helpers.Context
clusterName, location string
testCaseID int64
)

func TestP1(t *testing.T) {
Expand All @@ -39,6 +38,7 @@ var _ = SynchronizedBeforeSuite(func() []byte {

var _ = BeforeEach(func() {
clusterName = namegen.AppendRandomString(helpers.ClusterNamePrefix)
location = helpers.GetAKSLocation()
})

var _ = ReportBeforeEach(func(report SpecReport) {
Expand Down Expand Up @@ -494,7 +494,7 @@ func noAvailabilityZoneP0Checks(cluster *management.Cluster, client *rancher.Cli

By("Adding a nodepool", func() {
initialNPCount := len(cluster.AKSConfig.NodePools)
newNPName := fmt.Sprintf("newNPName%s", namegen.RandStringLower(3))
newNPName := fmt.Sprintf("newpool%s", namegen.RandStringLower(3))
updateFunc := func(cluster *management.Cluster) {
nodepools := cluster.AKSConfig.NodePools
npTemplate := nodepools[0]
Expand Down

0 comments on commit fa3f279

Please sign in to comment.