diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-12 06:22:15 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-15 09:01:11 +0300 |
commit | c1828eaed56159998d1eaafdaa135f1b3480549b (patch) | |
tree | 8cd903c910454bfdbc2bfdb1b1e9709eaa5583f1 /spec/serializers/cluster_application_entity_spec.rb | |
parent | 5ca692b0b04b4f349fb5a08b9dcc7d87c774934e (diff) |
Persist external IP of ingress controller created for GKE (#42643)
Diffstat (limited to 'spec/serializers/cluster_application_entity_spec.rb')
-rw-r--r-- | spec/serializers/cluster_application_entity_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/serializers/cluster_application_entity_spec.rb b/spec/serializers/cluster_application_entity_spec.rb index b5a55b4ef6e..70b274083b2 100644 --- a/spec/serializers/cluster_application_entity_spec.rb +++ b/spec/serializers/cluster_application_entity_spec.rb @@ -26,5 +26,19 @@ describe ClusterApplicationEntity do expect(subject[:status_reason]).to eq(application.status_reason) end end + + context 'for ingress application' do + let(:application) do + build( + :clusters_applications_ingress, + :installed, + external_ip: '111.222.111.222', + ) + end + + it 'includes external_ip' do + expect(subject[:external_ip]).to eq('111.222.111.222') + end + end end end |