Broken master due to removal of project-level cluster credentials passthrough
https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/237050708
1) Project#deployment_variables when project has a deployment platforms when multiple clusters (EEP) is enabled when environment name is review/name returns variables from this service
Failure/Error:
expect(project.deployment_variables(environment: 'review/name'))
.to include(key: 'KUBE_TOKEN', value: 'review-AAA', public: false, masked: true)
expected #<Gitlab::Ci::Variables::Collection:0x00005628903f3d88 @variables=[#<Gitlab::Ci::Variables::Collectio...KUBE_URL", :value => "https://kubernetes.example.com", :public => true, :file => false, :masked => false}>]> to include {:key => "KUBE_TOKEN", :value => "review-AAA", :public => false, :masked => true}
Diff:
@@ -1,5 +1,10 @@
-:key => "KUBE_TOKEN",
-:masked => true,
-:public => false,
-:value => "review-AAA",
+#<Gitlab::Ci::Variables::Collection:0x00005628903f3d88
+ @variables=
+ [#<Gitlab::Ci::Variables::Collection::Item:0x00005628903f3950
+ @variable=
+ {:key=>"KUBE_URL",
+ :value=>"https://kubernetes.example.com",
+ :public=>true,
+ :file=>false,
+ :masked=>false}>]>
2) Project#deployment_variables when project has a deployment platforms when multiple clusters (EEP) is enabled when environment name is other returns variables from this service
Failure/Error:
expect(project.deployment_variables(environment: 'staging/name'))
.to include(key: 'KUBE_TOKEN', value: 'default-AAA', public: false, masked: true)
expected #<Gitlab::Ci::Variables::Collection:0x000056288ab60bd0 @variables=[#<Gitlab::Ci::Variables::Collectio...KUBE_URL", :value => "https://kubernetes.example.com", :public => true, :file => false, :masked => false}>]> to include {:key => "KUBE_TOKEN", :value => "default-AAA", :public => false, :masked => true}
Diff:
@@ -1,5 +1,10 @@
-:key => "KUBE_TOKEN",
-:masked => true,
-:public => false,
-:value => "default-AAA",
+#<Gitlab::Ci::Variables::Collection:0x000056288ab60bd0
+ @variables=
+ [#<Gitlab::Ci::Variables::Collection::Item:0x000056288ab60928
+ @variable=
+ {:key=>"KUBE_URL",
+ :value=>"https://kubernetes.example.com",
+ :public=>true,
+ :file=>false,
+ :masked=>false}>]>