-
Notifications
You must be signed in to change notification settings - Fork 3
/
target_test.go
60 lines (56 loc) · 1.17 KB
/
target_test.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
package assumer
import (
"reflect"
"testing"
"github.com/aws/aws-sdk-go/service/sts"
)
func TestTargetPlane_Assume(t *testing.T) {
type fields struct {
Plane Plane
}
type args struct {
c *sts.AssumeRoleOutput
}
tests := []struct {
name string
fields fields
args args
want *sts.AssumeRoleOutput
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
tgt := &TargetPlane{
Plane: tt.fields.Plane,
}
got, err := tgt.Assume(tt.args.c)
if (err != nil) != tt.wantErr {
t.Errorf("%q. TargetPlane.Assume() error = %v, wantErr %v", tt.name, err, tt.wantErr)
continue
}
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("%q. TargetPlane.Assume() = %v, want %v", tt.name, got, tt.want)
}
}
}
func TestTargetPlane_GetDefaults(t *testing.T) {
type fields struct {
Plane Plane
}
tests := []struct {
name string
fields fields
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
tgt := &TargetPlane{
Plane: tt.fields.Plane,
}
if err := tgt.GetDefaults(); (err != nil) != tt.wantErr {
t.Errorf("%q. TargetPlane.GetDefaults() error = %v, wantErr %v", tt.name, err, tt.wantErr)
}
}
}