Welcome to mirror list, hosted at ThFree Co, Russian Federation.

add_deploy_key_spec.rb « project « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 24f9f4c77f8791506205f2860ed2d7fc8c4a1ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module QA
  describe 'deploy keys support' do
    it 'user adds a deploy key' do
      Runtime::Browser.visit(:gitlab, Page::Main::Login)
      Page::Main::Login.act { sign_in_using_credentials }

      key = Runtime::Key::RSA.new
      deploy_key_title = 'deploy key title'
      deploy_key_value = key.public_key

      deploy_key = Factory::Resource::DeployKey.fabricate! do |resource|
        resource.title = deploy_key_title
        resource.key = deploy_key_value
      end

      expect(deploy_key.fingerprint).to eq(key.fingerprint)
    end
  end
end