@@ -25,12 +25,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
25
25
Processes : []ProcessStatus {
26
26
{
27
27
Name : "a" ,
28
- Plan : []string {},
28
+ Plan : []string {"FCV" },
29
29
LastGoalVersionAchieved : 1 ,
30
30
},
31
31
{
32
32
Name : "b" ,
33
- Plan : []string {},
33
+ Plan : []string {"FCV" },
34
34
LastGoalVersionAchieved : 1 ,
35
35
},
36
36
},
@@ -48,12 +48,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
48
48
Processes : []ProcessStatus {
49
49
{
50
50
Name : "a" ,
51
- Plan : []string {},
51
+ Plan : []string {"FCV" },
52
52
LastGoalVersionAchieved : 0 ,
53
53
},
54
54
{
55
55
Name : "b" ,
56
- Plan : []string {},
56
+ Plan : []string {"FCV" },
57
57
LastGoalVersionAchieved : 1 ,
58
58
},
59
59
},
@@ -70,12 +70,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
70
70
Processes : []ProcessStatus {
71
71
{
72
72
Name : "a" ,
73
- Plan : []string {"something-else" },
73
+ Plan : []string {"FCV" , " something-else" },
74
74
LastGoalVersionAchieved : 0 ,
75
75
},
76
76
{
77
77
Name : "b" ,
78
- Plan : []string {automationAgentKubeUpgradePlan },
78
+ Plan : []string {"FCV" , automationAgentKubeUpgradePlan },
79
79
LastGoalVersionAchieved : 1 ,
80
80
},
81
81
},
@@ -93,12 +93,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
93
93
Processes : []ProcessStatus {
94
94
{
95
95
Name : "a" ,
96
- Plan : []string {},
96
+ Plan : []string {"X" , "Y" },
97
97
LastGoalVersionAchieved : 1 ,
98
98
},
99
99
{
100
100
Name : "b" ,
101
- Plan : []string {},
101
+ Plan : []string {"Y" , "Z" },
102
102
LastGoalVersionAchieved : 1 ,
103
103
},
104
104
},
@@ -122,7 +122,7 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
122
122
123
123
func TestCheckAutomationStatusIsGoal_AuthenticationTransitions (t * testing.T ) {
124
124
logger := zap .NewNop ().Sugar ()
125
-
125
+
126
126
tests := []struct {
127
127
name string
128
128
automationStatus * AutomationStatus
@@ -224,10 +224,10 @@ func TestCheckAutomationStatusIsGoal_AuthenticationTransitions(t *testing.T) {
224
224
tt .relevantProcesses ,
225
225
logger ,
226
226
)
227
-
227
+
228
228
assert .Equal (t , tt .expectedReady , ready , "Ready state should match expected" )
229
229
assert .Contains (t , message , tt .expectedMessage , "Message should contain expected text" )
230
-
230
+
231
231
if tt .expectedReady {
232
232
t .Logf ("✅ Process correctly marked as ready: %s" , message )
233
233
} else {
@@ -245,21 +245,21 @@ func TestIsAuthenticationTransitionMove(t *testing.T) {
245
245
"WaitForHealthy" ,
246
246
"InitiateReplSet" ,
247
247
}
248
-
248
+
249
249
nonAuthMoves := []string {
250
250
"SomeOtherMove" ,
251
251
"CreateIndex" ,
252
252
"DropCollection" ,
253
253
"BackupDatabase" ,
254
254
}
255
-
255
+
256
256
for _ , move := range authMoves {
257
257
t .Run ("auth_move_" + move , func (t * testing.T ) {
258
- assert .True (t , isAuthenticationTransitionMove (move ),
258
+ assert .True (t , isAuthenticationTransitionMove (move ),
259
259
"Move %s should be recognized as authentication transition" , move )
260
260
})
261
261
}
262
-
262
+
263
263
for _ , move := range nonAuthMoves {
264
264
t .Run ("non_auth_move_" + move , func (t * testing.T ) {
265
265
assert .False (t , isAuthenticationTransitionMove (move ),
0 commit comments