Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PASSED
- task "test if replicator workable" do
- todo "whatever procedure"
- assert "perforce has one record difference"
- end
- # FAILED, see fail()
- task "assign a task to nonexist memeber, test if replicator workable" do
- peek "content of perforce and bugzilla's reaction"
- # fail("Assignee: nonexist@gmail.com did not match anything ")
- end
- # PASSED
- task "test if it's ok to assign issue to bugzilla user who has no corresponding perforce account" do
- assert "bugzilla user: aaa, aaa@aaa.com"
- assert_not_exist "peforce account, aaa, aaa@aaa.com" # ALSO try: bbb, aaa@aaa.com
- todo "submit a issue to aaa@aaa.com"
- assert "p4s, OK"
- assert "p4dti OK"
- end
- # PASSED
- task "test not fail if assigner and assignee are different users" do
- assert "bugzilla issue assigner : realalien, realalien@gmail.com"
- assert "bugzilla issue assignee : aaa, aaa@aaa.com"
- todo "issue a bug with account above"
- assert "p4s , replicator OK"
- assert "perforce has one record difference"
- end
- # PASSED
- # ESP.INFO. When creating new user in perforce, if the account's email has the correpondings in bugzilla user email,
- ....TODO: make sure error occurred!
- # ref: task "test if it's ok to assign issue to bugzilla user who has no corresponding perforce account"
- task "test if ok if same email but different user name between bugzilla's user and perforce account" do
- assert_not_equal "bugzilla user name:aaa", "perforce user name:bbb"
- assert_equal "bugzilla user aaa, email:aaa@aaa.com" "perforce user user:bbb, email:aaa@aaa.com"
- todo "submit a bug issue"
- assert "Ok"
- end
- # PASSED
- task "test it's ok if creating a new perforce account, whose email is not exist in bugzilla" do
- eg "perforce account email: ccc@ccc.com"
- assert "bugzilla not exist email : ccc@ccc.com"
- assert "p4dti not fail"
- todo "submit a new bug issue to causal user" # with no bugzilla account, issue can not submit in bugzilla
- assert "Ok"
- # also assert when delete user with his email( of whom no corresponding email in bugzilla)
- end
- # PASSED
- task "test if p4s work all right if creating a new perforce account(email) with no corresponding bugzilla email" do
- eg "create a bugzilla user: ddd , ddd@ddd.com"
- assert "p4s ok"
- todo "submit a casual bug issue"
- # with no bugzilla account, issue can not submit in bugzilla # todo "submit a bug issue to ddd@ddd.com"
- end
- # PASSED
- task "create a bugzilla user after creating a new perforce account, both them have same email but different names, test if p4s OK " do
- eg. perforce new account (ddd, ddd@ddd.com)
- eg. bugzilla new account (eee, ddd@ddd.com)
- todo "issue random bug to ddd@ddd.com"
- assert "p4dti ok"
- assert "p4s OK"
- end
- # PASSED
- 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
- eg. perforce new account (eee , eee@ddd.com)
- eg. bugzilla new account (eee, ddd@ddd.com)
- todo "issue random bug to ddd@ddd.com"
- assert "p4dti ok"
- assert "p4s OK"
- end
- # 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!
- # SUG: check the source code to modify the exception.
- #
- task "test if ok when drop a perforce account, submitting a new issue to that user! " do
- assert "exist perforce account fff@fff.com"
- assert "submit issue " no error
- todo "drop that perforce account"
- assert "p4dti ok"
- end
Add Comment
Please, Sign In to add comment