Skip to content

Commit

Permalink
wovn_host in dev mode returns hostname without port (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
suplo authored Jul 14, 2020
1 parent 1ca75f8 commit b39af8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wovnrb/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def supported_langs

def wovn_host
if @settings['wovn_dev_mode']
'dev-wovn.io:3000'
'dev-wovn.io'
else
'wovn.io'
end
Expand Down
2 changes: 1 addition & 1 deletion lib/wovnrb/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Wovnrb
VERSION = '2.2.5'.freeze
VERSION = '2.2.6'.freeze
end
1 change: 1 addition & 0 deletions test/lib/store_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def test_default_dev_mode_settings
store.update_settings('wovn_dev_mode' => true)

assert(store.dev_mode?)
assert_equal('dev-wovn.io', store.wovn_host)
assert_equal('http://dev-wovn.io:3001/v0/', store.settings['api_url'])
assert_equal(3, store.settings['api_timeout_seconds'])
end
Expand Down

0 comments on commit b39af8e

Please sign in to comment.