summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-21 15:11:07 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-21 15:16:23 +0200
commit8c33c47d59068783204813d94365134246dd927c (patch)
tree237417a64903a4284441c1e5674fbf7414bf23b7
parent354f8e1e6a6b6d738acebcd0e76568d178a4b8e4 (diff)
downloadgitlab-shell-8c33c47d59068783204813d94365134246dd927c.tar.gz
Set explicit value for secret token for net specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--README.md3
-rw-r--r--spec/gitlab_net_spec.rb3
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index f660aba..feaddcb 100644
--- a/README.md
+++ b/README.md
@@ -164,3 +164,6 @@ running and have next data:
1. gitlab-org/gitlab-test project.
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.
+
+You also need to modify `secret` variable at `spec/gitlab_net_spec.rb` so tests
+can connect to your local instance.
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb
index 34f3261..eb2dd12 100644
--- a/spec/gitlab_net_spec.rb
+++ b/spec/gitlab_net_spec.rb
@@ -10,10 +10,11 @@ describe GitlabNet, vcr: true do
let(:project) { 'gitlab-org/gitlab-test.git' }
let(:key) { 'key-1' }
let(:key2) { 'key-2' }
- let(:secret) { gitlab_net.send(:secret_token) }
+ let(:secret) { "0a3938d9d95d807e94d937af3a4fbbea\n" }
before do
gitlab_net.stub(:host).and_return(host)
+ gitlab_net.stub(:secret_token).and_return(secret)
end
describe :check do