grafana/pkg/util
Sofia Papagiannaki 886bad2fd5
Util: Modify SplitHostPortDefault not to return an error for empty input (#20351)
* Util: Optionally allow empty input in SplitHostPortDefault

Due to a recent change the SQL Server tests failed because passing an
empty datasource url in `util.SplitHostPortDefault` was no more allowed.
This fix contains the following modifications:
- Modifies the util.SplitHostPortDefault not to return an error for empty input.
- Modifies the util.SplitHostPort to return an error for empty input.
- Introduces an additional test for empty input.
2019-11-18 10:42:51 +02:00
..
errutil backend: replace /pkg/errors with errutil (#17065) 2019-05-15 12:20:17 +02:00
encoding_test.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
encoding.go pkg/util: Replace custom pbkdf2 implementation by maintained version (#19941) 2019-11-06 10:03:10 +02:00
encryption_test.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
encryption.go pkg/util: Replace custom pbkdf2 implementation by maintained version (#19941) 2019-11-06 10:03:10 +02:00
filepath.go pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues 2019-01-28 22:37:44 +01:00
ip_address_test.go Util: Modify SplitHostPortDefault not to return an error for empty input (#20351) 2019-11-18 10:42:51 +02:00
ip_address.go Util: Modify SplitHostPortDefault not to return an error for empty input (#20351) 2019-11-18 10:42:51 +02:00
json.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
math.go Provisioning: Do not allow deletion of provisioned dashboards (#16211) 2019-04-10 13:29:10 +02:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
shortid_generator_test.go pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues 2019-01-28 22:37:44 +01:00
shortid_generator.go pkg/util/{filepath.go,shortid_generator.go}: Fix golint issues 2019-01-28 22:37:44 +01:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
strings_test.go CLI: Add command to migrate all datasources to use encrypted password fields (#17118) 2019-05-27 10:47:21 +02:00
strings.go CLI: Add command to migrate all datasources to use encrypted password fields (#17118) 2019-05-27 10:47:21 +02:00
url_test.go pkg/util/{ip.go,url.go}: Fix some golint issues 2019-01-28 22:29:20 +01:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
validation_test.go Fixing bug in url query reader and added test cases 2018-08-07 18:43:59 -07:00
validation.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00