Skip to content

Commit f75b01c

Browse files
committed
fix unit test
1 parent b4fc956 commit f75b01c

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

controllers/om/automation_status_test.go

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,6 @@ func TestCheckAutomationStatusIsGoal_AuthenticationTransitions(t *testing.T) {
146146
expectedReady: false,
147147
expectedMessage: "authentication transitions in progress for 1 processes",
148148
},
149-
{
150-
name: "should wait for InitiateReplSet move to complete",
151-
automationStatus: &AutomationStatus{
152-
GoalVersion: 3,
153-
Processes: []ProcessStatus{
154-
{
155-
Name: "rs0_0",
156-
LastGoalVersionAchieved: 3,
157-
Plan: []string{"InitiateReplSet"},
158-
},
159-
},
160-
},
161-
relevantProcesses: []string{"rs0_0"},
162-
expectedReady: false,
163-
expectedMessage: "authentication transitions in progress for 1 processes",
164-
},
165149
{
166150
name: "should be ready when authentication transitions are complete",
167151
automationStatus: &AutomationStatus{
@@ -191,7 +175,7 @@ func TestCheckAutomationStatusIsGoal_AuthenticationTransitions(t *testing.T) {
191175
{
192176
Name: "rs0_1",
193177
LastGoalVersionAchieved: 7,
194-
Plan: []string{"RestartMongod"}, // Auth-related move in progress
178+
Plan: []string{"WaitAuthUpdate"}, // Auth-related move in progress
195179
},
196180
},
197181
},
@@ -239,11 +223,8 @@ func TestCheckAutomationStatusIsGoal_AuthenticationTransitions(t *testing.T) {
239223

240224
func TestIsAuthenticationTransitionMove(t *testing.T) {
241225
authMoves := []string{
242-
"RestartMongod",
243226
"UpdateAuth",
244-
"UpdateConfig",
245-
"WaitForHealthy",
246-
"InitiateReplSet",
227+
"WaitAuthUpdate",
247228
}
248229

249230
nonAuthMoves := []string{

0 commit comments

Comments
 (0)