Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/integration/auxiliarycommandserver/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,17 @@ func (s *AuxiliaryTestSuite) TestAuxiliary_Test4_FileWatcher() {
)
s.Require().NoError(err)

// Check command server has 2 ManagementPlaneResponses from updating a file on disk
// Check command server has 1 ManagementPlaneResponses from updating a file on disk
commandResponses := utils.ManagementPlaneResponses(s.T(), 1, utils.MockManagementPlaneAPIAddress)
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, commandResponses[0].GetCommandResponse().GetStatus())
s.Equal("Successfully updated all files", commandResponses[0].GetCommandResponse().GetMessage())

// Check auxiliary server has 2 ManagementPlaneResponses from updating a file on disk
auxResponses := utils.ManagementPlaneResponses(s.T(), 1, utils.AuxiliaryMockManagementPlaneAPIAddress)
auxResponses := utils.ManagementPlaneResponses(s.T(), 2, utils.AuxiliaryMockManagementPlaneAPIAddress)
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, auxResponses[0].GetCommandResponse().GetStatus())
s.Equal("Successfully updated all files", auxResponses[0].GetCommandResponse().GetMessage())
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, auxResponses[1].GetCommandResponse().GetStatus())
s.Equal("Successfully updated all files", auxResponses[1].GetCommandResponse().GetMessage())
slog.Info("finished auxiliary command server file watcher test")
}

Expand Down
Loading