Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit a9092e2

Browse files
committed
swtched keys to use subdomain
1 parent 8b515f9 commit a9092e2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

processor/proc.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
type ValueType string
1313

1414
const (
15-
ValueSetStringKey ValueType = "service.tyk.io/string/"
16-
ValueSetBoolKey ValueType = "service.tyk.io/bool/"
17-
ValueSetNumKey ValueType = "service.tyk.io/num/"
18-
ObjectSetKey ValueType = "service.tyk.io/object/"
19-
ArraySetKey ValueType = "service.tyk.io/array/"
15+
ValueSetStringKey ValueType = "string.service.tyk.io/"
16+
ValueSetBoolKey ValueType = "bool.service.tyk.io/"
17+
ValueSetNumKey ValueType = "num.service.tyk.io/"
18+
ObjectSetKey ValueType = "object.service.tyk.io/"
19+
ArraySetKey ValueType = "array.service.tyk.io/"
2020
)
2121

2222
var log = logger.GetLogger("processor")

processor/proc_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ var js = `
7171

7272
func TestProc(t *testing.T) {
7373
testAnnotations := map[string]string{
74-
"service.tyk.io/bool/use-keyless": "false",
75-
"service.tyk.io/string/proxy.target-url": "http://foo.bar/bazington",
76-
"service.tyk.io/num/cache_options.cache-timeout": "20",
77-
"service.tyk.io/object/version_data.versions.Default.extended-paths": `{"hard_timeouts":[{"path":"{all}","method":"GET","timeout":60,"fromDashboard":true}]}`,
74+
"bool.service.tyk.io/use-keyless": "false",
75+
"string.service.tyk.io/proxy.target-url": "http://foo.bar/bazington",
76+
"num.service.tyk.io/cache_options.cache-timeout": "20",
77+
"object.service.tyk.io/version_data.versions.Default.extended-paths": `{"hard_timeouts":[{"path":"{all}","method":"GET","timeout":60,"fromDashboard":true}]}`,
7878
}
7979

8080
def, err := Process(testAnnotations, js)

0 commit comments

Comments
 (0)