@@ -16,7 +16,7 @@ var ctx = context.Background()
16
16
17
17
func TestDeploy (t * testing.T ) {
18
18
b := NewByoc (ctx , client.GrpcClient {}, "ten ant" ) // no domain
19
- b .PulumiProject = "byoc_integration_test"
19
+ b .ProjectName = "byoc_integration_test"
20
20
21
21
t .Run ("multiple ingress without domain" , func (t * testing.T ) {
22
22
t .Skip ("skipping test: delegation enabled" )
@@ -42,7 +42,7 @@ func TestDeploy(t *testing.T) {
42
42
43
43
func TestTail (t * testing.T ) {
44
44
b := NewByoc (ctx , client.GrpcClient {}, "TestTail" )
45
- b .PulumiProject = "byoc_integration_test"
45
+ b .ProjectName = "byoc_integration_test"
46
46
b .ProjectDomain = "example.com" // avoid rpc call
47
47
48
48
ss , err := b .Follow (context .Background (), & defangv1.TailRequest {})
@@ -70,7 +70,7 @@ func TestTail(t *testing.T) {
70
70
71
71
func TestGetServices (t * testing.T ) {
72
72
b := NewByoc (ctx , client.GrpcClient {}, "TestGetServices" )
73
- b .PulumiProject = "byoc_integration_test"
73
+ b .ProjectName = "byoc_integration_test"
74
74
75
75
services , err := b .GetServices (context .Background ())
76
76
if err != nil {
@@ -90,7 +90,7 @@ func TestPutSecret(t *testing.T) {
90
90
const secretName = "hello"
91
91
92
92
b := NewByoc (ctx , client.GrpcClient {}, "TestPutSecret" )
93
- b .PulumiProject = "byoc_integration_test"
93
+ b .ProjectName = "byoc_integration_test"
94
94
95
95
t .Run ("delete non-existent" , func (t * testing.T ) {
96
96
err := b .DeleteConfig (context .Background (), & defangv1.Secrets {Names : []string {secretName }})
@@ -125,7 +125,7 @@ func TestPutSecret(t *testing.T) {
125
125
b .DeleteConfig (context .Background (), & defangv1.Secrets {Names : []string {secretName }})
126
126
})
127
127
// Check that the secret is in the list
128
- prefix := "/Defang/" + b .PulumiProject + "/beta/"
128
+ prefix := "/Defang/" + b .ProjectName + "/beta/"
129
129
secrets , err := b .driver .ListSecretsByPrefix (context .Background (), prefix )
130
130
if err != nil {
131
131
t .Fatalf ("unexpected error: %v" , err )
@@ -142,7 +142,7 @@ func TestPutSecret(t *testing.T) {
142
142
143
143
func TestListSecrets (t * testing.T ) {
144
144
b := NewByoc (ctx , client.GrpcClient {}, "TestListSecrets" )
145
- b .PulumiProject = "byoc_integration_test2" // ensure we don't accidentally see the secrets from the other test
145
+ b .ProjectName = "byoc_integration_test2" // ensure we don't accidentally see the secrets from the other test
146
146
147
147
t .Run ("list" , func (t * testing.T ) {
148
148
secrets , err := b .ListConfig (context .Background ())
0 commit comments