summaryrefslogtreecommitdiff
path: root/service/env
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 18:11:14 +0300
committerWolfy-J <[email protected]>2018-09-30 18:11:14 +0300
commit291b1464ee63c235dc6c86ac50225d326cd5cc54 (patch)
treedce75ee403f631fe9cd4ef99c95a91fae743fb3d /service/env
parentd2ad0520c23a9f4a0ed98eb54a5482ab62144065 (diff)
new env values
Diffstat (limited to 'service/env')
-rw-r--r--service/env/service_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/service/env/service_test.go b/service/env/service_test.go
index 28e0d15b..61fecd28 100644
--- a/service/env/service_test.go
+++ b/service/env/service_test.go
@@ -17,11 +17,11 @@ func Test_Init(t *testing.T) {
values, err := s.GetEnv()
assert.NoError(t, err)
- assert.Equal(t, "yes", values["rr"])
+ assert.Equal(t, "true", values["RR"])
}
func Test_Extend(t *testing.T) {
- s := NewService(map[string]string{"rr": "version"})
+ s := NewService(map[string]string{"RR": "version"})
s.Init(&Config{Values: map[string]string{"key": "value"}})
assert.Len(t, s.values, 2)
@@ -29,12 +29,12 @@ func Test_Extend(t *testing.T) {
values, err := s.GetEnv()
assert.NoError(t, err)
assert.Len(t, values, 2)
- assert.Equal(t, "version", values["rr"])
+ assert.Equal(t, "version", values["RR"])
assert.Equal(t, "value", values["key"])
}
func Test_Set(t *testing.T) {
- s := NewService(map[string]string{"rr": "version"})
+ s := NewService(map[string]string{"RR": "version"})
s.Init(&Config{Values: map[string]string{"key": "value"}})
assert.Len(t, s.values, 2)
@@ -45,7 +45,7 @@ func Test_Set(t *testing.T) {
values, err := s.GetEnv()
assert.NoError(t, err)
assert.Len(t, values, 3)
- assert.Equal(t, "version", values["rr"])
+ assert.Equal(t, "version", values["RR"])
assert.Equal(t, "value-new", values["key"])
assert.Equal(t, "new", values["other"])
}