test/main: update registrations test

There was previously a bug in the Insights client configuration stage
which omitted a key [1]. A testcase hardcoded this invalid format. Let's
update it to the expected value.

[1]: 389b629ce2

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-05-28 08:27:26 +02:00 committed by Achilleas Koutsou
parent 89ce20101b
commit 33f7822c28

View file

@ -1048,7 +1048,7 @@ func TestManifestIntegrationWithRegistrations(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
// XXX: manifesttest really needs to grow more helpers // XXX: manifesttest really needs to grow more helpers
assert.Contains(t, fakeStdout.String(), `{"type":"org.osbuild.insights-client.config","options":{"proxy":"proxy_123"}}`) assert.Contains(t, fakeStdout.String(), `{"type":"org.osbuild.insights-client.config","options":{"config":{"proxy":"proxy_123"}}}`)
assert.Contains(t, fakeStdout.String(), `"type":"org.osbuild.systemd.unit.create","options":{"filename":"osbuild-subscription-register.service"`) assert.Contains(t, fakeStdout.String(), `"type":"org.osbuild.systemd.unit.create","options":{"filename":"osbuild-subscription-register.service"`)
assert.Contains(t, fakeStdout.String(), `server_url_123`) assert.Contains(t, fakeStdout.String(), `server_url_123`)
} }