Improves config loading and tests
This commit is contained in:
6
spec/configs/CLIConfig.json
Normal file
6
spec/configs/CLIConfig.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"arg1": "my_app",
|
||||
"arg2": "8888",
|
||||
"arg3": "hello",
|
||||
"arg4": "/1"
|
||||
}
|
||||
9
spec/configs/CLIConfigApps.json
Normal file
9
spec/configs/CLIConfigApps.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"arg1": "my_app",
|
||||
"arg2": 8888,
|
||||
"arg3": "hello",
|
||||
"arg4": "/1"
|
||||
}]
|
||||
}
|
||||
6
spec/configs/CLIConfigFail.json
Normal file
6
spec/configs/CLIConfigFail.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"arg1": "my_app",
|
||||
"arg2": "hello",
|
||||
"arg3": "hello",
|
||||
"arg4": "/1"
|
||||
}
|
||||
16
spec/configs/CLIConfigFailTooManyApps.json
Normal file
16
spec/configs/CLIConfigFailTooManyApps.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"arg1": "my_app",
|
||||
"arg2": "99999",
|
||||
"arg3": "hello",
|
||||
"arg4": "/1"
|
||||
},
|
||||
{
|
||||
"arg1": "my_app2",
|
||||
"arg2": "9999",
|
||||
"arg3": "hello",
|
||||
"arg4": "/1"
|
||||
}
|
||||
]
|
||||
}
|
||||
6
spec/configs/CLIConfigUnknownArg.json
Normal file
6
spec/configs/CLIConfigUnknownArg.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"arg1": "my_app",
|
||||
"arg2": "8888",
|
||||
"arg3": "hello",
|
||||
"myArg": "/1"
|
||||
}
|
||||
Reference in New Issue
Block a user