Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Optionally consume cc link for app_domains in smoke tests #149

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jobs/smoke-tests/spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ consumes:
- name: proxy
type: proxy
optional: true
- name: cloud_controller
type: cloud_controller
optional: true

properties:
cf.api_url:
Expand Down
4 changes: 3 additions & 1 deletion jobs/smoke-tests/templates/config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ proxy_urls = proxy_ips.each_with_index.map do |_, index|
end

apps_domain=nil
if_p('cf.app_domains') do |domains|
if_link('cloud_controller') do |cloud_controller|
apps_domain=cloud_controller.p('app_domains').first
end.else_if_p('cf.app_domains') do |domains|
apps_domain=domains.first
end

Expand Down