Fix spec failure. MySQL does not bite true
This commit is contained in:
parent
694cfeb7b7
commit
b78d8a748d
3 changed files with 7 additions and 2 deletions
|
@ -2,6 +2,8 @@ FactoryGirl.define do
|
|||
factory :platform_kubernetes, class: Clusters::Platforms::Kubernetes do
|
||||
cluster
|
||||
namespace nil
|
||||
api_url 'https://kubernetes.example.com'
|
||||
token 'a' * 40
|
||||
|
||||
trait :configured do
|
||||
api_url 'https://kubernetes.example.com'
|
||||
|
|
|
@ -147,6 +147,9 @@ deploy_keys:
|
|||
- user
|
||||
- deploy_keys_projects
|
||||
- projects
|
||||
cluster:
|
||||
- projects
|
||||
- user
|
||||
clusters:
|
||||
- projects
|
||||
- user
|
||||
|
|
|
@ -13,7 +13,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do
|
|||
let(:gcp_cluster_size) { 1 }
|
||||
let(:created_at) { '2017-10-17 20:24:02.219679' }
|
||||
let(:updated_at) { '2017-10-17 20:28:44.738998' }
|
||||
let(:enabled) { true }
|
||||
let(:enabled) { 1 } # true
|
||||
let(:status_reason) { 'general error' }
|
||||
let(:project_namespace) { 'sample-app' }
|
||||
let(:endpoint) { '111.111.111.111' }
|
||||
|
@ -50,7 +50,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do
|
|||
expect(Clusters::Platforms::Kubernetes.count).to eq(1)
|
||||
|
||||
expect(cluster.user).to eq(user)
|
||||
expect(cluster.enabled).to eq(enabled)
|
||||
expect(cluster.enabled).to be_truthy
|
||||
expect(cluster.name).to eq(gcp_cluster_name)
|
||||
expect(cluster.provider_type).to eq('gcp')
|
||||
expect(cluster.platform_type).to eq('kubernetes')
|
||||
|
|
Loading…
Reference in a new issue