Skip to content

Commit

Permalink
Modifications to getter
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeg committed Aug 11, 2023
1 parent 39c7981 commit 4f53703
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/api_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@

When(/^I execute doms test on "([^"]*)" via API$/) do |client|
# base_channel = LABEL_BY_BASE_CHANNEL[BASE_CHANNEL_BY_CLIENT[client]]
base_channel = get_product_channel(LABEL_BY_BASE_CHANNEL)
base_channel = get_product_channel(LABEL_BY_BASE_CHANNEL, client)
puts base_channel
end

Expand Down
9 changes: 5 additions & 4 deletions testsuite/features/support/commonlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ def compute_channels_to_leave_running

# This function returns the correct channel names defined in 'constants.rb' depending on the product
# Params:
# +channel_name:: the channel you want to get.
# See 'constants.rb' for more information on what channel constants we have
def get_product_channel(channel_name)
channel_name[product]
# +channel_map:: the channel you want
# +map_key:: what you are looking for
# See 'constants.rb' for more information on what channels/keys we have
def get_os_channel_from_map(channel_map, map_key)
channel_map[product][map_key]
end

def count_table_items
Expand Down

0 comments on commit 4f53703

Please sign in to comment.