Files
fn-serverless/api/logs/mock_test.go
Tom Coupland a0ccc4d7c4 Copy logs up to v2 endpoints (#1207)
Copies the log endpoints up to the V2 endpoints, in a similar way to
the call endpoints.

The main change is to when logs are inserted into S3. The signature of
the function has been changed to take the whole call object, rather
than just the app and call id's. This allows the function to switch
between calls for Routes and those for Fns. Obviously this switching
can be removed when v1 is removed.

In the sql implementation it inserts with both appID and fnID, this
allows the two get's to work, and the down grade of the
migration. When the v1 logs are removed, the appId can be dropped.

The log fetch test and error messages have been changed to be FnID specific.
2018-09-13 10:30:10 +01:00

13 lines
166 B
Go

package logs
import (
"testing"
logTesting "github.com/fnproject/fn/api/logs/testing"
)
func TestMock(t *testing.T) {
ls := NewMock()
logTesting.Test(t, ls)
}