-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathintegration_test.go
More file actions
33 lines (28 loc) · 1 KB
/
integration_test.go
File metadata and controls
33 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// +build integration
package tests
import (
"testing"
"github.com/deis/deis/tests/integration-utils"
)
//Tests #1136 // Tests #1239
func cookieTest(t *testing.T, params *itutils.DeisTestConfig) {
var cmd string
cmd = itutils.GetCommand("auth", "register")
itutils.Execute(t, cmd, params, false, "")
itutils.CheckList(t, params, "cat ~/.deis/cookies.txt", "csrftoken", false)
itutils.CheckList(t, params, "cat ~/.deis/cookies.txt", "sessionid", false)
itutils.AuthCancel(t, params)
itutils.CheckList(t, params, "cat ~/.deis/cookies.txt", "csrftoken", true)
itutils.CheckList(t, params, "cat ~/.deis/cookies.txt", "sessionid", true)
}
func TestGlobal(t *testing.T) {
params := itutils.GetGlobalConfig()
var cmd string
cookieTest(t, params)
cmd = itutils.GetCommand("auth", "register")
itutils.Execute(t, cmd, params, false, "")
cmd = itutils.GetCommand("keys", "add")
itutils.Execute(t, cmd, params, false, "")
cmd = itutils.GetCommand("clusters", "create")
itutils.Execute(t, cmd, params, false, "")
}