Commit b78d8a74 authored by Shinya Maeda's avatar Shinya Maeda

Fix spec failure. MySQL does not bite true

parent 694cfeb7
...@@ -2,6 +2,8 @@ FactoryGirl.define do ...@@ -2,6 +2,8 @@ FactoryGirl.define do
factory :platform_kubernetes, class: Clusters::Platforms::Kubernetes do factory :platform_kubernetes, class: Clusters::Platforms::Kubernetes do
cluster cluster
namespace nil namespace nil
api_url 'https://kubernetes.example.com'
token 'a' * 40
trait :configured do trait :configured do
api_url 'https://kubernetes.example.com' api_url 'https://kubernetes.example.com'
......
...@@ -147,6 +147,9 @@ deploy_keys: ...@@ -147,6 +147,9 @@ deploy_keys:
- user - user
- deploy_keys_projects - deploy_keys_projects
- projects - projects
cluster:
- projects
- user
clusters: clusters:
- projects - projects
- user - user
......
...@@ -13,7 +13,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do ...@@ -13,7 +13,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do
let(:gcp_cluster_size) { 1 } let(:gcp_cluster_size) { 1 }
let(:created_at) { '2017-10-17 20:24:02.219679' } let(:created_at) { '2017-10-17 20:24:02.219679' }
let(:updated_at) { '2017-10-17 20:28:44.738998' } let(:updated_at) { '2017-10-17 20:28:44.738998' }
let(:enabled) { true } let(:enabled) { 1 } # true
let(:status_reason) { 'general error' } let(:status_reason) { 'general error' }
let(:project_namespace) { 'sample-app' } let(:project_namespace) { 'sample-app' }
let(:endpoint) { '111.111.111.111' } let(:endpoint) { '111.111.111.111' }
...@@ -50,7 +50,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do ...@@ -50,7 +50,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do
expect(Clusters::Platforms::Kubernetes.count).to eq(1) expect(Clusters::Platforms::Kubernetes.count).to eq(1)
expect(cluster.user).to eq(user) 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.name).to eq(gcp_cluster_name)
expect(cluster.provider_type).to eq('gcp') expect(cluster.provider_type).to eq('gcp')
expect(cluster.platform_type).to eq('kubernetes') expect(cluster.platform_type).to eq('kubernetes')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment