@@ -149,7 +149,7 @@ func UpdateSnapshot(t testing.TestingT, options *Options, yamlData string, relea
149
149
require .NoError (t , UpdateSnapshotE (t , options , yamlData , releaseName ))
150
150
}
151
151
152
- // UpdateSnapshot creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
152
+ // UpdateSnapshotE creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
153
153
// It is one of the two functions needed to implement snapshot based testing for helm.
154
154
// see https://github.com/gruntwork-io/terratest/issues/1377
155
155
// A snapshot is used to compare the current manifests of a chart with the previous manifests.
@@ -190,8 +190,8 @@ func UpdateSnapshotE(t testing.TestingT, options *Options, yamlData string, rele
190
190
// DiffAgainstSnapshot compare the current manifests of a chart (e.g bitnami/nginx)
191
191
// with the previous manifests stored in the snapshot.
192
192
// see https://github.com/gruntwork-io/terratest/issues/1377
193
- // It returns the number of difference between the two manifest snaphost or -1 in case of error
194
- // It will failed the test if there is an error while reading or writing the two manifests in the file system
193
+ // It returns the number of difference between the two manifests or -1 in case of error
194
+ // It will fail the test if there is an error while reading or writing the two manifests in the file system
195
195
func DiffAgainstSnapshot (t testing.TestingT , options * Options , yamlData string , releaseName string ) int {
196
196
numberOfDiffs , err := DiffAgainstSnapshotE (t , options , yamlData , releaseName )
197
197
require .NoError (t , err )
@@ -201,7 +201,7 @@ func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string,
201
201
// DiffAgainstSnapshotE compare the current manifests of a chart (e.g bitnami/nginx)
202
202
// with the previous manifests stored in the snapshot.
203
203
// see https://github.com/gruntwork-io/terratest/issues/1377
204
- // It returns the number of difference between the two manifest snaphost or -1 in case of error
204
+ // It returns the number of difference between the manifests or -1 in case of error
205
205
func DiffAgainstSnapshotE (t testing.TestingT , options * Options , yamlData string , releaseName string ) (int , error ) {
206
206
207
207
var snapshotDir = "__snapshot__"
0 commit comments