]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1976] Migrate the bindctl systest data sources
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 12 Jul 2012 11:48:36 +0000 (13:48 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 12 Jul 2012 11:48:36 +0000 (13:48 +0200)
The configuration is different (actually, it is duplicate now, until we
remove the database_file option).

tests/system/bindctl/nsx1/b10-config.db.template.in
tests/system/bindctl/tests.sh

index 7a3647c2faea998b3f500efce2967b33145b29a8..4c0b6dc22b1552c9725c02585b8439254ebd32eb 100644 (file)
@@ -3,5 +3,25 @@
    "listen_on": [{"address": "10.53.0.1", "port": 53210}],
    "database_file": "@abs_builddir@/zone.sqlite3",
    "statistics-interval": 1
+ },
+ "data_sources": {
+    "classes": {
+        "IN": [{
+            "type": "sqlite3",
+            "params": {
+                "database_file": "@abs_builddir@/zone.sqlite3"
+            }
+        }]
+    }
+ },
+ "Logging": {
+     "loggers": [
+        {
+            "name": "*",
+            "severity": "DEBUG",
+            "output_options": [],
+            "debuglevel": 99
+        }
+     ]
  }
 }
index 352642e87f144166ac56ac12216cf431ea87650b..a49043bbb95855d68e4aa7f52d4998b0b73ccea5 100755 (executable)
@@ -108,9 +108,9 @@ if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`
 
 echo "I:Changing the data source from sqlite3 to in-memory ($n)"
-DATASRC_SPEC='[{"type": "memory", "zones": [{"origin": "com","file":'
-DATASRC_SPEC="${DATASRC_SPEC} \"${TEST_TOP}/bindctl/nsx1/example-normalized.db\"}]}]"
-echo "config set Auth/datasources ${DATASRC_SPEC}
+DATASRC_SPEC='{"type": "MasterFiles", "cache-enable": true, "params": {"com":'
+DATASRC_SPEC="${DATASRC_SPEC} \"${TEST_TOP}/bindctl/nsx1/example-normalized.db\"}}"
+echo "config set data_sources/classes/IN[0] ${DATASRC_SPEC}
 config commit
 quit
 " | $RUN_BINDCTL \