@@ -9,34 +9,17 @@ import (
99
1010func TestConfig (t * testing.T ) {
1111 ec := EnvConfigurer {}
12- t .Run ("Obtendo url de serviços da urbs" , func (t * testing.T ) {
13- want := os .Getenv ("CWBUS_URBS_SERVICE_URL" )
14- got := ec .ServiceURL ()
15- test .AssertStringsEqual (t , want , got )
16- })
17-
18- t .Run ("Obtendo codigo urbs" , func (t * testing.T ) {
19- want := os .Getenv ("CWBUS_URBS_CODE" )
20- got := ec .UrbsCode ()
21- test .AssertStringsEqual (t , want , got )
22- })
2312
2413 t .Run ("Obtendo conexão com o banco" , func (t * testing.T ) {
25- want := os .Getenv ("CWBUS_DB_URL " )
14+ want := os .Getenv ("ONIBUSIO_DB_URL " )
2615 got := ec .DBStrConn ()
2716 test .AssertStringsEqual (t , want , got )
2817 })
2918
3019 t .Run ("Obtendo nome do banco" , func (t * testing.T ) {
31- want := os .Getenv ("CWBUS_DB_HIST " )
20+ want := os .Getenv ("ONIBUSIO_DB_HIST " )
3221 got := ec .DBName ()
3322 test .AssertStringsEqual (t , want , got )
3423 })
3524
36- t .Run ("Obtendo url para acordar dyno" , func (t * testing.T ) {
37- want := os .Getenv ("CWBUS_WAKEUP_URL" )
38- got := ec .WakeUpURL ()
39- test .AssertStringsEqual (t , want , got )
40- })
41-
4225}
0 commit comments