Skip to content

Commit

Permalink
Disable flaky assertion (#3079) (#3088)
Browse files Browse the repository at this point in the history
(cherry picked from commit 28019e3)

Co-authored-by: Shaunak Kashyap <[email protected]>
  • Loading branch information
mergify[bot] and ycombinator authored Jul 17, 2023
1 parent 84130b8 commit bbbe77e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testing/integration/fqdn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ func TestFQDN(t *testing.T) {
t.Log("Verify that agent name is short hostname again")
verifyAgentName(t, shortName, info.KibanaClient)

t.Log("Verify that hostname in `logs-*` and `metrics-*` is short hostname again")
verifyHostNameInIndices(t, "logs-*", shortName, info.ESClient)
verifyHostNameInIndices(t, "metrics-*", shortName, info.ESClient)
// TODO: Re-enable assertion once https://github.com/elastic/elastic-agent/issues/3078 is
// investigated for root cause and resolved.
//t.Log("Verify that hostname in `logs-*` and `metrics-*` is short hostname again")
//verifyHostNameInIndices(t, "logs-*", shortName, info.ESClient)
//verifyHostNameInIndices(t, "metrics-*", shortName, info.ESClient)
}

func verifyAgentName(t *testing.T, hostname string, kibClient *kibana.Client) *kibana.AgentExisting {
Expand Down

0 comments on commit bbbe77e

Please sign in to comment.