
1. Change embedded structs to pointers so json omitempty will behave as expected and omit empty structs from ws messages 2. Add dummy airshipui.json config file for testing 3. Add testutil package to build dummy config objects 4. Add tests for configs package 5. Add tests for webservice package 6. Add tests for integrations/ctl package Change-Id: I1a2ac543898cbbae96c764a983e7e9b73946a9d9
56 lines
1.5 KiB
JSON
56 lines
1.5 KiB
JSON
{
|
|
"authMethod": {
|
|
"url": "http://fake.auth.method.com/auth"
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "dummy_plugin_with_dash",
|
|
"dashboard": {
|
|
"protocol": "http",
|
|
"fqdn": "localhost",
|
|
"port": 80,
|
|
"path": "index.html"
|
|
},
|
|
"executable": {
|
|
"autoStart": true,
|
|
"filepath": "/fake/path/to/executable",
|
|
"args": [
|
|
"--fakeflag",
|
|
"fakevalue"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "dummy_plugin_no_dash",
|
|
"executable": {
|
|
"autoStart": true,
|
|
"filepath": "/fake/path/to/executable",
|
|
"args": [
|
|
"--fakeflag",
|
|
"fakevalue"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"clusters": [
|
|
{
|
|
"name": "dummy_cluster",
|
|
"baseFqdn": "dummy.cluster.local",
|
|
"namespaces": [
|
|
{
|
|
"name": "dummy_namespace",
|
|
"dashboards": [
|
|
{
|
|
"name": "dummy_dashboard",
|
|
"protocol": "http",
|
|
"hostname": "dummyhost",
|
|
"port": 80,
|
|
"path": "fake/login/path"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|