package testing
import "github.com/oslokommune/okctl/pkg/cfn/components/testing"
Package testing contains some helpers for testing the cloud formation templates of components
Index ¶
- func NewNameReferencer(name string) cfn.NameReferencer
- func RunTests(t *testing.T, testCases []CloudFormationTemplateTestCase, callback func([]byte))
- type CloudFormationTemplateTestCase
Functions ¶
func NewNameReferencer ¶
func NewNameReferencer(name string) cfn.NameReferencer
NewNameReferencer returns an initialised name referencer
func RunTests ¶
func RunTests(t *testing.T, testCases []CloudFormationTemplateTestCase, callback func([]byte))
RunTests runs the cloud formation template tests
Types ¶
type CloudFormationTemplateTestCase ¶
type CloudFormationTemplateTestCase struct { Name string Golden string Content cfn.ResourceNameOutputReferencer }
CloudFormationTemplateTestCase contains the required fields for setting up a test
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 18 hours ago –
Tools for package owners.