mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Remove V1 endpoints and Routes (#1210)
Largely a removal job, however many tests, particularly system level ones relied on Routes. These have been migrated to use Fns. * Add 410 response to swagger * No app names in log tags * Adding constraint in GetCall for FnID * Adding test to check FnID is required on call * Add fn_id to call selector * Fix text in docker mem warning * Correct buildConfig func name * Test fix up * Removing CPU setting from Agent test CPU setting has been deprecated, but the code base is still riddled with it. This just removes it from this layer. Really we need to remove it from Call. * Remove fn id check on calls * Reintroduce fn id required on call * Adding fnID to calls for execute test * Correct setting of app id in middleware * Removes root middlewares ability to redirect fun invocations * Add over sized test check * Removing call fn id check
This commit is contained in:
committed by
Owen Cliffe
parent
6a01dae923
commit
d56a49b321
@@ -274,8 +274,8 @@ func (a *slotQueueMgr) deleteSlotQueue(slots *slotQueue) bool {
|
||||
|
||||
var shapool = &sync.Pool{New: func() interface{} { return sha256.New() }}
|
||||
|
||||
// TODO do better; once we have app+route versions this function
|
||||
// can be simply app+route names & version
|
||||
// TODO do better; once we have app+fn versions this function
|
||||
// can be simply app+fn ids & version
|
||||
func getSlotQueueKey(call *call) string {
|
||||
// return a sha256 hash of a (hopefully) unique string of all the config
|
||||
// values, to make map lookups quicker [than the giant unique string]
|
||||
@@ -288,7 +288,7 @@ func getSlotQueueKey(call *call) string {
|
||||
hash.Write(unsafeBytes("\x00"))
|
||||
hash.Write(unsafeBytes(call.SyslogURL))
|
||||
hash.Write(unsafeBytes("\x00"))
|
||||
hash.Write(unsafeBytes(call.Path))
|
||||
hash.Write(unsafeBytes(call.FnID))
|
||||
hash.Write(unsafeBytes("\x00"))
|
||||
hash.Write(unsafeBytes(call.Image))
|
||||
hash.Write(unsafeBytes("\x00"))
|
||||
|
||||
Reference in New Issue
Block a user