Skip to content

Commit

Permalink
added another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkermichael committed Sep 23, 2023
1 parent 0097cab commit d46dece
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions control-plane/connect-inject/common/annotation_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,16 @@ func TestProcessUpstreams(t *testing.T) {
consulNamespacesEnabled: false,
consulPartitionsEnabled: false,
},
{
name: "error labeled missing port name namespace partition enabled",
pod: func() *corev1.Pod {
pod1 := createPod(podName, "upstream1.svc:1234")
return pod1
},
expErr: "upstream structured incorrectly: upstream1.svc:1234",
consulNamespacesEnabled: true,
consulPartitionsEnabled: true,
},
{
name: "unlabeled and labeled multiple annotated upstreams",
pod: func() *corev1.Pod {
Expand Down

0 comments on commit d46dece

Please sign in to comment.