feat(target): add proxy certificate repos and protos (#1577)
This commit is contained in:
1 parent
bcd2a62890
commit
6afb42e334
13 files changed
+1489
-24
No files matched your search
@@ -268,4 +268,18 @@ func Test_GetOpts(t *testing.T) {
|
||||
opts := GetOpts(WithAliases(input))
|
||||
assert.Equal(input, opts.withAliases)
|
||||
})
|
||||
t.Run("WithAlias", func(t *testing.T) {
|
||||
assert, require := assert.New(t), require.New(t)
|
||||
al, err := talias.NewAlias(context.Background(), "global", "test")
|
||||
require.NoError(err)
|
||||
opts := GetOpts(WithAlias(al))
|
||||
assert.Equal(al, opts.withAlias)
|
||||
})
|
||||
t.Run("WithTargetId", func(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
opts := GetOpts(WithTargetId("testId"))
|
||||
testOpts := getDefaultOptions()
|
||||
testOpts.withTargetId = "testId"
|
||||
assert.Equal(opts, testOpts)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user