From 33f7822c28515cf5cbdeff4ccf94e44f9643d5e4 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Wed, 28 May 2025 08:27:26 +0200 Subject: [PATCH] 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]: https://github.com/osbuild/images/commit/389b629ce292d12317cec1f0018b287855ef2ecc Signed-off-by: Simon de Vlieger --- cmd/image-builder/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/image-builder/main_test.go b/cmd/image-builder/main_test.go index 765d18b..a55fb56 100644 --- a/cmd/image-builder/main_test.go +++ b/cmd/image-builder/main_test.go @@ -1048,7 +1048,7 @@ func TestManifestIntegrationWithRegistrations(t *testing.T) { assert.NoError(t, err) // 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(), `server_url_123`) }