mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Vast commit, includes: * Introduces the Trigger domain entity. * Introduces the Fns domain entity. * V2 of the API for interacting with the new entities in swaggerv2.yml * Adds v2 end points for Apps to support PUT updates. * Rewrites the datastore level tests into a new pattern. * V2 routes use entity ID over name as the path parameter.
16 lines
323 B
Go
16 lines
323 B
Go
package datastore
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/fnproject/fn/api/datastore/internal/datastoretest"
|
|
"github.com/fnproject/fn/api/models"
|
|
)
|
|
|
|
func TestDatastore(t *testing.T) {
|
|
f := func(t *testing.T) models.Datastore {
|
|
return NewMock()
|
|
}
|
|
datastoretest.RunAllTests(t, f, datastoretest.NewBasicResourceProvider())
|
|
}
|