Fix TestIntegrations/TestGetHostSoftwareUpdatedAt (#20400)

Fix failing test `TestIntegrations/TestGetHostSoftwareUpdatedAt`
This commit is contained in:
Victor Lyuboslavsky 2024-07-11 16:42:14 -05:00 committed by GitHub
parent 80b11d873d
commit df78d83e2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7963,7 +7963,7 @@ func (s *integrationTestSuite) TestGetHostSoftwareUpdatedAt() {
LabelUpdatedAt: time.Now(),
PolicyUpdatedAt: time.Now(),
SeenTime: time.Now(),
NodeKey: ptr.String(t.Name() + "1"),
NodeKey: ptr.String(strings.ReplaceAll(t.Name(), "/", "_") + "1"),
UUID: t.Name() + "1",
Hostname: t.Name() + "foo.local",
PrimaryIP: "192.168.1.1",