Guest User

Untitled

a guest
Jun 13th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1.  
  2. # PASSED
  3. task "test if replicator workable" do
  4. todo "whatever procedure"
  5. assert "perforce has one record difference"
  6. end
  7.  
  8. # FAILED, see fail()
  9. task "assign a task to nonexist memeber, test if replicator workable" do
  10. peek "content of perforce and bugzilla's reaction"
  11. # fail("Assignee: nonexist@gmail.com did not match anything ")
  12. end
  13.  
  14. # PASSED
  15. task "test if it's ok to assign issue to bugzilla user who has no corresponding perforce account" do
  16. assert "bugzilla user: aaa, aaa@aaa.com"
  17. assert_not_exist "peforce account, aaa, aaa@aaa.com" # ALSO try: bbb, aaa@aaa.com
  18. todo "submit a issue to aaa@aaa.com"
  19. assert "p4s, OK"
  20. assert "p4dti OK"
  21. end
  22.  
  23. # PASSED
  24. task "test not fail if assigner and assignee are different users" do
  25. assert "bugzilla issue assigner : realalien, realalien@gmail.com"
  26. assert "bugzilla issue assignee : aaa, aaa@aaa.com"
  27. todo "issue a bug with account above"
  28. assert "p4s , replicator OK"
  29. assert "perforce has one record difference"
  30. end
  31.  
  32.  
  33. # PASSED
  34. # ESP.INFO. When creating new user in perforce, if the account's email has the correpondings in bugzilla user email,
  35. ....TODO: make sure error occurred!
  36. # ref: task "test if it's ok to assign issue to bugzilla user who has no corresponding perforce account"
  37. task "test if ok if same email but different user name between bugzilla's user and perforce account" do
  38. assert_not_equal "bugzilla user name:aaa", "perforce user name:bbb"
  39. assert_equal "bugzilla user aaa, email:aaa@aaa.com" "perforce user user:bbb, email:aaa@aaa.com"
  40. todo "submit a bug issue"
  41. assert "Ok"
  42. end
  43.  
  44.  
  45. # PASSED
  46. task "test it's ok if creating a new perforce account, whose email is not exist in bugzilla" do
  47. eg "perforce account email: ccc@ccc.com"
  48. assert "bugzilla not exist email : ccc@ccc.com"
  49. assert "p4dti not fail"
  50. todo "submit a new bug issue to causal user" # with no bugzilla account, issue can not submit in bugzilla
  51. assert "Ok"
  52. # also assert when delete user with his email( of whom no corresponding email in bugzilla)
  53. end
  54.  
  55. # PASSED
  56. task "test if p4s work all right if creating a new perforce account(email) with no corresponding bugzilla email" do
  57. eg "create a bugzilla user: ddd , ddd@ddd.com"
  58. assert "p4s ok"
  59. todo "submit a casual bug issue"
  60. # with no bugzilla account, issue can not submit in bugzilla # todo "submit a bug issue to ddd@ddd.com"
  61. end
  62.  
  63. # PASSED
  64. task "create a bugzilla user after creating a new perforce account, both them have same email but different names, test if p4s OK " do
  65. eg. perforce new account (ddd, ddd@ddd.com)
  66. eg. bugzilla new account (eee, ddd@ddd.com)
  67. todo "issue random bug to ddd@ddd.com"
  68. assert "p4dti ok"
  69. assert "p4s OK"
  70. end
  71.  
  72. # PASSED
  73. task "create a bugzilla user after creating a new perforce account, both them have same name but different email,[emailsuffix..OFF] test if p4s OK " do
  74. eg. perforce new account (eee , eee@ddd.com)
  75. eg. bugzilla new account (eee, ddd@ddd.com)
  76. todo "issue random bug to ddd@ddd.com"
  77. assert "p4dti ok"
  78. assert "p4s OK"
  79. end
  80.  
  81.  
  82. # NOTE: the error "The replicator failed to poll successfully." may be caused by failure of local internet connections. When the connection is disable, the error will occur!
  83. # SUG: check the source code to modify the exception.
  84.  
  85. #
  86. task "test if ok when drop a perforce account, submitting a new issue to that user! " do
  87. assert "exist perforce account fff@fff.com"
  88. assert "submit issue " no error
  89. todo "drop that perforce account"
  90. assert "p4dti ok"
  91. end
Add Comment
Please, Sign In to add comment