From 01963d1c6e821f52263c1b08f01aab0f2bcaaf23 Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Thu, 25 Jan 2018 13:06:01 +0200 Subject: [PATCH] Add test for service ports with same number different protocol https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/89 --- .../providers/openshift/container_manager/refresher_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/models/manageiq/providers/openshift/container_manager/refresher_spec.rb b/spec/models/manageiq/providers/openshift/container_manager/refresher_spec.rb index dd8ff989..8e3fffe3 100644 --- a/spec/models/manageiq/providers/openshift/container_manager/refresher_spec.rb +++ b/spec/models/manageiq/providers/openshift/container_manager/refresher_spec.rb @@ -356,6 +356,11 @@ def assert_specific_container_services expect(@containersrv.container_project).to eq(ContainerProject.find_by(:name => "default")) expect(@containersrv.ext_management_system).to eq(@ems) expect(@containersrv.container_image_registry).to be_nil + expect(@containersrv.container_service_port_configs.pluck(:name, :protocol, :port)).to contain_exactly( + ["https", "TCP", 443], + ["dns", "UDP", 53], + ["dns-tcp", "TCP", 53] + ) end def assert_specific_container_image_registry