Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jguionnet committed Jan 8, 2024
1 parent 6ea6eff commit b4b4d46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/helm/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func UpdateSnapshot(t testing.TestingT, options *Options, yamlData string, relea
require.NoError(t, UpdateSnapshotE(t, options, yamlData, releaseName))
}

// UpdateSnapshot creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
// UpdateSnapshotE creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
// It is one of the two functions needed to implement snapshot based testing for helm.
// see https://github.com/gruntwork-io/terratest/issues/1377
// A snapshot is used to compare the current manifests of a chart with the previous manifests.
Expand Down Expand Up @@ -190,8 +190,8 @@ func UpdateSnapshotE(t testing.TestingT, options *Options, yamlData string, rele
// DiffAgainstSnapshot compare the current manifests of a chart (e.g bitnami/nginx)
// with the previous manifests stored in the snapshot.
// see https://github.com/gruntwork-io/terratest/issues/1377
// It returns the number of difference between the two manifest snaphost or -1 in case of error
// It will failed the test if there is an error while reading or writing the two manifests in the file system
// It returns the number of difference between the two manifests or -1 in case of error
// It will fail the test if there is an error while reading or writing the two manifests in the file system
func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string, releaseName string) int {
numberOfDiffs, err := DiffAgainstSnapshotE(t, options, yamlData, releaseName)
require.NoError(t, err)
Expand All @@ -201,7 +201,7 @@ func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string,
// DiffAgainstSnapshotE compare the current manifests of a chart (e.g bitnami/nginx)
// with the previous manifests stored in the snapshot.
// see https://github.com/gruntwork-io/terratest/issues/1377
// It returns the number of difference between the two manifest snaphost or -1 in case of error
// It returns the number of difference between the manifests or -1 in case of error
func DiffAgainstSnapshotE(t testing.TestingT, options *Options, yamlData string, releaseName string) (int, error) {

var snapshotDir = "__snapshot__"
Expand Down

0 comments on commit b4b4d46

Please sign in to comment.