diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
commit | 0c872e02b2c822e3397515ec324051ff540f0cd5 (patch) | |
tree | ce2fb6ce7030e4dad0f4118d21ab6453e5938cdd /spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb | |
parent | f7e05a6853b12f02911494c4b3fe53d9540d74fc (diff) |
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb')
-rw-r--r-- | spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb b/spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb index 57d677af5cf..6cc25b74d02 100644 --- a/spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb +++ b/spec/migrations/remove_duplicate_dast_site_tokens_with_same_token_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' require_migration! -RSpec.describe RemoveDuplicateDastSiteTokensWithSameToken do +RSpec.describe RemoveDuplicateDastSiteTokensWithSameToken, feature_category: :dynamic_application_security_testing do let(:namespaces) { table(:namespaces) } let(:projects) { table(:projects) } let(:dast_site_tokens) { table(:dast_site_tokens) } @@ -15,8 +15,8 @@ RSpec.describe RemoveDuplicateDastSiteTokensWithSameToken do context 'when duplicate dast site tokens exists' do # create duplicate dast site token - let_it_be(:duplicate_token) { 'duplicate_token' } - let_it_be(:other_duplicate_token) { 'other_duplicate_token' } + let!(:duplicate_token) { 'duplicate_token' } + let!(:other_duplicate_token) { 'other_duplicate_token' } let!(:project2) { projects.create!(id: 2, namespace_id: namespace.id, path: 'project2') } let!(:dast_site_token2) { dast_site_tokens.create!(project_id: project2.id, url: 'https://gitlab2.com', token: duplicate_token) } |