update the main_test.go and module_test.go add the mock for registry
This commit is contained in:
@@ -68,6 +68,11 @@ func (m *MockPluginManager) KeyManager(ctx context.Context, cache definition.Cac
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Registry returns a mock implementation of the RegistryLookup interface.
|
||||
func (m *MockPluginManager) Registry(ctx context.Context, cfg *plugin.Config) (definition.RegistryLookup, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// SchemaValidator returns a mock implementation of the SchemaValidator interface.
|
||||
func (m *MockPluginManager) SchemaValidator(ctx context.Context, cfg *plugin.Config) (definition.SchemaValidator, error) {
|
||||
return nil, nil
|
||||
|
||||
@@ -64,6 +64,11 @@ func (m *mockPluginManager) KeyManager(ctx context.Context, cache definition.Cac
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Registry returns a mock registry lookup implementation.
|
||||
func (m *mockPluginManager) Registry(ctx context.Context, cfg *plugin.Config) (definition.RegistryLookup, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// SchemaValidator returns a mock schema validator implementation.
|
||||
func (m *mockPluginManager) SchemaValidator(ctx context.Context, cfg *plugin.Config) (definition.SchemaValidator, error) {
|
||||
return nil, nil
|
||||
@@ -180,4 +185,4 @@ func TestRegisterFailure(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user