Sha256: 08b66c1c06e39334487174f6475e194dc62481d11adb28f65d0822a9e62d8adc
Contents?: true
Size: 959 Bytes
Versions: 5
Compression:
Stored size: 959 Bytes
Contents
module OpsManagerUiDrivers module Version11 class NetworkConfiguration def initialize(browser:, product_id:) @browser = browser @product_id = product_id end def configure(network_configuration) open_network_configuration configure_network(network_configuration) end private attr_reader :browser, :product_id def open_network_configuration browser.visit("/components/#{product_id}/forms/network/edit") end def configure_network(network_configuration) browser.fill_in 'network[subnet]', with: network_configuration['subnet'] browser.fill_in 'network[reserved_ip_ranges]', with: network_configuration['reserved_ip_ranges'] browser.fill_in 'network[dns]', with: network_configuration['dns'] browser.fill_in 'network[gateway]', with: network_configuration['gateway'] browser.click_on 'Save' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems