Maintains support for loading old Driver config.json that use the singular `SecurityGroupName` field, but also adds a new plural `SecurityGroupNames` field. This change also bumps to latest stretchr/testify, in the course of adding a dep on stretchr/testify/mock to help test the modified `configureSecurityGroups` code. The unused `deleteSecurityGroup` is dropped as well. Signed-off-by: John Sirois <john.sirois@gmail.com> Signed-off-by: Bill Farner <terasurfer@gmail.com>
17 lines
366 B
Go
17 lines
366 B
Go
package assert
|
|
|
|
// Assertions provides assertion methods around the
|
|
// TestingT interface.
|
|
type Assertions struct {
|
|
t TestingT
|
|
}
|
|
|
|
// New makes a new Assertions object for the specified TestingT.
|
|
func New(t TestingT) *Assertions {
|
|
return &Assertions{
|
|
t: t,
|
|
}
|
|
}
|
|
|
|
//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl
|