Skip to content

Instantly share code, notes, and snippets.

@braghome
Created January 20, 2016 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braghome/9ea78dcb0c584bfd72f0 to your computer and use it in GitHub Desktop.
Save braghome/9ea78dcb0c584bfd72f0 to your computer and use it in GitHub Desktop.
Given pull top migrated agents
[INFO] query: /z7636
[INFO] apiHost: http://user.com/account
[INFO] read object UserProfileReader@671ae261[
metadata=userprofile.Metadata@378b4108[
totalTime=0.0118100643158
status=200
]
data=Data@6b4e3f60[
zuid=7636
name=Joe Annunziato III
]
]
[INFO] matched user profile should have z id 7636 name Joe Annunziato III
[INFO] matched user data should have z id 7636 name Joe Annunziato III
[INFO] query: /z1328
[INFO] apiHost: http://user.com/account
[INFO] read object UserProfileReader@671ae261[
metadata=userprofile.Metadata@5b37c76[
totalTime=0.0172119140625
status=200
]
data=Data@779bdda3[
zuid=1328
name=Cynthia Speers
]
]
[INFO] matched user profile should have z id 1328 name Cynthia Speers
[INFO] matched user data should have z id 1328 name Cynthia Speers
[INFO] query: /z2091
[INFO] apiHost: http://user.com/account
[INFO] read object UserProfileReader@671ae261[
metadata=userprofile.Metadata@4ddc417e[
totalTime=0.0133278369904
status=200
]
data=Data@176f1864[
zuid=2091
name=Abbey Davis
]
]
[INFO] matched user profile should have z id 2091 name Abbey Davis
[INFO] matched user data should have z id 2091 name Abbey Davis
[INFO] query: /z2237
[INFO] apiHost: http://user.com/account
[INFO] read object UserProfileReader@671ae261[
metadata=userprofile.Metadata@32f3a276[
totalTime=0.0117239952087
status=200
]
data=Data@1da5c5e1[
zuid=2237
name=Eileen Rivera
]
]
[INFO] matched user profile should have z id 2237 name Eileen Rivera
[INFO] matched user data should have z id 2237 name Eileen Rivera
[INFO] query: /z2235
[INFO] apiHost: http://user.com/account
[INFO] read object UserProfileReader@671ae261[
metadata=userprofile.Metadata@264ebab7[
totalTime=0.0110909938812
status=200
]
data=Data@10c7584e[
zuid=2235
name=Francoise Pichon
]
]
[INFO] matched user profile should have z id 2235 name Francoise Pichon
[INFO] matched user data should have z id 2235 name Francoise Pichon
When verify if agent name is empty skip to validate next agent
And verify validated agent list without name is not empty
[INFO] matched user profile 7636 should equal z id 2235
[INFO] matched user profile 7636 should equal z id 2235
[INFO] matched user profile 7636 should equal z id 2235
[INFO] matched user profile 7636 should equal z id 2235
[INFO] matched user profile 7636 should equal z id 2235
Then verify the mail box matches agent name (FAILED)
(java.lang.AssertionError: matched user profile should not be null
Expected: not null
but: was null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment