Skip to content

Commit

Permalink
TNT-40078 - TargetDecisioningEngine + disabled integration tests (#15)
Browse files Browse the repository at this point in the history
TargetDecisioningEngine and (disabled) integration tests
  • Loading branch information
dcottingham committed Apr 7, 2021
1 parent 952842f commit 3fab41b
Show file tree
Hide file tree
Showing 91 changed files with 39,345 additions and 29 deletions.
6,950 changes: 6,950 additions & 0 deletions artifact.json

Large diffs are not rendered by default.

203 changes: 203 additions & 0 deletions artifacts/TEST_ARTIFACT_AB_MULTI_SIMPLE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
{
"targetAdminActivityUrls": [
"https://experience.adobe.com/#/@targettesting/target/activities/activitydetails/A-B/_unit-test_mbox-salutations",
"https://experience.adobe.com/#/@targettesting/target/activities/activitydetails/A-B/_unit-test_mbox-magician"
],
"version": "1.0.0",
"meta": { "clientCode": "targettesting", "environment": "production" },
"globalMbox": "target-global-mbox",
"geoTargetingEnabled": true,
"responseTokens": [
"activity.id",
"activity.name",
"experience.id",
"experience.name",
"geo.city",
"geo.country",
"geo.state",
"offer.id",
"offer.name",
"option.id",
"option.name"
],
"remoteMboxes": [],
"remoteViews": [],
"localMboxes": [
"100k",
"1MB",
"1MB2",
"1MB3",
"250k",
"500k",
"allmatches",
"browserTest",
"mbox-browsers",
"mbox-dateranges",
"mbox-feature-flags",
"mbox-geography",
"mbox-macros",
"mbox-magician",
"mbox-params",
"mbox-prioritized",
"mbox-salutations",
"mbox-urlcontains",
"perf-mbox",
"super-duper",
"target-global-mbox",
"testoffer"
],
"localViews": ["contact", "home"],
"rules": {
"mboxes": {
"mbox-salutations": [
{
"ruleKey": "125872",
"activityId": 125872,
"meta": {
"activity.id": 125872,
"activity.name": "[unit-test] mbox-salutations",
"activity.type": "ab",
"experience.id": 0,
"experience.name": "Experience A",
"location.name": "mbox-salutations",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246847,
"offer.name": "/_unit-test_mbox-salutations/experiences/0/pages/0/zones/0/1612386185278",
"option.id": 2,
"option.name": "Offer2"
},
"condition": {
"and": [
{ "<=": [0, { "var": "allocation" }] },
{ ">=": [50, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-salutations",
"options": [
{
"type": "html",
"eventToken": "avr5zuTFMrtFi7QuWrscBmqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": "<div>hello</div>"
}
],
"metrics": []
}
},
{
"ruleKey": "125872",
"activityId": 125872,
"meta": {
"activity.id": 125872,
"activity.name": "[unit-test] mbox-salutations",
"activity.type": "ab",
"experience.id": 1,
"experience.name": "Experience B",
"location.name": "mbox-salutations",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246848,
"offer.name": "/_unit-test_mbox-salutations/experiences/1/pages/0/zones/0/1612386185295",
"option.id": 3,
"option.name": "Offer3"
},
"condition": {
"and": [
{ "<": [50, { "var": "allocation" }] },
{ ">=": [100, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-salutations",
"options": [
{
"type": "html",
"eventToken": "avr5zuTFMrtFi7QuWrscBpNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": "<div>goodbye</div>"
}
],
"metrics": []
}
}
],
"mbox-magician": [
{
"ruleKey": "125873",
"activityId": 125873,
"meta": {
"activity.id": 125873,
"activity.name": "[unit-test] mbox-magician",
"activity.type": "ab",
"experience.id": 0,
"experience.name": "Experience A",
"location.name": "mbox-magician",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246850,
"offer.name": "/_unit-test_mbox-magician/experiences/0/pages/0/zones/0/1612386382173",
"option.id": 2,
"option.name": "Offer2"
},
"condition": {
"and": [
{ "<=": [0, { "var": "allocation" }] },
{ ">=": [50, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-magician",
"options": [
{
"type": "json",
"eventToken": "eHKYleVZBTi/nM3Fv/fx1WqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": { "doMagic": true, "importantValue": 150 }
}
],
"metrics": []
}
},
{
"ruleKey": "125873",
"activityId": 125873,
"meta": {
"activity.id": 125873,
"activity.name": "[unit-test] mbox-magician",
"activity.type": "ab",
"experience.id": 1,
"experience.name": "Experience B",
"location.name": "mbox-magician",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246849,
"offer.name": "/_unit-test_mbox-magician/experiences/1/pages/0/zones/0/1612386382166",
"option.id": 3,
"option.name": "Offer3"
},
"condition": {
"and": [
{ "<": [50, { "var": "allocation" }] },
{ ">=": [100, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-magician",
"options": [
{
"type": "json",
"eventToken": "eHKYleVZBTi/nM3Fv/fx1ZNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": { "doMagic": false, "importantValue": 75 }
}
],
"metrics": []
}
}
]
},
"views": {}
}
}
128 changes: 128 additions & 0 deletions artifacts/TEST_ARTIFACT_AB_SIMPLE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"targetAdminActivityUrls": [
"https://experience.adobe.com/#/@targettesting/target/activities/activitydetails/A-B/_unit-test_mbox-magician"
],
"version": "1.0.0",
"meta": { "clientCode": "targettesting", "environment": "production" },
"globalMbox": "target-global-mbox",
"geoTargetingEnabled": true,
"responseTokens": [
"activity.id",
"activity.name",
"experience.id",
"experience.name",
"geo.city",
"geo.country",
"geo.state",
"offer.id",
"offer.name",
"option.id",
"option.name"
],
"remoteMboxes": [],
"remoteViews": [],
"localMboxes": [
"100k",
"1MB",
"1MB2",
"1MB3",
"250k",
"500k",
"allmatches",
"browserTest",
"mbox-browsers",
"mbox-dateranges",
"mbox-feature-flags",
"mbox-geography",
"mbox-macros",
"mbox-magician",
"mbox-params",
"mbox-prioritized",
"mbox-salutations",
"mbox-urlcontains",
"perf-mbox",
"super-duper",
"target-global-mbox",
"testoffer"
],
"localViews": ["contact", "home"],
"rules": {
"mboxes": {
"mbox-magician": [
{
"ruleKey": "125873",
"activityId": 125873,
"meta": {
"activity.id": 125873,
"activity.name": "[unit-test] mbox-magician",
"activity.type": "ab",
"experience.id": 0,
"experience.name": "Experience A",
"location.name": "mbox-magician",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246850,
"offer.name": "/_unit-test_mbox-magician/experiences/0/pages/0/zones/0/1612386382173",
"option.id": 2,
"option.name": "Offer2"
},
"condition": {
"and": [
{ "<=": [0, { "var": "allocation" }] },
{ ">=": [50, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-magician",
"options": [
{
"type": "json",
"eventToken": "eHKYleVZBTi/nM3Fv/fx1WqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": { "doMagic": true, "importantValue": 150 }
}
],
"metrics": []
}
},
{
"ruleKey": "125873",
"activityId": 125873,
"meta": {
"activity.id": 125873,
"activity.name": "[unit-test] mbox-magician",
"activity.type": "ab",
"experience.id": 1,
"experience.name": "Experience B",
"location.name": "mbox-magician",
"location.type": "mbox",
"location.id": 0,
"audience.ids": [],
"offer.id": 246849,
"offer.name": "/_unit-test_mbox-magician/experiences/1/pages/0/zones/0/1612386382166",
"option.id": 3,
"option.name": "Offer3"
},
"condition": {
"and": [
{ "<": [50, { "var": "allocation" }] },
{ ">=": [100, { "var": "allocation" }] }
]
},
"consequence": {
"name": "mbox-magician",
"options": [
{
"type": "json",
"eventToken": "eHKYleVZBTi/nM3Fv/fx1ZNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q==",
"content": { "doMagic": false, "importantValue": 75 }
}
],
"metrics": []
}
}
]
},
"views": {}
}
}

0 comments on commit 3fab41b

Please sign in to comment.