mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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.
13 lines
166 B
Go
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)
|
|
}
|