Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
unit tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli committed Sep 27, 2024
1 parent 24557ba commit d2f5901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions kontrol-service/engine/flow/dev_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ func TestDevFlowImmutability(t *testing.T) {
FlowId: "dev-flow-1",
ServicePatches: []flow_spec.ServicePatch{
{
Service: "checkoutservice",
DeploymentSpec: checkoutservice.DeploymentSpec,
Service: "checkoutservice",
Image: checkoutservice.DeploymentSpec.Template.Spec.Containers[0].Image,
},
},
}
Expand Down Expand Up @@ -761,8 +761,8 @@ func TestFlowMerging(t *testing.T) {
FlowId: "dev-flow-1",
ServicePatches: []flow_spec.ServicePatch{
{
Service: "checkoutservice",
DeploymentSpec: checkoutservice.DeploymentSpec,
Service: "checkoutservice",
Image: checkoutservice.DeploymentSpec.Template.Spec.Containers[0].Image,
},
},
}
Expand Down Expand Up @@ -800,8 +800,8 @@ func TestExternalServicesFlowOnDependentService(t *testing.T) {
FlowId: "dev-flow-1",
ServicePatches: []flow_spec.ServicePatch{
{
Service: "cartservice",
DeploymentSpec: cartservice.DeploymentSpec,
Service: "cartservice",
Image: cartservice.DeploymentSpec.Template.Spec.Containers[0].Image,
},
},
}
Expand Down Expand Up @@ -833,8 +833,8 @@ func TestExternalServicesCreateDevFlowOnNotDependentService(t *testing.T) {
FlowId: "dev-flow-1",
ServicePatches: []flow_spec.ServicePatch{
{
Service: "frontend",
DeploymentSpec: frontend.DeploymentSpec,
Service: "frontend",
Image: frontend.DeploymentSpec.Template.Spec.Containers[0].Image,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion kontrol-service/engine/flow/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ func generateDynamicLuaScript(allServices []*resolved.Service, flowId string, na
service = fallbackService
}
if service == nil {
logrus.Errorf("No service found for '%s' for version '%s' or baseline '%s'. No routing can configured.", serviceID, flowId, &baselineFlowVersion)
logrus.Errorf("No service found for '%s' for version '%s' or baseline '%s'. No routing can configured.", serviceID, flowId, baselineFlowVersion)
continue
}

Expand Down

0 comments on commit d2f5901

Please sign in to comment.