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

Function TestDestinationValidationS3GCSConflict

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

Source from the content-addressed store, hash-verified

816`)
817
818func TestDestinationValidationS3GCSConflict(t *testing.T) {
819 _, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithS3GCSConflict, t), "test/secrets.yaml", nil)
820 assert.NotNil(t, err, "Expected error when both S3 and GCS destinations are specified")
821 if err != nil {
822 assert.Contains(t, err.Error(), "more than one destinations were found")
823 }
824}
825
826func TestDestinationValidationS3VaultConflict(t *testing.T) {
827 _, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithS3VaultConflict, t), "test/secrets.yaml", nil)

Callers

nothing calls this directly

Calls 3

parseConfigFileFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected