Skip to content
Snippets Groups Projects
Commit d7a97543 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

nevermind the /api

parent 33762c8a
No related branches found
No related tags found
1 merge request!128Prepare k8s deployment
Pipeline #67650 passed
...@@ -47,7 +47,7 @@ func TestRun(t *testing.T) { ...@@ -47,7 +47,7 @@ func TestRun(t *testing.T) {
return return
} }
if !reflect.DeepEqual(got.StatusCode, tests[0].want) { if !reflect.DeepEqual(got.StatusCode, tests[0].want) {
t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[0].want) t.Errorf("livez got: %v, want %v", got.StatusCode, tests[0].want)
} }
got, err = http.Get(tests[0].args.request) got, err = http.Get(tests[0].args.request)
if err != nil { if err != nil {
...@@ -55,7 +55,7 @@ func TestRun(t *testing.T) { ...@@ -55,7 +55,7 @@ func TestRun(t *testing.T) {
return return
} }
if !reflect.DeepEqual(got.StatusCode, tests[1].want) { if !reflect.DeepEqual(got.StatusCode, tests[1].want) {
t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[1].want) t.Errorf("readyz got: %v, want %v", got.StatusCode, tests[1].want)
} }
got, err = http.Get(tests[0].args.request) got, err = http.Get(tests[0].args.request)
if err != nil { if err != nil {
...@@ -63,7 +63,7 @@ func TestRun(t *testing.T) { ...@@ -63,7 +63,7 @@ func TestRun(t *testing.T) {
return return
} }
if !reflect.DeepEqual(got.StatusCode, tests[2].want) { if !reflect.DeepEqual(got.StatusCode, tests[2].want) {
t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[2].want) t.Errorf("api init got: %v, want %v", got.StatusCode, tests[2].want)
} }
}) })
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"testing" "testing"
) )
const apiEndpoint = "http://localhost:8080/api" const apiEndpoint = "http://localhost:8080"
// UUIDs for test cases // UUIDs for test cases
var did uuid.UUID var did uuid.UUID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment