From 7d5792c917e5f409bedac49bb1529d8d44a78f31 Mon Sep 17 00:00:00 2001 From: Erwan Guyader Date: Thu, 21 Nov 2024 16:53:11 +0100 Subject: [PATCH] WIP: test: Create empty context if missing --- tests/testutils/test_utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testutils/test_utils.go b/tests/testutils/test_utils.go index 16f9b31712a..c51cc906efa 100644 --- a/tests/testutils/test_utils.go +++ b/tests/testutils/test_utils.go @@ -478,7 +478,9 @@ func WithManager(t *testing.T, inst *instance.Instance) (shouldRemoveUUID bool) } config, ok := inst.SettingsContext() - require.True(t, ok, "Could not enable test instance manager: could not fetch test instance settings context") + if !ok { + config = map[string]interface{}{} + } managerURL, err := inst.ManagerURL(instance.ManagerBaseURL) require.NoError(t, err, "Could not enable test instance manager: cloudery config is required")