Skip to content

Commit e9e33d3

Browse files
committed
Fix options export, set as ignored attribute
1 parent 361973c commit e9e33d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/models/runtime/route.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class OutOfVIPException < CloudController::Errors::InvalidRelation; end
4646

4747
add_association_dependencies route_mappings: :destroy
4848

49-
export_attributes :host, :path, :domain_guid, :space_guid, :service_instance_guid, :port
50-
import_attributes :host, :path, :domain_guid, :space_guid, :app_guids, :port
49+
export_attributes :host, :path, :domain_guid, :space_guid, :service_instance_guid, :port, :options
50+
import_attributes :host, :path, :domain_guid, :space_guid, :app_guids, :port, :options
5151

5252
add_association_dependencies labels: :destroy
5353
add_association_dependencies annotations: :destroy

spec/support/legacy_api_dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module LegacyApiDsl
44
extend ActiveSupport::Concern
55

66
def validate_response(model, json, expected_values: {}, ignored_attributes: [], expected_attributes: nil)
7-
ignored_attributes.push :guid
7+
ignored_attributes.push :guid, :options
88
(expected_attributes || expected_attributes_for_model(model)).each do |expected_attribute|
99
# refactor: pass exclusions, and figure out which are valid to not be there
1010
next if ignored_attributes.include? expected_attribute

0 commit comments

Comments
 (0)