Skip to content

Commit

Permalink
Don't use ~ (home dir) in antctl e2e tests
Browse files Browse the repository at this point in the history
'~' is not expanded with docker exec

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas committed Jul 3, 2023
1 parent 5b61b5b commit c502128
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/antctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ func copyAntctlKubeconfigToNode(data *TestData, nodeName string, kubeconfigPath
// Pod.
func testAntctlControllerRemoteAccess(t *testing.T, data *TestData) {
antctlName := "antctl"
nodeAntctlPath := "~/antctl"
nodeAntctlPath := "/tmp/antctl"
if testOptions.enableCoverage {
antctlName = "antctl-coverage"
nodeAntctlPath = "~/antctl-coverage"
nodeAntctlPath = "/tmp/antctl-coverage"
}
require.NoError(t, copyAntctlToNode(data, controlPlaneNodeName(), antctlName, nodeAntctlPath), "failed to copy antctl to control-plane Node")
nodeAntctlKubeconfigPath := "~/antctl-kubeconfig"
nodeAntctlKubeconfigPath := "/tmp/antctl-kubeconfig"
require.NoError(t, copyAntctlKubeconfigToNode(data, controlPlaneNodeName(), nodeAntctlKubeconfigPath), "failed to copy antctl Kubeconfig to control-plane Node")

testCmds := []cmdAndReturnCode{}
Expand Down Expand Up @@ -339,13 +339,13 @@ func runAntctProxy(
func testAntctlProxy(t *testing.T, data *TestData) {
const proxyPort = 8001
antctlName := "antctl"
nodeAntctlPath := "~/antctl"
nodeAntctlPath := "/tmp/antctl"
if testOptions.enableCoverage {
antctlName = "antctl-coverage"
nodeAntctlPath = "~/antctl-coverage"
nodeAntctlPath = "/tmp/antctl-coverage"
}
require.NoError(t, copyAntctlToNode(data, controlPlaneNodeName(), antctlName, nodeAntctlPath), "failed to copy antctl to control-plane Node")
nodeAntctlKubeconfigPath := "~/antctl-kubeconfig"
nodeAntctlKubeconfigPath := "/tmp/antctl-kubeconfig"
require.NoError(t, copyAntctlKubeconfigToNode(data, controlPlaneNodeName(), nodeAntctlKubeconfigPath), "failed to copy antctl Kubeconfig to control-plane Node")

// getEndpointStatus will return "Success", "Failure", or the empty string when out is not a
Expand Down

0 comments on commit c502128

Please sign in to comment.