@@ -25,12 +25,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
2525 Processes : []ProcessStatus {
2626 {
2727 Name : "a" ,
28- Plan : []string {},
28+ Plan : []string {"FCV" },
2929 LastGoalVersionAchieved : 1 ,
3030 },
3131 {
3232 Name : "b" ,
33- Plan : []string {},
33+ Plan : []string {"FCV" },
3434 LastGoalVersionAchieved : 1 ,
3535 },
3636 },
@@ -48,12 +48,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
4848 Processes : []ProcessStatus {
4949 {
5050 Name : "a" ,
51- Plan : []string {},
51+ Plan : []string {"FCV" },
5252 LastGoalVersionAchieved : 0 ,
5353 },
5454 {
5555 Name : "b" ,
56- Plan : []string {},
56+ Plan : []string {"FCV" },
5757 LastGoalVersionAchieved : 1 ,
5858 },
5959 },
@@ -70,12 +70,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
7070 Processes : []ProcessStatus {
7171 {
7272 Name : "a" ,
73- Plan : []string {"something-else" },
73+ Plan : []string {"FCV" , " something-else" },
7474 LastGoalVersionAchieved : 0 ,
7575 },
7676 {
7777 Name : "b" ,
78- Plan : []string {automationAgentKubeUpgradePlan },
78+ Plan : []string {"FCV" , automationAgentKubeUpgradePlan },
7979 LastGoalVersionAchieved : 1 ,
8080 },
8181 },
@@ -93,12 +93,12 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
9393 Processes : []ProcessStatus {
9494 {
9595 Name : "a" ,
96- Plan : []string {},
96+ Plan : []string {"X" , "Y" },
9797 LastGoalVersionAchieved : 1 ,
9898 },
9999 {
100100 Name : "b" ,
101- Plan : []string {},
101+ Plan : []string {"Y" , "Z" },
102102 LastGoalVersionAchieved : 1 ,
103103 },
104104 },
@@ -122,7 +122,7 @@ func TestCheckAutomationStatusIsGoal(t *testing.T) {
122122
123123func TestCheckAutomationStatusIsGoal_AuthenticationTransitions (t * testing.T ) {
124124 logger := zap .NewNop ().Sugar ()
125-
125+
126126 tests := []struct {
127127 name string
128128 automationStatus * AutomationStatus
@@ -224,10 +224,10 @@ func TestCheckAutomationStatusIsGoal_AuthenticationTransitions(t *testing.T) {
224224 tt .relevantProcesses ,
225225 logger ,
226226 )
227-
227+
228228 assert .Equal (t , tt .expectedReady , ready , "Ready state should match expected" )
229229 assert .Contains (t , message , tt .expectedMessage , "Message should contain expected text" )
230-
230+
231231 if tt .expectedReady {
232232 t .Logf ("✅ Process correctly marked as ready: %s" , message )
233233 } else {
@@ -245,21 +245,21 @@ func TestIsAuthenticationTransitionMove(t *testing.T) {
245245 "WaitForHealthy" ,
246246 "InitiateReplSet" ,
247247 }
248-
248+
249249 nonAuthMoves := []string {
250250 "SomeOtherMove" ,
251251 "CreateIndex" ,
252252 "DropCollection" ,
253253 "BackupDatabase" ,
254254 }
255-
255+
256256 for _ , move := range authMoves {
257257 t .Run ("auth_move_" + move , func (t * testing.T ) {
258- assert .True (t , isAuthenticationTransitionMove (move ),
258+ assert .True (t , isAuthenticationTransitionMove (move ),
259259 "Move %s should be recognized as authentication transition" , move )
260260 })
261261 }
262-
262+
263263 for _ , move := range nonAuthMoves {
264264 t .Run ("non_auth_move_" + move , func (t * testing.T ) {
265265 assert .False (t , isAuthenticationTransitionMove (move ),
0 commit comments