Merge "Add 'database' to the datasource schema"
This commit is contained in:
commit
2ff186cae7
@ -26,5 +26,6 @@ class Datasource(object):
|
||||
'influxdb'),
|
||||
v.Required('url'): v.All(str, v.Length(min=1)),
|
||||
v.Optional('orgId'): int,
|
||||
v.Optional('database'): v.All(str, v.Length(min=1)),
|
||||
}
|
||||
return datasource
|
||||
|
12
tests/schema/fixtures/datasource-0002.json
Normal file
12
tests/schema/fixtures/datasource-0002.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"datasource": {
|
||||
"new-datasource": {
|
||||
"access": "direct",
|
||||
"database": "foodb",
|
||||
"isDefault": false,
|
||||
"name": "New datasource",
|
||||
"type": "influxdb",
|
||||
"url": "http://example.org"
|
||||
}
|
||||
}
|
||||
}
|
5
tests/schema/fixtures/datasource-0002.yaml
Normal file
5
tests/schema/fixtures/datasource-0002.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
datasource:
|
||||
name: New datasource
|
||||
url: http://example.org
|
||||
type: influxdb
|
||||
database: foodb
|
Loading…
x
Reference in New Issue
Block a user