@@ -6,15 +6,19 @@ import (
6
6
)
7
7
8
8
const (
9
- testProject = "test-project"
10
- testGAEService = "test-gae-service"
11
- testGAEVersion = "test-gae-version"
9
+ testProject = "test-project"
10
+ testGAEService = "test-gae-service"
11
+ testGAEVersion = "test-gae-version"
12
+ testRUNService = "test-run-service"
13
+ testRUNRevision = "test-run-revision"
12
14
)
13
15
14
16
func init () {
15
17
os .Setenv (EnvKeyGoogleCloudProject , testProject )
16
18
os .Setenv (EnvKeyGAEServiceName , testGAEService )
17
19
os .Setenv (EnvKeyGAEServiceVersion , testGAEVersion )
20
+ os .Setenv (EnvKeyRUNServiceName , testRUNService )
21
+ os .Setenv (EnvKeyRUNServiceRevision , testRUNRevision )
18
22
}
19
23
20
24
func TestEnviron (t * testing.T ) {
@@ -28,4 +32,10 @@ func TestEnviron(t *testing.T) {
28
32
if GAEServiceVersion != testGAEVersion {
29
33
t .Fatalf ("unexpected, expected: %s, actual: %#v" , testGAEVersion , GAEServiceVersion )
30
34
}
35
+ if RUNServiceName != testRUNService {
36
+ t .Fatalf ("unexpected, expected: %s, actual: %#v" , testRUNService , RUNServiceName )
37
+ }
38
+ if RUNServiceRevision != testRUNRevision {
39
+ t .Fatalf ("unexpected, expected: %s, actual: %#v" , testRUNRevision , RUNServiceRevision )
40
+ }
31
41
}
0 commit comments