We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b139ad commit cb67f6fCopy full SHA for cb67f6f
1 file changed
internal/decryptor/decryptor_test.go
@@ -704,7 +704,8 @@ func TestDecryptor_DecryptResource(t *testing.T) {
704
got, err := d.DecryptResource(secret)
705
g.Expect(err).ToNot(HaveOccurred())
706
g.Expect(got).ToNot(BeNil())
707
- g.Expect(got.GetDataMap()).To(HaveKeyWithValue(corev1.DockerConfigJsonKey, base64.StdEncoding.EncodeToString(plainData)))
+ plainDataWithTrailingNewline := append(plainData, '\n') // https://github.com/getsops/sops/issues/1825
708
+ g.Expect(got.GetDataMap()).To(HaveKeyWithValue(corev1.DockerConfigJsonKey, base64.StdEncoding.EncodeToString(plainDataWithTrailingNewline)))
709
})
710
711
t.Run("nil resource", func(t *testing.T) {
0 commit comments