96
97
98
99
100
101
102
103
104
105
106
107
|
# File 'lib/gooddata/cloud_resources/mssql/mssql_client.rb', line 96
def validate
raise "SSL Mode should be prefer, require and verify-full" unless @ssl_mode == 'prefer' || @ssl_mode == 'require' || @ssl_mode == 'verify-full'
raise "Instance name is not supported" if @url !~ /^[^\\]*$/
raise "The connection url is invalid. Parameter is not supported." if @url.include? MSSQL_SEPARATOR_PARAM
url_matches = @url.scan(MSSQL_URL_PATTERN)
raise "Cannot reach the url" if url_matches.nil? || url_matches.length.zero?
raise "The authentication method is not supported." unless @authentication['basic'] || @authentication['activeDirectoryPassword']
end
|