Skip to content

Commit

Permalink
testing env
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jul 12, 2020
1 parent beabcb0 commit b2ad562
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 15 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "extensionHost",
"request": "launch",
"args": [
"${workspaceFolder}/test/project.code-workspace",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
Expand Down
22 changes: 7 additions & 15 deletions connection.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@
"title": "Connect using",
"type": "string",
"minLength": 1,
"enum": ["Server and Port", "Server Name"],
"enum": ["Server and Port"],
"default": "Server and Port"
},
"showSystem": {
"title": "Show system items?",
"type": "boolean",
"default": false
}
},
"dependencies": {
Expand All @@ -57,20 +62,7 @@
"username": { "$ref": "#/definitions/username" },
"askForPassword": { "$ref": "#/definitions/askForPassword" }
},
"required": ["server", "port", "namespace", "username"]
},
{
"properties": {
"connectionMethod": {
"enum": ["Server Name"]
},
"serverName": {
"title": "Server Name",
"type": "string",
"minLength": 1
}
},
"required": ["serverName"]
"required": ["server", "port", "username"]
}
]
},
Expand Down
14 changes: 14 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.7"
services:
cache16:
image: daimor/intersystems-cache:2016.2
volumes:
- ~/cache.key:/usr/cachesys/mgr/cache.key
ports:
- 57772:57772
cache18:
image: daimor/intersystems-cache:2018.1
volumes:
- ~/cache.key:/usr/cachesys/mgr/cache.key
ports:
- 57773:57772
59 changes: 59 additions & 0 deletions test/project.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"folders": [
{
"path": ".",
"name": "root"
}
],
"settings": {
"sqltools.useNodeRuntime": true,
"sqltools.format": {
"reservedWordCase": "upper",
"linesBetweenQueries": "preserve"
},
"sqltools.debug": {
"namespaces": "*"
},
"sqltools.connections": [
{
"askForPassword": false,
"connectionMethod": "Server and Port",
"driver": "InterSystems IRIS",
"name": "Caché 2016.2",
"namespace": "SAMPLES",
"password": "SYS",
"port": 57772,
"previewLimit": 50,
"server": "localhost",
"showSystem": false,
"username": "_SYSTEM"
},
{
"askForPassword": false,
"connectionMethod": "Server and Port",
"driver": "InterSystems IRIS",
"name": "Caché 2018.1",
"namespace": "SAMPLES",
"password": "SYS",
"port": 57773,
"previewLimit": 50,
"server": "localhost",
"showSystem": false,
"username": "_SYSTEM"
},
{
"askForPassword": false,
"connectionMethod": "Server and Port",
"driver": "InterSystems IRIS",
"name": "InterSystems IRIS",
"namespace": "USER",
"password": "SYS",
"port": 52773,
"previewLimit": 50,
"server": "localhost",
"showSystem": false,
"username": "_SYSTEM"
}
]
}
}

0 comments on commit b2ad562

Please sign in to comment.