diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-23 03:09:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-23 03:09:41 +0300 |
commit | b158645575a569bd46de15b42355940501902166 (patch) | |
tree | ef7ab6549bf28779cf01cbfd84eab23b757a1592 /spec/serializers/cluster_application_entity_spec.rb | |
parent | 22e60f1c61443a7efd8a2334f61556d19d6630be (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/cluster_application_entity_spec.rb')
-rw-r--r-- | spec/serializers/cluster_application_entity_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/serializers/cluster_application_entity_spec.rb b/spec/serializers/cluster_application_entity_spec.rb index 873fbf812cc..b81bdaa0d72 100644 --- a/spec/serializers/cluster_application_entity_spec.rb +++ b/spec/serializers/cluster_application_entity_spec.rb @@ -77,5 +77,17 @@ describe ClusterApplicationEntity do expect(subject[:pages_domain]).to eq(id: pages_domain.id, domain: pages_domain.domain) end end + + context 'for fluentd application' do + let(:application) { build(:clusters_applications_fluentd, :installed) } + + it 'includes host, port, protocol and log fields' do + expect(subject[:port]).to eq(514) + expect(subject[:host]).to eq("example.com") + expect(subject[:protocol]).to eq("tcp") + expect(subject[:waf_log_enabled]).to be true + expect(subject[:cilium_log_enabled]).to be true + end + end end end |