config_parse_test test direct hcl parsing

This commit is contained in:
Lang Martin 2019-04-04 15:12:07 -04:00
parent 5ebae65d1a
commit 1f86770456
8 changed files with 626 additions and 615 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,67 @@
{
"client": [
{
"chroot_env": [
{
"e0": "baz"
}
],
"meta": [
{
"m0": "foo",
"m1": "bar"
}
],
"options": [
{
"o0": "foo",
"o1": "bar"
}
],
"server_join": [
{
"retry_join": [
"foo",
"bar"
],
"start_join": [
"foo",
"bar"
]
}
],
"servers": [
"foo",
"bar"
]
}
],
"server": [
{
"enabled_schedulers": [
"foo",
"bar"
],
"retry_join": [
"foo",
"bar"
],
"server_join": [
{
"retry_join": [
"foo",
"bar"
],
"start_join": [
"foo",
"bar"
]
}
],
"start_join": [
"foo",
"bar"
]
}
]
}

View File

@ -0,0 +1,13 @@
client "chroot_env" {
"e0" = "baz"
}
client "meta" {
"m0" = "foo"
"m1" = "bar"
}
client "options" {
"o0" = "foo"
"o1" = "bar"
}

View File

@ -0,0 +1,41 @@
{
"client": {
"options": {
"o0": "foo",
"o1": "bar"
},
"meta": {
"m0": "foo",
"m1": "bar"
},
"chroot_env": {
"e0": "baz"
},
"servers": [
"foo",
"bar"
],
"server_join": {
"start_join": ["foo", "bar"],
"retry_join": ["foo", "bar"]
}
},
"server": {
"enabled_schedulers": [
"foo",
"bar"
],
"start_join": [
"foo",
"bar"
],
"retry_join": [
"foo",
"bar"
],
"server_join": {
"start_join": ["foo", "bar"],
"retry_join": ["foo", "bar"]
}
}
}

View File

@ -0,0 +1,7 @@
{
"client": [
{
"memory_total_mb": 5555
}
]
}

View File

@ -0,0 +1,7 @@
{
"server": {
"server_join": {
"start_join": ["foo", "bar"]
}
},
}

View File

@ -0,0 +1,5 @@
client {
options {
driver.whitelist = "docker"
}
}

View File

@ -0,0 +1,8 @@
{
"client": {
"options": {
"driver.whitelist": "docker"
}
},
"server": {}
}