(t *testing.T)
| 713 | } |
| 714 | |
| 715 | func TestLoadConfigFileWithDestinationRule(t *testing.T) { |
| 716 | conf, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithDestinationRule, t), "barfoo", nil) |
| 717 | assert.Nil(t, err) |
| 718 | assert.Equal(t, "newpgp", conf.KeyGroups[0][0].ToString()) |
| 719 | assert.NotNil(t, conf.Destination) |
| 720 | assert.Equal(t, "s3://foobar/test/barfoo", conf.Destination.Path("barfoo")) |
| 721 | } |
| 722 | |
| 723 | func TestLoadConfigFileWithVaultDestinationRules(t *testing.T) { |
| 724 | conf, err := parseDestinationRuleForFile(parseConfigFile(sampleConfigWithVaultDestinationRules, t), "vault-v2/barfoo", nil) |
nothing calls this directly
no test coverage detected