@@ -39,42 +39,53 @@ var _ = Describe("Connectors integration", func() {
3939 }
4040
4141 log .SetLevel (log .DebugLevel )
42- os .Unsetenv ("MAIL" ) // travis set this env var which make connector detect it
42+ err := os .Unsetenv ("MAIL" ) // travis set this env var which make connector detect it
43+ Expect (err ).ToNot (HaveOccurred ())
4344 os .Setenv ("MYSQL_URL" , CreateEnvValue (ServiceUrl {
4445 Type : "mysql" ,
4546 User : "user" ,
4647 Password : "password" ,
4748 Port : 3406 ,
4849 Target : "mydb" ,
4950 }))
50- os .Setenv ("POSTGRES_URL" , CreateEnvValue (ServiceUrl {
51+ err = os .Setenv ("POSTGRES_URL" , CreateEnvValue (ServiceUrl {
5152 Type : "postgres" ,
5253 User : "user" ,
5354 Password : "password" ,
5455 Port : 5532 ,
5556 Target : "mydb" ,
5657 Options : "sslmode=disable" ,
5758 }))
58- os .Setenv ("MSSQL_URL" , CreateEnvValue (ServiceUrl {
59+ Expect (err ).ToNot (HaveOccurred ())
60+ err = os .Setenv ("MSSQL_URL" , CreateEnvValue (ServiceUrl {
5961 Type : "sqlserver" ,
6062 User : "sa" ,
6163 Password : "password" ,
6264 Port : 1433 ,
6365 Target : "test" ,
6466 }))
65- os .Setenv ("MONGODB_URL" , CreateEnvValue (ServiceUrl {
67+ Expect (err ).ToNot (HaveOccurred ())
68+ err = os .Setenv ("MONGODB_URL" , CreateEnvValue (ServiceUrl {
6669 Type : "mongo" ,
6770 Port : 27017 ,
6871 Target : "test" ,
6972 }))
70- os .Setenv ("SSO_TOKEN_URI" , "http://localhost/tokenUri" )
71- os .Setenv ("SSO_AUTH_URI" , "http://localhost/authUri" )
72- os .Setenv ("SSO_USER_INFO_URI" , "http://localhost/userInfo" )
73- os .Setenv ("SSO_CLIENT_ID" , "myId" )
74- os .Setenv ("SSO_CLIENT_SECRET" , "mySecret" )
75- os .Setenv ("SSO_GRANT_TYPE" , "grant1,grant2" )
76- os .Setenv ("SSO_SCOPES" , "scope1,scope2" )
77- os .Setenv ("REDIS_URL" , CreateEnvValue (ServiceUrl {
73+ Expect (err ).ToNot (HaveOccurred ())
74+ err = os .Setenv ("SSO_TOKEN_URI" , "http://localhost/tokenUri" )
75+ Expect (err ).ToNot (HaveOccurred ())
76+ err = os .Setenv ("SSO_AUTH_URI" , "http://localhost/authUri" )
77+ Expect (err ).ToNot (HaveOccurred ())
78+ err = os .Setenv ("SSO_USER_INFO_URI" , "http://localhost/userInfo" )
79+ Expect (err ).ToNot (HaveOccurred ())
80+ err = os .Setenv ("SSO_CLIENT_ID" , "myId" )
81+ Expect (err ).ToNot (HaveOccurred ())
82+ err = os .Setenv ("SSO_CLIENT_SECRET" , "mySecret" )
83+ Expect (err ).ToNot (HaveOccurred ())
84+ err = os .Setenv ("SSO_GRANT_TYPE" , "grant1,grant2" )
85+ Expect (err ).ToNot (HaveOccurred ())
86+ err = os .Setenv ("SSO_SCOPES" , "scope1,scope2" )
87+ Expect (err ).ToNot (HaveOccurred ())
88+ err = os .Setenv ("REDIS_URL" , CreateEnvValue (ServiceUrl {
7889 Type : "redis" ,
7990 User : "redis" ,
8091 Password : "redis" ,
0 commit comments