From b392023c3781c7bb15ac2ab5fdf0253c202c8331 Mon Sep 17 00:00:00 2001 From: Timo Reimann Date: Fri, 19 May 2017 11:50:36 +0200 Subject: [PATCH] Add additional tests for PathStrip{Prefix}. --- provider/kubernetes/kubernetes_test.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/provider/kubernetes/kubernetes_test.go b/provider/kubernetes/kubernetes_test.go index d3fe45d88..02ffa5405 100644 --- a/provider/kubernetes/kubernetes_test.go +++ b/provider/kubernetes/kubernetes_test.go @@ -337,10 +337,20 @@ func TestRuleType(t *testing.T) { frontendRuleType: ruleTypePathPrefix, }, { - desc: "rule type annotation set", + desc: "Path rule type annotation set", ingressRuleType: "Path", frontendRuleType: "Path", }, + { + desc: "PathStrip rule type annotation set", + ingressRuleType: "PathStrip", + frontendRuleType: "PathStrip", + }, + { + desc: "PathStripPrefix rule type annotation set", + ingressRuleType: "PathStripPrefix", + frontendRuleType: "PathStripPrefix", + }, } for _, test := range tests {