Skip to content
Snippets Groups Projects
Commit b100a61c authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

hardcode organization config

parent 35906e5c
Branches
Tags
No related merge requests found
import json import json
import jsonschema import jsonschema
DEFAULT_ORGANIZATIONS = [
{
"name": "Main Org.",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "GÉANT Staff",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "NRENs",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "General Public",
"excluded_nrens": [
"JISC",
"PSNC"
],
"excluded_dashboards": []
},
{
"name": "CAE1 - Europe",
"excluded_nrens": [
"JISC",
"PSNC"
],
"excluded_dashboards": []
}
]
CONFIG_SCHEMA = { CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
...@@ -52,7 +86,6 @@ CONFIG_SCHEMA = { ...@@ -52,7 +86,6 @@ CONFIG_SCHEMA = {
"hostname": {"type": "string"}, "hostname": {"type": "string"},
"listen_port": {"type": "integer"}, "listen_port": {"type": "integer"},
"inventory_provider": {"type": "string"}, "inventory_provider": {"type": "string"},
"organizations": {"type": "array", "items": {"$ref": "#definitions/organization"}},
"datasources": { "datasources": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -66,10 +99,8 @@ CONFIG_SCHEMA = { ...@@ -66,10 +99,8 @@ CONFIG_SCHEMA = {
"admin_password", "admin_password",
"hostname", "hostname",
"inventory_provider", "inventory_provider",
"organizations",
"datasources" "datasources"
], ]
"additionalProperties": False
} }
...@@ -79,7 +110,6 @@ def defaults(): ...@@ -79,7 +110,6 @@ def defaults():
"admin_password": "admin", "admin_password": "admin",
"hostname": "localhost:3000", "hostname": "localhost:3000",
"listen_port": 3001, "listen_port": 3001,
"organizations": ["Main Org."],
"datasources": {} "datasources": {}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment