-
Notifications
You must be signed in to change notification settings - Fork 1
/
Testing.go
70 lines (54 loc) · 1.21 KB
/
Testing.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package cdk8s
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-core-go/cdk8s/jsii"
)
// Testing utilities for cdk8s applications.
type Testing interface {
}
// The jsii proxy struct for Testing
type jsiiProxy_Testing struct {
_ byte // padding
}
// Returns an app for testing with the following properties: - Output directory is a temp dir.
func Testing_App(props *AppProps) App {
_init_.Initialize()
if err := validateTesting_AppParameters(props); err != nil {
panic(err)
}
var returns App
_jsii_.StaticInvoke(
"cdk8s.Testing",
"app",
[]interface{}{props},
&returns,
)
return returns
}
// Returns: a Chart that can be used for tests.
func Testing_Chart() Chart {
_init_.Initialize()
var returns Chart
_jsii_.StaticInvoke(
"cdk8s.Testing",
"chart",
nil, // no parameters
&returns,
)
return returns
}
// Returns the Kubernetes manifest synthesized from this chart.
func Testing_Synth(chart Chart) *[]interface{} {
_init_.Initialize()
if err := validateTesting_SynthParameters(chart); err != nil {
panic(err)
}
var returns *[]interface{}
_jsii_.StaticInvoke(
"cdk8s.Testing",
"synth",
[]interface{}{chart},
&returns,
)
return returns
}