summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-01 16:12:44 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-01 16:12:44 +0900
commit6571efb6c3afd568c019e7bb46aba84328a4e821 (patch)
tree24d455c614cf37dac75c6e83d4d58555247bc7b0 /spec/services
parentef3ebed6d3d3910bdf6080d6304ee7c5d5b0cc87 (diff)
downloadgitlab-ce-6571efb6c3afd568c019e7bb46aba84328a4e821.tar.gz
Fix spec. Fix usage ping. Fix warnings by adding new models and attributes.
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/clusters/create_service_spec.rb4
-rw-r--r--spec/services/clusters/gcp/finalize_creation_service_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/clusters/create_service_spec.rb b/spec/services/clusters/create_service_spec.rb
index b33578d6acd..9ed6ae8c2fc 100644
--- a/spec/services/clusters/create_service_spec.rb
+++ b/spec/services/clusters/create_service_spec.rb
@@ -42,7 +42,8 @@ describe Clusters::CreateService do
expect(result.provider.machine_type).to eq('machine_type-a')
expect(result.provider.access_token).to eq(access_token)
expect(result.platform.namespace).to eq('custom-namespace')
- expect(result.platform.valid?).to be_falsey
+ expect(result.platform.api_url).to eq(Clusters::CreateService::TEMPOLARY_API_URL)
+ expect(result.platform.token).to eq(Clusters::CreateService::TEMPOLARY_TOKEN)
end
end
@@ -99,7 +100,6 @@ describe Clusters::CreateService do
expect(result.project).to eq(project)
expect(result.provider).to be_nil
expect(result.platform.namespace).to eq('custom-namespace')
- expect(result.platform.valid?).to be_truthy
end
end
diff --git a/spec/services/clusters/gcp/finalize_creation_service_spec.rb b/spec/services/clusters/gcp/finalize_creation_service_spec.rb
index 70ea1cbca46..ca7741f641b 100644
--- a/spec/services/clusters/gcp/finalize_creation_service_spec.rb
+++ b/spec/services/clusters/gcp/finalize_creation_service_spec.rb
@@ -40,7 +40,7 @@ describe Clusters::Gcp::FinalizeCreationService do
{
endpoint: endpoint,
username: username,
- password: password,
+ password: password
}
)