File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 44 "context"
55 "testing"
66
7- "github.com/common-fate/granted/pkg/config"
87 "github.com/common-fate/granted/pkg/granted/registry/gitregistry"
98 "github.com/stretchr/testify/assert"
109)
@@ -49,20 +48,13 @@ func TestRegistryWithRef(t *testing.T) {
4948
5049 for _ , tt := range tests {
5150 t .Run (tt .name , func (t * testing.T ) {
52- // Create a test config
53- cfg := & config.Config {
54- ProfileRegistry : & config.ProfileRegistry {
55- Registries : []config.Registry {},
56- },
57- }
58-
5951 // Create the registry
6052 registry , err := gitregistry .New (tt .registryOpts )
6153 assert .NoError (t , err )
6254
6355 // Try to get AWS profiles (this will trigger the clone/pull with ref)
6456 _ , err = registry .AWSProfiles (context .Background (), false )
65-
57+
6658 if tt .wantErr {
6759 assert .Error (t , err )
6860 } else {
You can’t perform that action at this time.
0 commit comments