Skip to content

Commit

Permalink
Don't use Java properties to pass configuration in kinesis integratio…
Browse files Browse the repository at this point in the history
…n tests
  • Loading branch information
pondzix committed Sep 5, 2023
1 parent 85723b9 commit 81f7ae0
Show file tree
Hide file tree
Showing 15 changed files with 324 additions and 157 deletions.
30 changes: 30 additions & 0 deletions kinesis/src/it/resources/collector-cookie-anonymous.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "sp",
"expiration": "365 days",
"secure": false,
"httpOnly": false,
"sameSite": "None"
}
}
30 changes: 30 additions & 0 deletions kinesis/src/it/resources/collector-cookie-attributes-1.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "greatName",
"expiration": "42 days",
"secure": true,
"httpOnly": true,
"sameSite": "Strict"
}
}
30 changes: 30 additions & 0 deletions kinesis/src/it/resources/collector-cookie-attributes-2.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "sp",
"expiration": "365 days",
"secure": false,
"httpOnly": false,
"sameSite": "None"
}
}
32 changes: 32 additions & 0 deletions kinesis/src/it/resources/collector-cookie-domain.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "sp",
"expiration": "365 days",
"domains": ["foo.bar","sub.foo.bar"],
"fallbackDomain": "fallback.domain",
"secure": false,
"httpOnly": false,
"sameSite": "None"
}
}
32 changes: 32 additions & 0 deletions kinesis/src/it/resources/collector-cookie-fallback.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "sp",
"expiration": "365 days",
"domains": ["foo.bar" ],
"fallbackDomain": "fallback.domain",
"secure": false,
"httpOnly": false,
"sameSite": "None"
}
}
30 changes: 30 additions & 0 deletions kinesis/src/it/resources/collector-cookie-no-domain.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"cookie": {
"enabled": true,
"name": "sp",
"expiration": "365 days",
"secure": false,
"httpOnly": false,
"sameSite": "None"
}
}
27 changes: 27 additions & 0 deletions kinesis/src/it/resources/collector-custom-paths.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"paths": {
"/acme/track": "/com.snowplowanalytics.snowplow/tp2",
"/acme/redirect": "/r/tp2",
"/acme/iglu": "/com.snowplowanalytics.iglu/v1"
}
}
27 changes: 27 additions & 0 deletions kinesis/src/it/resources/collector-doNotTrackCookie-disabled.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"doNotTrackCookie": {
"enabled": false,
"name" : "foo",
"value": "bar"
}
}
27 changes: 27 additions & 0 deletions kinesis/src/it/resources/collector-doNotTrackCookie-enabled.hocon
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
collector {
interface = "0.0.0.0"
port = ${PORT}

streams {
good = ${STREAM_GOOD}
bad = ${STREAM_BAD}

sink {
region = ${REGION}
customEndpoint = ${KINESIS_ENDPOINT}

aws {
accessKey = env
secretKey = env
}

maxBytes = ${MAX_BYTES}
}
}

"doNotTrackCookie": {
"enabled": true,
"name" : "foo",
"value": "bar"
}
}
Loading

0 comments on commit 81f7ae0

Please sign in to comment.