Fix plugin valdation tests
This commit is contained in:
parent
9b25919d7c
commit
71038784cb
|
|
@ -57,7 +57,7 @@ func TestValidatePlugins(t *testing.T) {
|
|||
|
||||
got := baseReconcileLoop.validatePlugins(requiredBasePlugins, basePlugins, userPlugins)
|
||||
|
||||
assert.False(t, got)
|
||||
assert.Equal(t, got, []string{"invalid plugin version 'simple-plugin:invalid', must follow pattern '^[0-9\\\\.-]+$'"})
|
||||
})
|
||||
t.Run("valid base plugin", func(t *testing.T) {
|
||||
var requiredBasePlugins []plugins.Plugin
|
||||
|
|
@ -84,7 +84,7 @@ func TestValidatePlugins(t *testing.T) {
|
|||
|
||||
got := baseReconcileLoop.validatePlugins(requiredBasePlugins, basePlugins, userPlugins)
|
||||
|
||||
assert.False(t, got)
|
||||
assert.Equal(t, got, []string{"invalid plugin version 'simple-plugin:invalid', must follow pattern '^[0-9\\\\.-]+$'"})
|
||||
})
|
||||
t.Run("valid user and base plugin version", func(t *testing.T) {
|
||||
var requiredBasePlugins []plugins.Plugin
|
||||
|
|
|
|||
|
|
@ -115,6 +115,6 @@ func TestVerifyDependencies(t *testing.T) {
|
|||
},
|
||||
}
|
||||
got := VerifyDependencies(basePlugins)
|
||||
assert.Equal(t, true, got)
|
||||
assert.Nil(got)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue