As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 8c33c47d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Set explicit value for secret token for net specs

parent 354f8e1e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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.
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment