diff options
author | Jason Lippert <jason@glasspelican.ca> | 2014-12-09 00:54:09 +0300 |
---|---|---|
committer | Jason Lippert <jason@glasspelican.ca> | 2014-12-23 20:38:25 +0300 |
commit | 1fa19401e969f79cbd737c55e63249ca9355791c (patch) | |
tree | c67ae9a5e9edae2982495ed233dcf31f42eb2e0c /features/steps/project | |
parent | 334f240899ffe1c7cb662649ef26c2f5420ea92a (diff) |
Teamcity interaction using 8.1 rest api
Diffstat (limited to 'features/steps/project')
-rw-r--r-- | features/steps/project/services.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/features/steps/project/services.rb b/features/steps/project/services.rb index 7a0b47a8fe5..09e86447058 100644 --- a/features/steps/project/services.rb +++ b/features/steps/project/services.rb @@ -15,6 +15,7 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps page.should have_content 'Assembla' page.should have_content 'Pushover' page.should have_content 'Atlassian Bamboo' + page.should have_content 'JetBrains TeamCity' end step 'I click gitlab-ci service link' do @@ -168,4 +169,23 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps find_field('Build key').value.should == 'KEY' find_field('Username').value.should == 'user' end + + step 'I click JetBrains TeamCity CI service link' do + click_link 'JetBrains TeamCity CI' + end + + step 'I fill JetBrains TeamCity CI settings' do + check 'Active' + fill_in 'Teamcity url', with: 'http://teamcity.example.com' + fill_in 'Build type', with: 'GitlabTest_Build' + fill_in 'Username', with: 'user' + fill_in 'Password', with: 'verySecret' + click_button 'Save' + end + + step 'I should see JetBrains TeamCity CI service settings saved' do + find_field('Teamcity url').value.should == 'http://teamcity.example.com' + find_field('Build type').value.should == 'GitlabTest_Build' + find_field('Username').value.should == 'user' + end end |