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

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Sep 17, 2024
1 parent f3b4215 commit 357da0f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
1 change: 0 additions & 1 deletion kontrol-service/topology/toplogy.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package topology

import (
"fmt"
"sort"

apiTypes "github.com/kurtosis-tech/kardinal/libs/cli-kontrol-api/api/golang/types"
Expand Down
50 changes: 25 additions & 25 deletions kontrol-service/topology/topology_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,63 +263,63 @@ func TestServiceConfigsToTopology(t *testing.T) {
topo := ClusterTopology(clusterTopology, &allFlows)
require.NotNil(t, topo)

expectedAzureVoteBackImageProd := "bitnami/redis:6.0.8"
expectedAzureVoteBackImageA := "bitnami/redis:6.0.8.a"
expectedAzureVoteBackImageB := "bitnami/redis:6.0.8.b"
expectedAzurVoteFrontImageProd := "voting-app-ui"
expectedAzurVoteFrontImageA := "voting-app-ui.a"
expectedAzurVoteFrontImageB := "voting-app-ui.b"
expectedAzureVoteBackImageProd := "bitnami/redis:6.0.8"
expectedAzureVoteBackImageA := "bitnami/redis:6.0.8.a"
expectedAzureVoteBackImageB := "bitnami/redis:6.0.8.b"
expectedAzurVoteFrontImageProd := "voting-app-ui"
expectedAzurVoteFrontImageA := "voting-app-ui.a"
expectedAzurVoteFrontImageB := "voting-app-ui.b"

require.Equal(t,
[]apiTypes.Node{
apiTypes.Node{
Id: "azure-vote-back",
Id: "azure-vote-back",
Label: "azure-vote-back",
Type: apiTypes.Service,
Type: apiTypes.Service,
Versions: &[]apiTypes.NodeVersion{
apiTypes.NodeVersion{
FlowId: "prod",
ImageTag: &expectedAzureVoteBackImageProd,
FlowId: "prod",
ImageTag: &expectedAzureVoteBackImageProd,
IsBaseline: true,
},
apiTypes.NodeVersion{
FlowId: "A",
ImageTag: &expectedAzureVoteBackImageA,
FlowId: "A",
ImageTag: &expectedAzureVoteBackImageA,
IsBaseline: false,
},
apiTypes.NodeVersion{
FlowId: "B",
ImageTag: &expectedAzureVoteBackImageB,
FlowId: "B",
ImageTag: &expectedAzureVoteBackImageB,
IsBaseline: false,
},
},
},
apiTypes.Node{
Id: "azure-vote-front",
Id: "azure-vote-front",
Label: "azure-vote-front",
Type: apiTypes.Service,
Type: apiTypes.Service,
Versions: &[]apiTypes.NodeVersion{
apiTypes.NodeVersion{
FlowId: "prod",
ImageTag: &expectedAzurVoteFrontImageProd,
FlowId: "prod",
ImageTag: &expectedAzurVoteFrontImageProd,
IsBaseline: true,
},
apiTypes.NodeVersion{
FlowId: "A",
ImageTag: &expectedAzurVoteFrontImageA,
FlowId: "A",
ImageTag: &expectedAzurVoteFrontImageA,
IsBaseline: false,
},
apiTypes.NodeVersion{
FlowId: "B",
ImageTag: &expectedAzurVoteFrontImageB,
FlowId: "B",
ImageTag: &expectedAzurVoteFrontImageB,
IsBaseline: false,
},
},
},
apiTypes.Node{
Id: "voting-app-lb",
Label: "voting-app-lb",
Type: apiTypes.Gateway,
Id: "voting-app-lb",
Label: "voting-app-lb",
Type: apiTypes.Gateway,
Versions: &[]apiTypes.NodeVersion{},
},
},
Expand Down

0 comments on commit 357da0f

Please sign in to comment.