summaryrefslogtreecommitdiffstats
path: root/src/bin/agent/tests/testdata
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:36:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:36:04 +0000
commit040eee1aa49b49df4698d83a05af57c220127fd1 (patch)
treef635435954e6ccde5eee9893889e24f30ca68346 /src/bin/agent/tests/testdata
parentInitial commit. (diff)
downloadisc-kea-upstream.tar.xz
isc-kea-upstream.zip
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/agent/tests/testdata')
-rw-r--r--src/bin/agent/tests/testdata/get_config.json55
-rw-r--r--src/bin/agent/tests/testdata/hiddenp1
-rw-r--r--src/bin/agent/tests/testdata/hiddens1
-rw-r--r--src/bin/agent/tests/testdata/hiddenu1
4 files changed, 58 insertions, 0 deletions
diff --git a/src/bin/agent/tests/testdata/get_config.json b/src/bin/agent/tests/testdata/get_config.json
new file mode 100644
index 0000000..ce3df54
--- /dev/null
+++ b/src/bin/agent/tests/testdata/get_config.json
@@ -0,0 +1,55 @@
+{
+ "Control-agent": {
+ "authentication": {
+ "clients": [
+ {
+ "password": "1234",
+ "user": "admin",
+ "user-context": {
+ "comment": "admin is authorized"
+ }
+ },
+ {
+ "password-file": "hiddenp",
+ "user-file": "hiddenu"
+ },
+ {
+ "password-file": "hiddens"
+ }
+ ],
+ "directory": "/tmp/kea-creds",
+ "realm": "kea-control-agent",
+ "type": "basic"
+ },
+ "control-sockets": {
+ "d2": {
+ "socket-name": "/tmp/kea-ddns-ctrl-socket",
+ "socket-type": "unix",
+ "user-context": {
+ "in-use": false
+ }
+ },
+ "dhcp4": {
+ "socket-name": "/tmp/kea4-ctrl-socket",
+ "socket-type": "unix",
+ "user-context": {
+ "comment": "socket to DHCP4 server"
+ }
+ },
+ "dhcp6": {
+ "socket-name": "/tmp/kea6-ctrl-socket",
+ "socket-type": "unix"
+ }
+ },
+ "hooks-libraries": [
+ {
+ "library": "/opt/local/control-agent-commands.so",
+ "parameters": {
+ "param1": "foo"
+ }
+ }
+ ],
+ "http-host": "127.0.0.1",
+ "http-port": 8000
+ }
+}
diff --git a/src/bin/agent/tests/testdata/hiddenp b/src/bin/agent/tests/testdata/hiddenp
new file mode 100644
index 0000000..e8b2395
--- /dev/null
+++ b/src/bin/agent/tests/testdata/hiddenp
@@ -0,0 +1 @@
+KeaTest \ No newline at end of file
diff --git a/src/bin/agent/tests/testdata/hiddens b/src/bin/agent/tests/testdata/hiddens
new file mode 100644
index 0000000..f52fb83
--- /dev/null
+++ b/src/bin/agent/tests/testdata/hiddens
@@ -0,0 +1 @@
+kea:test \ No newline at end of file
diff --git a/src/bin/agent/tests/testdata/hiddenu b/src/bin/agent/tests/testdata/hiddenu
new file mode 100644
index 0000000..801489a
--- /dev/null
+++ b/src/bin/agent/tests/testdata/hiddenu
@@ -0,0 +1 @@
+keatest \ No newline at end of file