@@ -5379,7 +5379,7 @@ var _ = SIGDescribe("Rollout v1beta1", func() {
53795379
53805380 KruiseDescribe ("StatefulSet canary rollout with Ingress" , func () {
53815381 KruiseDescribe ("Native StatefulSet rollout canary with Ingress" , func () {
5382- It ("V1->V2: Percentage, 20%,60% Succeeded" , func () {
5382+ It ("V1->V2: Percentage, 20%,60% Succeeded with canary service check " , func () {
53835383 By ("Creating Rollout..." )
53845384 rollout := & v1beta1.Rollout {}
53855385 Expect (ReadYamlToObject ("./test_data/rollout/rollout_v1beta1_partition_base.yaml" , rollout )).ToNot (HaveOccurred ())
@@ -5443,9 +5443,16 @@ var _ = SIGDescribe("Rollout v1beta1", func() {
54435443 Expect (workload .Status .UpdatedReplicas ).Should (BeNumerically ("==" , 1 ))
54445444 Expect (workload .Status .ReadyReplicas ).Should (BeNumerically ("==" , * workload .Spec .Replicas ))
54455445 Expect (* workload .Spec .UpdateStrategy .RollingUpdate .Partition ).Should (BeNumerically ("==" , * workload .Spec .Replicas - 1 ))
5446- By ("check cloneSet status & paused success" )
5446+
5447+ // check service metadata, once is enough
5448+ By ("check canary service metadata" )
5449+ canaryService := & v1.Service {}
5450+ Expect (GetObject (service .Name + "-canary" , canaryService )).NotTo (HaveOccurred ())
5451+ Expect (canaryService .Labels ).To (BeEquivalentTo (service .Labels ))
5452+ Expect (canaryService .Annotations ).To (BeEquivalentTo (service .Annotations ))
54475453
54485454 // check rollout status
5455+ By ("check cloneSet status & paused success" )
54495456 Expect (GetObject (rollout .Name , rollout )).NotTo (HaveOccurred ())
54505457 Expect (rollout .Status .Phase ).Should (Equal (v1beta1 .RolloutPhaseProgressing ))
54515458 Expect (rollout .Status .CanaryStatus .StableRevision ).Should (Equal (stableRevision ))
0 commit comments