Skip to content

Commit

Permalink
chore: try and trigger kube test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Oct 4, 2024
1 parent 4f2606e commit 37ffc00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 10 additions & 3 deletions backend/controller/scaling/kube_scaling_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func TestKubeScaling(t *testing.T) {
// Istio should prevent this
assert.Equal(t, strconv.FormatBool(false), response)
}),
in.EditFile("echo", func(content []byte) []byte {
return []byte(strings.ReplaceAll(string(content), "Hello", "Bye"))
}, "echo.go"),
func(t testing.TB, ic in.TestContext) {
// Hit the verb constantly to test rolling updates.
go func() {
Expand All @@ -71,10 +68,20 @@ func TestKubeScaling(t *testing.T) {
}
}()
},
in.EditFile("echo", func(content []byte) []byte {
return []byte(strings.ReplaceAll(string(content), "Hello", "Bye"))
}, "echo.go"),
in.Deploy("echo"),
in.Call("echo", "echo", "Bob", func(t testing.TB, response string) {
assert.Equal(t, "Bye, Bob!!!", response)
}),
in.EditFile("echo", func(content []byte) []byte {
return []byte(strings.ReplaceAll(string(content), "Bye", "Bonjour"))
}, "echo.go"),
in.Deploy("echo"),
in.Call("echo", "echo", "Bob", func(t testing.TB, response string) {
assert.Equal(t, "Bonjour, Bob!!!", response)
}),
func(t testing.TB, ic in.TestContext) {
done.Store(true)
routineStopped.Wait()
Expand Down
2 changes: 2 additions & 0 deletions deployment/base/ftl-controller/deployment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ data:
value: "http://$(MY_POD_IP):8893"
- name: FTL_LANGUAGE
value: "go,kotlin,java"
- name: LOG_TIMESTAMPS
value: "true"
ports:
- containerPort: 8893
readinessProbe:
Expand Down
2 changes: 2 additions & 0 deletions deployment/base/ftl-controller/ftl-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
value: "test"
- name: AWS_ENDPOINT_URL
value: "http://localstack:4566"
- name: LOG_TIMESTAMPS
value: "true"
ports:
- containerPort: 8891
- containerPort: 8892
Expand Down

0 comments on commit 37ffc00

Please sign in to comment.