Skip to content

Commit

Permalink
Remove default keys and validate testcase structure (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac authored Nov 13, 2024
1 parent f8aeb84 commit 6b032a6
Show file tree
Hide file tree
Showing 17 changed files with 275 additions and 1,976 deletions.
138 changes: 8 additions & 130 deletions connection_testcases.json

Large diffs are not rendered by default.

435 changes: 30 additions & 405 deletions tests/basic/env.jsonc

Large diffs are not rendered by default.

94 changes: 9 additions & 85 deletions tests/basic/fs.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -14,7 +13,6 @@
"homedir": "/home/edgedb"
},
"name": "test_0",
"opts": {},
"result": {
"address": [
"localhost",
Expand All @@ -23,17 +21,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -47,7 +38,6 @@
"homedir": "/home/edgedb"
},
"name": "test_1",
"opts": {},
"result": {
"address": [
"localhost",
Expand All @@ -56,17 +46,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test/sub/di/rect/or/ry",
"files": {
Expand All @@ -80,7 +63,6 @@
"homedir": "/home/edgedb"
},
"name": "test_2",
"opts": {},
"result": {
"address": [
"localhost",
Expand All @@ -89,17 +71,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "C:\\Users\\edgedb\\test",
"files": {
Expand All @@ -113,7 +88,6 @@
"homedir": "C:\\Users\\edgedb"
},
"name": "test_3",
"opts": {},
"platform": "windows",
"result": {
"address": [
Expand All @@ -123,17 +97,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "/Users/edgedb/test",
"files": {
Expand All @@ -147,7 +114,6 @@
"homedir": "/Users/edgedb"
},
"name": "test_4",
"opts": {},
"platform": "macos",
"result": {
"address": [
Expand All @@ -157,17 +123,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -183,26 +142,15 @@
"homedir": "/home/edgedb"
},
"name": "test_5",
"opts": {},
"result": {
"address": [
"test-123--testorg.c-31.i.local-1.internal",
5656
],
"branch": "__default__",
"database": "edgedb",
"password": null,
"secretKey": "nbwt_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGdlZGIuc2VydmVyLmFueV9yb2xlIjp0cnVlLCJpYXQiOjE2NjkzMTE3NjMsImlzcyI6ImxvY2FsLTEuaW50ZXJuYWwiLCJuZWJ1bGEuc2NvcGVzIjpbImFkbWluIl0sIm5lYnVsYS51c2VyX2lkIjoiM2U3ODU4YTgtNmJjNy0xMWVkLWFmNTAtMTdiMzkzMjlmZmEyIn0.9cS6-rR00fgmEmGu423IP3snJvmXe7ZGol7ZlYuHBNqmKGrWtTsMZPj-3C7dmureUmk3ZUttxioouPeAreKueg",
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "edgedb",
"waitUntilAvailable": "PT30S"
"secretKey": "nbwt_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGdlZGIuc2VydmVyLmFueV9yb2xlIjp0cnVlLCJpYXQiOjE2NjkzMTE3NjMsImlzcyI6ImxvY2FsLTEuaW50ZXJuYWwiLCJuZWJ1bGEuc2NvcGVzIjpbImFkbWluIl0sIm5lYnVsYS51c2VyX2lkIjoiM2U3ODU4YTgtNmJjNy0xMWVkLWFmNTAtMTdiMzkzMjlmZmEyIn0.9cS6-rR00fgmEmGu423IP3snJvmXe7ZGol7ZlYuHBNqmKGrWtTsMZPj-3C7dmureUmk3ZUttxioouPeAreKueg"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -219,26 +167,17 @@
"homedir": "/home/edgedb"
},
"name": "test_6",
"opts": {},
"result": {
"address": [
"test-123--testorg.c-31.i.local-1.internal",
5656
],
"branch": "myapp",
"database": "myapp",
"password": null,
"secretKey": "nbwt_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGdlZGIuc2VydmVyLmFueV9yb2xlIjp0cnVlLCJpYXQiOjE2NjkzMTE3NjMsImlzcyI6ImxvY2FsLTEuaW50ZXJuYWwiLCJuZWJ1bGEuc2NvcGVzIjpbImFkbWluIl0sIm5lYnVsYS51c2VyX2lkIjoiM2U3ODU4YTgtNmJjNy0xMWVkLWFmNTAtMTdiMzkzMjlmZmEyIn0.9cS6-rR00fgmEmGu423IP3snJvmXe7ZGol7ZlYuHBNqmKGrWtTsMZPj-3C7dmureUmk3ZUttxioouPeAreKueg",
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "edgedb",
"waitUntilAvailable": "PT30S"
"secretKey": "nbwt_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGdlZGIuc2VydmVyLmFueV9yb2xlIjp0cnVlLCJpYXQiOjE2NjkzMTE3NjMsImlzcyI6ImxvY2FsLTEuaW50ZXJuYWwiLCJuZWJ1bGEuc2NvcGVzIjpbImFkbWluIl0sIm5lYnVsYS51c2VyX2lkIjoiM2U3ODU4YTgtNmJjNy0xMWVkLWFmNTAtMTdiMzkzMjlmZmEyIn0.9cS6-rR00fgmEmGu423IP3snJvmXe7ZGol7ZlYuHBNqmKGrWtTsMZPj-3C7dmureUmk3ZUttxioouPeAreKueg"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -252,7 +191,6 @@
"homedir": "/home/edgedb"
},
"name": "test_7",
"opts": {},
"result": {
"address": [
"localhost",
Expand All @@ -261,17 +199,10 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
},
{
"env": {},
"fs": {
"cwd": "/home/edgedb/test",
"files": {
Expand All @@ -285,7 +216,6 @@
"homedir": "/home/edgedb"
},
"name": "test_8",
"opts": {},
"result": {
"address": [
"localhost",
Expand All @@ -294,13 +224,7 @@
"branch": "test3n",
"database": "test3n",
"password": "lZTBy1RVCfOpBAOwSCwIyBIR",
"secretKey": null,
"serverSettings": {},
"tlsCAData": null,
"tlsSecurity": "strict",
"tlsServerName": null,
"user": "test3n",
"waitUntilAvailable": "PT30S"
"user": "test3n"
}
}
]
Loading

0 comments on commit 6b032a6

Please sign in to comment.