mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 21:45:26 +01:00
* Add vault/api to vendor/ * Adds support for sops publish-ing to Vault * Adds support for publishing secrets (unencrypted) to Vault * Adds a new EmitAsMap for TreeBanches * Adds documentation about sops publish-ing to Vault * Initial integration/functional test for publishing to vault
28 lines
656 B
Go
28 lines
656 B
Go
// Licensed under the MIT license, see LICENCE file for details.
|
|
|
|
package quicktest_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
qt "github.com/frankban/quicktest"
|
|
)
|
|
|
|
func TestCommentf(t *testing.T) {
|
|
c := qt.Commentf("the answer is %d", 42)
|
|
comment := c.String()
|
|
expectedComment := "the answer is 42"
|
|
if comment != expectedComment {
|
|
t.Fatalf("comment error:\ngot %q\nwant %q", comment, expectedComment)
|
|
}
|
|
}
|
|
|
|
func TestConstantCommentf(t *testing.T) {
|
|
const expectedComment = "bad wolf"
|
|
c := qt.Commentf(expectedComment)
|
|
comment := c.String()
|
|
if comment != expectedComment {
|
|
t.Fatalf("constant comment error:\ngot %q\nwant %q", comment, expectedComment)
|
|
}
|
|
}
|