Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Added functionality for random generation of data
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshi committed Aug 13, 2017
1 parent 0a68e31 commit e0208b6
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 391 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = function(grunt) {
files: 'features',
options: {
format: 'pretty',
tags:'@for_testing'
tags:'@for_testing_1',
steps:'features/step_definitions/github_steps.js'
}
},
watch: {
Expand All @@ -31,4 +32,4 @@ module.exports = function(grunt) {

grunt.registerTask('default', ['cucumberjs'])
}
/* jshint +W106 */
/* jshint +W106 */
313 changes: 17 additions & 296 deletions data/identity.json
Original file line number Diff line number Diff line change
@@ -1,297 +1,18 @@
{
id: 'bot1-FB-1234',
type: tin
identities: [bot1-FB-1234],
ordId: org1,
botId: bot1,
ppid: [{FB, 1234}],
browserId: ['abc-abc'],
foreignId: ['bot1-abc'],
name: 'Billy Bob',
email: [],
phone: [],
custom: {
messageCount: 15,
gender: 'M',
},
created: 6/1/17
}
{
id: 'bot1-SMS-1234',
type: tin
identities: [bot1-SMS-1234],
ordId: org1,
botId: bot1,
ppid: [{SMS, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 15,
dma: 'Philly',
},
created: 6/2/17
}
{
id: 'bot1-SLACK-1234',
type: tin
identities: [bot1-SLACK-1234],
ordId: org1,
botId: bot1,
ppid: [{SLACK, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 1,
},
created: 6/3/17
}
{
id: 'bot2-FB-1234',
type: tin
identities: [bot2-FB-1234],
ordId: org1,
botId: bot2,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 10,
},
created: 6/4/17
}
{
id: 'bot3-FB-1234',
type: tin
identities: [bot3-FB-1234],
ordId: org2,
botId: bot3,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'B B',
email: [],
phone: [],
custom: {
messageCount: 10,
},
created: 6/5/17
}
{
id: 'bronze1',
type: bronze
identities: [bronze1, bot1-FB-1234],
ordId: org1,
botId: bot1,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'Billy Bob',
email: [],
phone: [],
custom: {
messageCount: 15,
gender: 'M',
},
created: 6/1/17
}
{
id: 'bronze2',
type: bronze
identities: [bronze2, bot1-SMS-1234],
ordId: org1,
botId: bot1,
ppid: [{SMS, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 15,
dma: 'Philly',
},
created: 6/2/17
}
{
id: 'bronze3',
type: bronze
identities: [bronze3, bot1-SLACK-1234],
ordId: org1,
botId: bot1,
ppid: [{SLACK, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 1,
},
created: 6/3/17
}
{
id: 'bronze4',
type: bronze
identities: [bronze4, bot2-FB-1234],
ordId: org1,
botId: bot2,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 10,
},
created: 6/4/17
}
{
id: 'bronze5',
type: bronze
identities: [bronze5, bot3-FB-1234],
ordId: org2,
botId: bot3,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'B B',
email: [],
phone: [],
custom: {
messageCount: 10,
},
created: 6/5/17
}
{
id: 'silver1',
type: silver
identities: [silver1, bot1-FB-1234, bot2-FB-1234],
ordId: org1,
botId: [bot1, bo2],
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 10,
gender: M,
},
created: 6/1/17
}
{
id: 'silver2',
type: silver
identities: [silver2, bot1-SMS-1234],
ordId: org1,
botId: bot1,
ppid: [{SMS, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 15,
dma: Philly,
},
created: 6/2/17
}
{
id: 'silver3',
type: silver
identities: [silver3, bot1-SLACK-1234],
ordId: org1,
botId: bot1,
ppid: [{SLACK, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 1,
},
created: 6/3/17
}
{
id: 'silver4',
type: silver
identities: [silver4, bot1-FB-1234],
ordId: org2,
botId: bot3,
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'B B',
email: [],
phone: [],
custom: {
messageCount: 10,
},
created: 6/5/17
}
{
id: 'gold1',
type: gold,
identities: [gold1, bot1-FB-1234, bot2-FB-1234, bot3-FB-1234],
ordId: [org1, org2],
botId: [bot1, bot2, bot3],
ppid: [{FB, 1234}],
browserId: [],
foreignId: [],
name: 'B B',
email: [],
phone: [],
custom: {
messageCount: 10,
gender: M,
},
created: 6/1/17
},
{
id: 'gold2',
type: gold,
identities: [gold2, bot1-SMS-1234],
ordId: org1,
botId: bot1,
ppid: [{SMS, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 15,
dma: Philly,
},
created: 6/2/17
}
{
id: 'gold3',
type: gold,
identities: [gold3, bot3-SLACK-1234],
ordId: org1,
botId: bot1,
ppid: [{SLACK, 1234}],
browserId: [],
foreignId: [],
name: 'Billy B',
email: [],
phone: [],
custom: {
messageCount: 1,
},
created: 6/3/17
}
"avatar": "http://someurl.com/image/123",
"botId": "471f5a27-20ca-461a-87cf-82882c104b06",
"custom": {
"isSetup": true
},
"email": "example@utu.ai",
"firstName": "John",
"foreignId": "471f5a27-20ca-461a-87cf-82882c104b06",
"lastName": "Doe",
"middleName": "Henry",
"name": "Dr. John Henry Doe III",
"phone": "+1 (123) 456-7890",
"platform": "sms",
"platformId": "471f5a27-20ca-461a-87cf-82882c104b06",
"salutation": "Dr.",
"suffix": "III"
}
1 change: 1 addition & 0 deletions features/identity_post.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Scenario: unmatchable update received for existing identity
When an unmatchable update is received for that identity
Then upsert identity

@for_testing_1
Scenario: unmatchable update received for new identity
Given no records exist that match the new identity
When an unmatchable update is received for that identity
Expand Down
Loading

0 comments on commit e0208b6

Please sign in to comment.