Skip to content

Commit

Permalink
Fix k8s service unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed May 23, 2024
1 parent 0cd4838 commit 6ab6d0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/turing/cluster/kubernetes_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ import (

func TestBuildKubernetesServiceConfig(t *testing.T) {
id := int64(999)
cpuLimit := resource.MustParse("1")
memoryLimit := resource.MustParse("2")
svcConf := KubernetesService{
BaseService: &BaseService{
Name: "test-svc-fluentd-logger",
Namespace: "namespace",
Image: "fluentdimage:1.0.0",
CPURequests: resource.MustParse("1"),
CPULimit: &cpuLimit,
MemoryRequests: resource.MustParse("1"),
MemoryLimit: &memoryLimit,
ProbePort: 8080,
LivenessHTTPGetPath: "/fluentd.pod.healthcheck?json=%7B%22log%22%3A+%22health+check%22%7D",
ReadinessHTTPGetPath: "/fluentd.pod.healthcheck?json=%7B%22log%22%3A+%22health+check%22%7D",
Expand Down

0 comments on commit 6ab6d0f

Please sign in to comment.