Skip to content

Commit

Permalink
Implement CPLB inttest
Browse files Browse the repository at this point in the history
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
  • Loading branch information
juanluisvaladas committed Mar 19, 2024
1 parent 6b27afc commit 48ca31a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions inttest/Makefile.variables
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ smoketests := \
check-cnichange \
check-configchange \
check-containerdimports \
check-cplb \
check-ctr \
check-custom-cidrs \
check-customca \
Expand Down
10 changes: 5 additions & 5 deletions inttest/common/bootloosesuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -1286,22 +1286,22 @@ func newSuiteContext(t *testing.T) (context.Context, context.CancelCauseFunc) {

// GetControllerIPAddress returns controller ip address
func (s *BootlooseSuite) GetControllerIPAddress(idx int) string {
return s.getIPAddress(s.ControllerNode(idx))
return s.GetIPAddress(s.ControllerNode(idx))
}

func (s *BootlooseSuite) GetWorkerIPAddress(idx int) string {
return s.getIPAddress(s.WorkerNode(idx))
return s.GetIPAddress(s.WorkerNode(idx))
}

func (s *BootlooseSuite) GetLBAddress() string {
return s.getIPAddress(s.LBNode())
return s.GetIPAddress(s.LBNode())
}

func (s *BootlooseSuite) GetExternalEtcdIPAddress() string {
return s.getIPAddress(s.ExternalEtcdNode())
return s.GetIPAddress(s.ExternalEtcdNode())
}

func (s *BootlooseSuite) getIPAddress(nodeName string) string {
func (s *BootlooseSuite) GetIPAddress(nodeName string) string {
ssh, err := s.SSH(s.Context(), nodeName)
s.Require().NoError(err)
defer ssh.Disconnect()
Expand Down

0 comments on commit 48ca31a

Please sign in to comment.