mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Timestamps on apps / routes (#614)
* route updated_at * add app created at, fix some route updated_at bugs * add app updated_at TODO need to add tests through front end TODO for validation we don't really want to use the validate wrapper since it's a programmer error and not a user error, hopefully tests block this. * add tests for timestamps to exist / change on apps&routes * route equals at done, fix tests wit dis * fix up the equals sugar * add swagger * fix rebase * precisely allocate maps in clone * vetted * meh * fix api tests
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/fnproject/fn/api/models"
|
||||
@@ -113,7 +112,7 @@ func TestJSONProtocolwriteJSONInputRequestWithoutData(t *testing.T) {
|
||||
t.Errorf("Request body assertion mismatch: expected: %s, got %s",
|
||||
"<empty-string>", incomingReq.Body)
|
||||
}
|
||||
if ok := reflect.DeepEqual(req.Header, incomingReq.Protocol.Headers); !ok {
|
||||
if !models.Headers(req.Header).Equals(models.Headers(incomingReq.Protocol.Headers)) {
|
||||
t.Errorf("Request headers assertion mismatch: expected: %s, got %s",
|
||||
req.Header, incomingReq.Protocol.Headers)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user