summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/test_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/cmd/test_test.go')
-rw-r--r--client/go/cmd/test_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/go/cmd/test_test.go b/client/go/cmd/test_test.go
index 8db10282d51..598f550359e 100644
--- a/client/go/cmd/test_test.go
+++ b/client/go/cmd/test_test.go
@@ -41,6 +41,15 @@ func TestSuite(t *testing.T) {
assertRequests(requests, client, t)
}
+func TestProductionTest(t *testing.T) {
+ client := &mockHttpClient{}
+ client.NextStatus(200)
+ outBytes, errBytes := execute(command{args: []string{"test", "testdata/tests/production-test/external.json"}}, t, client)
+ assert.Equal(t, "Running testdata/tests/production-test/external.json: . OK\n\n1 tests completed successfully\n", outBytes)
+ assert.Equal(t, "", errBytes)
+ assertRequests([]*http.Request{createRequest("GET", "https://my.service:123/path?query=wohoo", "")}, client, t)
+}
+
func TestTestWithoutAssertions(t *testing.T) {
client := &mockHttpClient{}
_, errBytes := execute(command{args: []string{"test", "testdata/tests/system-test/foo/query.json"}}, t, client)