(t *testing.T)
| 840 | } |
| 841 | |
| 842 | func 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 | |
| 850 | func TestDestinationValidationSingleS3Destination(t *testing.T) { |
| 851 | validS3Config := []byte(` |
nothing calls this directly
no test coverage detected