Removed import check for FQDN.
This commit is contained in:
parent
1436551bf6
commit
0757228257
1 changed files with 0 additions and 3 deletions
|
@ -19,15 +19,12 @@ class OtrsImportTest < ActiveSupport::TestCase
|
||||||
test 'check settings' do
|
test 'check settings' do
|
||||||
http = nil
|
http = nil
|
||||||
system_id = nil
|
system_id = nil
|
||||||
fqdn = nil
|
|
||||||
if ENV['IMPORT_OTRS_ENDPOINT'] =~ %r{^(http|https)://((.+?)\..+?)/}
|
if ENV['IMPORT_OTRS_ENDPOINT'] =~ %r{^(http|https)://((.+?)\..+?)/}
|
||||||
http = $1
|
http = $1
|
||||||
fqdn = $2
|
|
||||||
system_id = $3
|
system_id = $3
|
||||||
system_id.gsub!(/[A-z]/, '') # strip chars
|
system_id.gsub!(/[A-z]/, '') # strip chars
|
||||||
end
|
end
|
||||||
assert_equal( system_id, Setting.get('system_id'), 'system_id' )
|
assert_equal( system_id, Setting.get('system_id'), 'system_id' )
|
||||||
assert_equal( fqdn, Setting.get('fqdn'), 'fqdn' )
|
|
||||||
assert_equal( http, Setting.get('http_type'), 'http_type' )
|
assert_equal( http, Setting.get('http_type'), 'http_type' )
|
||||||
assert_equal( 'Example Company', Setting.get('organization'), 'organization' )
|
assert_equal( 'Example Company', Setting.get('organization'), 'organization' )
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue