|
|
@ -290,7 +290,7 @@ func TestNew(t *testing.T) {
|
|
|
|
caPool: testCaPool,
|
|
|
|
caPool: testCaPool,
|
|
|
|
}, false},
|
|
|
|
}, false},
|
|
|
|
{"ok creator", args{context.Background(), apiv1.Options{
|
|
|
|
{"ok creator", args{context.Background(), apiv1.Options{
|
|
|
|
IsCreator: true, Project: testProject, Location: testLocation, CAPool: testCaPool,
|
|
|
|
IsCreator: true, Project: testProject, Location: testLocation, CaPool: testCaPool,
|
|
|
|
}}, &CloudCAS{
|
|
|
|
}}, &CloudCAS{
|
|
|
|
client: &testClient{},
|
|
|
|
client: &testClient{},
|
|
|
|
project: testProject,
|
|
|
|
project: testProject,
|
|
|
@ -311,7 +311,7 @@ func TestNew(t *testing.T) {
|
|
|
|
IsCreator: true, Project: testProject, Location: "",
|
|
|
|
IsCreator: true, Project: testProject, Location: "",
|
|
|
|
}}, nil, true},
|
|
|
|
}}, nil, true},
|
|
|
|
{"fail caPool", args{context.Background(), apiv1.Options{
|
|
|
|
{"fail caPool", args{context.Background(), apiv1.Options{
|
|
|
|
IsCreator: true, Project: testProject, Location: testLocation, CAPool: "",
|
|
|
|
IsCreator: true, Project: testProject, Location: testLocation, CaPool: "",
|
|
|
|
}}, nil, true},
|
|
|
|
}}, nil, true},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, tt := range tests {
|
|
|
|
for _, tt := range tests {
|
|
|
|