Commit 8c33c47d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Set explicit value for secret token for net specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 354f8e1e
...@@ -164,3 +164,6 @@ running and have next data: ...@@ -164,3 +164,6 @@ running and have next data:
1. gitlab-org/gitlab-test project. 1. gitlab-org/gitlab-test project.
2. SSH key with access to the project and ID 1 that belongs to Administrator. 2. SSH key with access to the project and ID 1 that belongs to Administrator.
3. SSH key without access to the project and ID 2. 3. SSH key without access to the project and ID 2.
You also need to modify `secret` variable at `spec/gitlab_net_spec.rb` so tests
can connect to your local instance.
...@@ -10,10 +10,11 @@ describe GitlabNet, vcr: true do ...@@ -10,10 +10,11 @@ describe GitlabNet, vcr: true do
let(:project) { 'gitlab-org/gitlab-test.git' } let(:project) { 'gitlab-org/gitlab-test.git' }
let(:key) { 'key-1' } let(:key) { 'key-1' }
let(:key2) { 'key-2' } let(:key2) { 'key-2' }
let(:secret) { gitlab_net.send(:secret_token) } let(:secret) { "0a3938d9d95d807e94d937af3a4fbbea\n" }
before do before do
gitlab_net.stub(:host).and_return(host) gitlab_net.stub(:host).and_return(host)
gitlab_net.stub(:secret_token).and_return(secret)
end end
describe :check do describe :check do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment