aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-04-23 18:06:49 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-04-23 18:06:49 +0100
commitc6bf0a05763f567079cb464212a17b89b75f1a50 (patch)
treef19d26002e3232f9e54fcff2a3ed48e97fc858c9 /testdata
parent19125034df9d17e0eec70fd8be76d785648232b1 (diff)
Add config file tests
Diffstat (limited to 'testdata')
-rw-r--r--testdata/config.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/testdata/config.go b/testdata/config.go
new file mode 100644
index 0000000..ef5fdac
--- /dev/null
+++ b/testdata/config.go
@@ -0,0 +1,33 @@
+package testdata
+
+var ServerConfig = []byte(`{
+"server": {
+ "use_tls": true,
+ "tls_key": "server.key",
+ "tls_cert": "server.crt",
+ "port": 443,
+ "cookie_secret": "supersecret"
+ }
+}`)
+
+var AuthConfig = []byte(`{
+ "auth": {
+ "provider": "google",
+ "oauth_client_id": "client_id",
+ "oauth_client_secret": "secret",
+ "oauth_callback_url": "https://sshca.example.com/auth/callback",
+ "provider_opts": {
+ "domain": "example.com"
+ },
+ "jwt_signing_key": "supersecret"
+ }
+}`)
+
+var SSHConfig = []byte(`{
+ "ssh": {
+ "signing_key": "signing_key",
+ "additional_principals": ["ec2-user", "ubuntu"],
+ "max_age": "720h",
+ "permissions": ["permit-pty", "permit-X11-forwarding", "permit-port-forwarding", "permit-user-rc"]
+ }
+}`)