Closed (fixed)
Project:
Drupal.org BDD
Version:
7.x-1.x-dev
Component:
Feature/Scenarios
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Jul 2012 at 17:46 UTC
Updated:
19 Jul 2013 at 16:51 UTC
Tab list - Tab list includes: Account - Drupal - Personal info - Work - Newsletters and Email Addresses
Account Git access - Git access checkbox exists. Changing checkbox status remains.
Account Git access - Verify with "disabled" Git access , Write to VCS is disabled in projects you own (check both the permission and a git push)
Comments
Comment #1
sachin2dhoni commentedTaking this up
Comment #2
sachin2dhoni commentedComment #3
sachin2dhoni commentedUploaded the feature to dev branch.
Please check the commit log:6aad773
The test is in "git vetted user" login. As the git vetted user already have git access, I am following the steps in the feature as
Step 1:
Firstly creating the sandbox project and initialize repo (as git vetted user already have git access)
Step 2:Disagree to git access agreement
Step 3: Then Clone repo and push to repo as non-git user
Step 4: Resetting original git access agreement for not affecting other features as they are dependent on git vetted user.
Please review it.
Comment #4
eliza411 commentedI'm getting some consistent failures on this:
I manually logged in as git vetted user in order to verify my behat.local.yml had the proper password and it does, so something else seems to be up.
I'm also concerned that if we use git vetted user for this test and a step fails after the scenario in which the terms of agreement is unchecked, then we'll have tests failing for quite confusing reasons. I think git vetted user should *stay* vetted.
sdboyer created a user called 'git disabled' which is created before each new database dump. That user is fair game for a test like this, but it begins in the disabled state and must be enabled.
Comment #5
sachin2dhoni commentedThe failure mentioned in the comment #4 is due to the change "send "$pass\n" " to "send "$argv\n" " in the git wrapper file.So we have corrected it again to $pass and it is working fine now.
And also i have tested with feature with "git disabled" login,but i noticed that git disabled user do not have permissions to create a sand box project and i am seeing the follow error too while going to the profile page "Your Git access has been suspended by a Drupal.org administrator".
Also added the @clean_data tag at the end of the scenario.
Updated to dev branch .
Please check the commit log: 39f852d
Please review it.
Comment #6
eliza411 commentedsdboyer, can you add another user to the jenkins job?
Call it 'git access' The tests are currently using the Git vetted user for this test and I'm reluctant to take the chance that a failed test of the git access agreement will taint additional tests.
Comment #7
eliza411 commentedSetting component to "Test data"
Comment #8
sachin2dhoni commented@sdboyer, 'git access' user is not yet created, Please update once done.
Comment #9
eliza411 commented@sachin2dhoni, the user creation has been added to the jenkins script *has*. Until then, create the user by hand using the 'admin test' account.
The success of the script addition will automatically verified the first time a test calling 'git access' user runs after a clean deployment. If the test fails, this issue can be reopened.
Comment #10
sachin2dhoni commentedRenamed the file from edit_profile.feature to git_access_check.feature and moved to features/git.
Please check the commit log for reference.
http://drupalcode.org/project/doobie.git/commit/45fbca8
Comment #12
kssundar commentedNeed 7.x update
Comment #13
kssundar commentedPorted to 7.x - http://drupalcode.org/project/doobie.git/commit/568fdc5
Comment #14
eliza411 commentedAssigning so I'll remember to review the first scenario. The final step "Then I initialize the repository" seems like a user action and not an expected outcome (Then I should be able to initialize ... )
Comment #15
kssundar commentedUpdated accordingly - http://drupalcode.org/project/doobie.git/commit/b551019
Comment #16
eliza411 commentedWorks for me. Thank you! This is as ready as it can be until the D7 Drupal.org is ready for feedback.
Comment #17
eliza411 commentedComment #18
eliza411 commented