diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-13 01:33:42 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-13 01:33:42 -0500 |
commit | e45f6d79862f3eaff3f8bf92c7d3096be104eb49 (patch) | |
tree | 6f8d1b466c3c8e341ab2235efe1c2f8ee4caf7be /tests/fixtures/json | |
parent | b4861811d406318b26773523a0bf34119bc309e1 (diff) | |
download | horizon-e45f6d79862f3eaff3f8bf92c7d3096be104eb49.tar.gz horizon-e45f6d79862f3eaff3f8bf92c7d3096be104eb49.tar.bz2 horizon-e45f6d79862f3eaff3f8bf92c7d3096be104eb49.tar.xz horizon-e45f6d79862f3eaff3f8bf92c7d3096be104eb49.zip |
tools: Add new hscript-fromjson tool
Diffstat (limited to 'tests/fixtures/json')
-rw-r--r-- | tests/fixtures/json/0001-basic.json | 11 | ||||
-rw-r--r-- | tests/fixtures/json/0002-fuller.json | 20 | ||||
-rw-r--r-- | tests/fixtures/json/0003-missing-hostname.json | 18 | ||||
-rw-r--r-- | tests/fixtures/json/0004-missing-rootpw.json | 18 | ||||
-rw-r--r-- | tests/fixtures/json/0005-missing-packages.json | 18 |
5 files changed, 85 insertions, 0 deletions
diff --git a/tests/fixtures/json/0001-basic.json b/tests/fixtures/json/0001-basic.json new file mode 100644 index 0000000..acc54ed --- /dev/null +++ b/tests/fixtures/json/0001-basic.json @@ -0,0 +1,11 @@ +{ + "hostname": "horizon-json-testmachine.adelielinux.org", + "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"], + "rootpw": "$6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/", + "root": "/dev/sda1", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type": "dhcp"}], + "nameservers": ["9.9.9.9"], + "timezone": "America/Chicago", + "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", "https://distfiles.adelielinux.org/adelie/1.0/user"], + "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] +} diff --git a/tests/fixtures/json/0002-fuller.json b/tests/fixtures/json/0002-fuller.json new file mode 100644 index 0000000..9daae7c --- /dev/null +++ b/tests/fixtures/json/0002-fuller.json @@ -0,0 +1,20 @@ +{"images": + [ + {"name": "Test Image", + "hostname": "horizon-json-testmachine.adelielinux.org", + "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"], + "rootpw": "$6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/", + "root": "/dev/sda1", + "arch": "ppc64", + "language": "en_GB.UTF-8", + "keymap": "us", + "firmware": false, + "netconfig": "netifrc", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type": "dhcp"}], + "nameservers": ["9.9.9.9"], + "timezone": "America/Chicago", + "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", "https://distfiles.adelielinux.org/adelie/1.0/user"], + "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] + } + ] +} diff --git a/tests/fixtures/json/0003-missing-hostname.json b/tests/fixtures/json/0003-missing-hostname.json new file mode 100644 index 0000000..02748f1 --- /dev/null +++ b/tests/fixtures/json/0003-missing-hostname.json @@ -0,0 +1,18 @@ +{"images": + [ + {"name": "Test Image", + "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"], + "rootpw": "$6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/", + "arch": "ppc64", + "language": "en_GB.UTF-8", + "keymap": "us", + "firmware": false, + "netconfig": "netifrc", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type": "dhcp"}], + "nameservers": ["9.9.9.9"], + "timezone": "America/Chicago", + "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", "https://distfiles.adelielinux.org/adelie/1.0/user"], + "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] + } + ] +} diff --git a/tests/fixtures/json/0004-missing-rootpw.json b/tests/fixtures/json/0004-missing-rootpw.json new file mode 100644 index 0000000..d2e9eb3 --- /dev/null +++ b/tests/fixtures/json/0004-missing-rootpw.json @@ -0,0 +1,18 @@ +{"images": + [ + {"name": "Test Image", + "hostname": "horizon-json-testmachine.adelielinux.org", + "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"], + "arch": "ppc64", + "language": "en_GB.UTF-8", + "keymap": "us", + "firmware": false, + "netconfig": "netifrc", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type": "dhcp"}], + "nameservers": ["9.9.9.9"], + "timezone": "America/Chicago", + "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", "https://distfiles.adelielinux.org/adelie/1.0/user"], + "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] + } + ] +} diff --git a/tests/fixtures/json/0005-missing-packages.json b/tests/fixtures/json/0005-missing-packages.json new file mode 100644 index 0000000..1e35b1f --- /dev/null +++ b/tests/fixtures/json/0005-missing-packages.json @@ -0,0 +1,18 @@ +{"images": + [ + {"name": "Test Image", + "hostname": "horizon-json-testmachine.adelielinux.org", + "rootpw": "$6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/", + "arch": "ppc64", + "language": "en_GB.UTF-8", + "keymap": "us", + "firmware": false, + "netconfig": "netifrc", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type": "dhcp"}], + "nameservers": ["9.9.9.9"], + "timezone": "America/Chicago", + "repositories": ["https://distfiles.adelielinux.org/adelie/1.0/system", "https://distfiles.adelielinux.org/adelie/1.0/user"], + "signingkeys": ["/etc/apk/keys/powerpc-1@packages.adelielinux.org.pub", "/etc/apk/keys/powerpc-2@packages.adelielinux.org.pub"] + } + ] +} |