{"modulePath":"github.com/LinuxGit/kops","version":"v1.15.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testutils\n\n## Functions\n\n```go\nfunc AssertMatchesFile(t *testing.T, actual string, p string)\n```\nAssertMatchesFile matches the actual value to a with expected file. If HACK\\_UPDATE\\_EXPECTED\\_IN\\_PLACE is set, it will write the actual value to the expected file, which is very handy when updating our tests.\n\n```go\nfunc ValidateTasks(t *testing.T, basedir string, context *fi.ModelBuilderContext)\n```\n\n## Types\n\n```go\ntype IntegrationTestHarness struct {\n\tTempDir string\n\tT       *testing.T\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewIntegrationTestHarness(t *testing.T) *IntegrationTestHarness\n```\n\n```go\nfunc (h *IntegrationTestHarness) Close()\n```\n\n```go\nfunc (h *IntegrationTestHarness) MockKopsVersion(version string)\n```\nMockKopsVersion will set the kops version to the specified value, until Close is called\n\n```go\nfunc (h *IntegrationTestHarness) SetupMockAWS() *awsup.MockAWSCloud\n```\n\n```go\nfunc (h *IntegrationTestHarness) SetupMockGCE()\n```\nSetupMockGCE configures a mock GCE cloud provider\n\n```go\ntype Model struct {\n\tCluster        *kops.Cluster\n\tInstanceGroups []*kops.InstanceGroup\n}\n```\n\n```go\nfunc LoadModel(basedir string) (*Model, error)\n```\nLoadModel loads a cluster and instancegroups from a cluster.yaml file found in basedir\n\n","path":"github.com/LinuxGit/kops/pkg/testutils","name":"testutils","synopsis":"","isRedistributable":true}
