From e8d362ca71b81f7ce298977426b7fa08c764d486 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Fri, 3 Mar 2023 12:13:56 +0100
Subject: [PATCH] tests: Replace deprecated config tree

---
 swh/vault/tests/test_init_cookers.py | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/swh/vault/tests/test_init_cookers.py b/swh/vault/tests/test_init_cookers.py
index f0e5790..b392af1 100644
--- a/swh/vault/tests/test_init_cookers.py
+++ b/swh/vault/tests/test_init_cookers.py
@@ -18,10 +18,8 @@ def swh_cooker_config():
     return {
         "vault": {
             "cls": "remote",
-            "args": {
-                "url": "mock://vault-backend",
-                "storage": {"cls": "remote", "url": "mock://storage-url"},
-            },
+            "url": "mock://vault-backend",
+            "storage": {"cls": "remote", "url": "mock://storage-url"},
         }
     }
 
@@ -59,7 +57,7 @@ def test_write_to_env(swh_cooker_config, tmp_path, monkeypatch):
             "This vault backend can only be a 'remote' configuration",
         ),
         (
-            {"vault": {"cls": "remote", "args": {"missing-storage-key": ""}}},
+            {"vault": {"cls": "remote", "missing-storage-key": ""}},
             ValueError,
             "invalid configuration: missing 'storage' config entry",
         ),
@@ -81,18 +79,14 @@ def test_get_cooker_config_ko(
         {
             "vault": {
                 "cls": "remote",
-                "args": {
-                    "url": "mock://vault-backend",
-                    "storage": {"cls": "remote", "url": "mock://storage-url"},
-                },
+                "url": "mock://vault-backend",
+                "storage": {"cls": "remote", "url": "mock://storage-url"},
             }
         },
         {
             "vault": {
                 "cls": "remote",
-                "args": {
-                    "url": "mock://vault-backend",
-                },
+                "url": "mock://vault-backend",
             },
             "storage": {"cls": "remote", "url": "mock://storage-url"},
         },
-- 
GitLab