github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/opensearch-operator/topology/topology_test.go (about) 1 // Copyright (C) 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package topology 5 6 import ( 7 . "github.com/onsi/gomega" 8 9 "github.com/verrazzano/verrazzano/tests/e2e/pkg" 10 "github.com/verrazzano/verrazzano/tests/e2e/pkg/test/framework" 11 ) 12 13 var ( 14 t = framework.NewTestFramework("topology") 15 ) 16 17 var _ = t.AfterEach(func() {}) 18 19 var _ = t.Describe("Configure OpenSearch Topology", func() { 20 21 t.It("can scale the cluster", func() { 22 err := pkg.InstallOrUpdateOpenSearchOperator(t.Logs, 5, 3, 1) 23 Expect(err).ToNot(HaveOccurred()) 24 25 pkg.EventuallyPodsReady(t.Logs, 5, 3, 1) 26 27 err = pkg.InstallOrUpdateOpenSearchOperator(t.Logs, 5, 5, 1) 28 Expect(err).ToNot(HaveOccurred()) 29 30 pkg.EventuallyPodsReady(t.Logs, 5, 5, 1) 31 32 err = pkg.InstallOrUpdateOpenSearchOperator(t.Logs, 3, 3, 2) 33 Expect(err).ToNot(HaveOccurred()) 34 35 pkg.EventuallyPodsReady(t.Logs, 3, 3, 2) 36 }) 37 })