MCPcopy
hub / github.com/getsops/sops / TestDestinationValidationAllThreeDestinationsConflict

Function TestDestinationValidationAllThreeDestinationsConflict

config/config_test.go:842–848  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

840}
841
842func TestDestinationValidationAllThreeDestinationsConflict(t *testing.T) {
843 _, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithAllThreeDestinations, t), "test/secrets.yaml", nil)
844 assert.NotNil(t, err, "Expected error when all three destinations are specified")
845 if err != nil {
846 assert.Contains(t, err.Error(), "more than one destinations were found")
847 }
848}
849
850func TestDestinationValidationSingleS3Destination(t *testing.T) {
851 validS3Config := []byte(`

Callers

nothing calls this directly

Calls 3

parseConfigFileFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected