From 5d8a1deda13ff1e8ba09b410269bebbc0900fd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 28 Sep 2021 09:19:01 +0200 Subject: [PATCH] ci: fix mgr test for host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `mgr host ls` looks like: `"addr": "10.1.0.27/fv-az244-362", "hostname": "fv-az244-362"` Previously, we were picking `addr` which contains both IP and hostname where the k8snode has the hostname only. So let's use the Hostname from the mgr command output instead. Signed-off-by: Sébastien Han --- tests/integration/ceph_mgr_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/ceph_mgr_test.go b/tests/integration/ceph_mgr_test.go index 8507f756b..d4238262b 100644 --- a/tests/integration/ceph_mgr_test.go +++ b/tests/integration/ceph_mgr_test.go @@ -250,7 +250,7 @@ func (s *CephMgrSuite) TestHostLs() { var hostOutput []string for _, hostItem := range hostsList { - hostOutput = append(hostOutput, hostItem.Addr) + hostOutput = append(hostOutput, hostItem.Hostname) } sort.Strings(hostOutput)