@@ -63,32 +63,12 @@ func renderContextWithUsageEnabled(t *testing.T) *common.RenderContext {
63
63
}
64
64
65
65
func renderContextWithStripeSecretSet (t * testing.T ) * common.RenderContext {
66
- ctx , err := common .NewRenderContext (config.Config {
67
- Domain : "test.domain.everything.awesome.is" ,
68
- Experimental : & experimental.Config {
69
- WebApp : & experimental.WebAppConfig {
70
- Server : & experimental.ServerConfig {StripeSecret : "some-stripe-secret" },
71
- Usage : & experimental.UsageConfig {Enabled : true },
72
- },
73
- },
74
- Database : config.Database {
75
- CloudSQL : & config.DatabaseCloudSQL {
76
- ServiceAccount : config.ObjectRef {
77
- Name : "gcp-db-creds-service-account-name" ,
78
- },
79
- },
80
- },
81
- }, versions.Manifest {
82
- Components : versions.Components {
83
- Usage : versions.Versioned {
84
- Version : "commit-test-latest" ,
85
- },
86
- ServiceWaiter : versions.Versioned {
87
- Version : "commit-test-latest" ,
88
- },
89
- },
90
- }, "test-namespace" )
91
- require .NoError (t , err )
66
+ ctx := renderContextWithUsageEnabled (t )
67
+
68
+ _ = ctx .WithExperimental (func (cfg * experimental.Config ) error {
69
+ cfg .WebApp .Server = & experimental.ServerConfig {StripeSecret : "some-stripe-secret" }
70
+ return nil
71
+ })
92
72
93
73
return ctx
94
74
}
0 commit comments