From c3883b65160ce3f95c053874f26d9d107e073501 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 13 Sep 2022 15:29:06 -0700 Subject: [PATCH] Remove old CreateCluster function Signed-off-by: Derek Nola --- tests/e2e/testutils.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/e2e/testutils.go b/tests/e2e/testutils.go index ab1ffb29bc..92de7007aa 100644 --- a/tests/e2e/testutils.go +++ b/tests/e2e/testutils.go @@ -64,25 +64,6 @@ func genNodeEnvs(nodeOS string, serverCount, agentCount int) ([]string, []string return serverNodeNames, agentNodeNames, nodeEnvs } -func OldCreateCluster(nodeOS string, serverCount, agentCount int) ([]string, []string, error) { - - serverNodeNames, agentNodeNames, nodeEnvs := genNodeEnvs(nodeOS, serverCount, agentCount) - - var testOptions string - for _, env := range os.Environ() { - if strings.HasPrefix(env, "E2E_") { - testOptions += " " + env - } - } - - cmd := fmt.Sprintf(`%s %s vagrant up &> vagrant.log`, nodeEnvs, testOptions) - fmt.Println(cmd) - if _, err := RunCommand(cmd); err != nil { - return nil, nil, fmt.Errorf("failed creating cluster: %s: %v", cmd, err) - } - return serverNodeNames, agentNodeNames, nil -} - func CreateCluster(nodeOS string, serverCount, agentCount int) ([]string, []string, error) { serverNodeNames, agentNodeNames, nodeEnvs := genNodeEnvs(nodeOS, serverCount, agentCount)