Red master: bundle exec rspec spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb spec/lib/gitlab/ci/build/policy/kubernetes_spec.rb
Job #46849916 failed for ab4aba91:
Running this locally gives:
MigrateGcpClustersToNewClustersArchitectures
when cluster is being created
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrating =====
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrated (0.2046s)
correctly migrate to new clusters architectures
when cluster has been created
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrating =====
== 20171013104327 MigrateGcpClustersToNewClustersArchitectures: migrated (0.1300s)
correctly migrate to new clusters architectures
Gitlab::Ci::Build::Policy::Kubernetes
when kubernetes service is active
when user configured kubernetes from Integration > Kubernetes
behaves like same behavior between KubernetesService and Platform::Kubernetes
is satisfied by a kubernetes pipeline
when user configured kubernetes from CI/CD > Clusters
behaves like same behavior between KubernetesService and Platform::Kubernetes
is satisfied by a kubernetes pipeline (FAILED - 1)
when kubernetes service is inactive
is not satisfied by a pipeline without kubernetes available
when kubernetes policy is invalid
raises an error
Failures:
1) Gitlab::Ci::Build::Policy::Kubernetes when kubernetes service is active when user configured kubernetes from CI/CD > Clusters behaves like same behavior between KubernetesService and Platform::Kubernetes is satisfied by a kubernetes pipeline
Failure/Error: let!(:cluster) { create(:cluster, :project, :provided_by_gcp) }
NoMethodError:
super: no superclass method `environment_scope=' for #<Clusters::Cluster:0x00007fdf6ba08bb8>
Shared Example Group: "same behavior between KubernetesService and Platform::Kubernetes" called from ./spec/lib/gitlab/ci/build/policy/kubernetes_spec.rb:24
# ./ee/app/models/concerns/has_environment_scope.rb:62:in `environment_scope='
# ./spec/lib/gitlab/ci/build/policy/kubernetes_spec.rb:21:in `block (4 levels) in <top (required)>'
# -e:1:in `<main>'
Finished in 1 minute 11.83 seconds (files took 1.76 seconds to load)
6 examples, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/ci/build/policy/kubernetes_spec.rb[1:1:2:1:1] # Gitlab::Ci::Build::Policy::Kubernetes when kubernetes service is active when user configured kubernetes from CI/CD > Clusters behaves like same behavior between KubernetesService and Platform::Kubernetes is satisfied by a kubernetes pipeline