Skip to content

Commit 958ab1e

Browse files
committed
CLOUDP-308460 Failed Test: mongodb-atlas-cli-master-TestMain/atlas_search_nodes_e2e/e2e_atlas_clusters
1 parent c20ae3e commit 958ab1e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/e2e/search_nodes_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ func TestSearchNodes(t *testing.T) {
5555
)
5656

5757
resp, err := cmd.CombinedOutput()
58-
respStr := string(resp)
58+
require.NoError(t, err)
59+
resp = bytes.TrimLeft(resp, ".")
60+
var searchNode atlasv2.ApiSearchDeploymentResponse
61+
require.NoError(t, json.Unmarshal(resp, &searchNode))
5962

60-
require.Error(t, err, respStr)
61-
require.Contains(t, respStr, "ATLAS_SEARCH_DEPLOYMENT_DOES_NOT_EXIST", respStr)
63+
require.Empty(t, searchNode.GetId(), "Search node already exists")
6264
})
6365

6466
t.Run("Create search node", func(t *testing.T) {

0 commit comments

Comments
 (0)