@@ -2,7 +2,6 @@ package integration
2
2
3
3
import (
4
4
"context"
5
- "fmt"
6
5
"regexp"
7
6
"testing"
8
7
@@ -38,12 +37,14 @@ func TestEnvsCLI(t *testing.T) {
38
37
tcli .StderrEmpty (),
39
38
)
40
39
40
+ // TODO(Faris) : uncomment this when we can safely purge the environments
41
+ // the integrations tests would create in the sidecar
41
42
// Successfully create environment.
42
- c .Run (ctx , "coder envs create --image " + ubuntuImgID + " test-ubuntu" ).Assert (t ,
43
- tcli .Success (),
44
- // why does flog.Success write to stderr?
45
- tcli .StderrMatches (regexp .QuoteMeta ("Successfully created environment \" test-ubuntu\" " )),
46
- )
43
+ // c.Run(ctx, "coder envs create --image "+ubuntuImgID+" test-ubuntu").Assert(t,
44
+ // tcli.Success(),
45
+ // // why does flog.Success write to stderr?
46
+ // tcli.StderrMatches(regexp.QuoteMeta("Successfully created environment \"test-ubuntu\"")),
47
+ // )
47
48
48
49
// Invalid environment name should fail.
49
50
c .Run (ctx , "coder envs create --image " + ubuntuImgID + " this-IS-an-invalid-EnvironmentName" ).Assert (t ,
@@ -52,11 +53,13 @@ func TestEnvsCLI(t *testing.T) {
52
53
tcli .StderrMatches (regexp .QuoteMeta ("environment name must conform to regex ^[a-z0-9]([a-z0-9-]+)?" )),
53
54
)
54
55
56
+ // TODO(Faris) : uncomment this when we can safely purge the environments
57
+ // the integrations tests would create in the sidecar
55
58
// Successfully provision environment with fractional resource amounts
56
- c .Run (ctx , fmt .Sprintf (`coder envs create -i %s -c 1.2 -m 1.4 non-whole-resource-amounts` , ubuntuImgID )).Assert (t ,
57
- tcli .Success (),
58
- tcli .StderrMatches (regexp .QuoteMeta ("Successfully created environment \" non-whole-resource-amounts\" " )),
59
- )
59
+ // c.Run(ctx, fmt.Sprintf(`coder envs create -i %s -c 1.2 -m 1.4 non-whole-resource-amounts`, ubuntuImgID)).Assert(t,
60
+ // tcli.Success(),
61
+ // tcli.StderrMatches(regexp.QuoteMeta("Successfully created environment \"non-whole-resource-amounts\"")),
62
+ // )
60
63
61
64
// Image does not exist should fail.
62
65
c .Run (ctx , "coder envs create --image does-not-exist env-will-not-be-created" ).Assert (t ,
0 commit comments