From 4b6c9ec568cdc183566e1802915f4b1f2e9d8459 Mon Sep 17 00:00:00 2001 From: Karol Selak Travis Date: Thu, 27 Jan 2022 18:01:51 +0100 Subject: [PATCH] tests changed --- spec/auth/v1/repo_status_spec.rb | 20 ++++++++++---------- spec/auth/v2/repo_status_spec.rb | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/spec/auth/v1/repo_status_spec.rb b/spec/auth/v1/repo_status_spec.rb index d0be340b21..696312c374 100644 --- a/spec/auth/v1/repo_status_spec.rb +++ b/spec/auth/v1/repo_status_spec.rb @@ -79,13 +79,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -184,13 +184,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end @@ -289,13 +289,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -400,13 +400,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -505,13 +505,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end diff --git a/spec/auth/v2/repo_status_spec.rb b/spec/auth/v2/repo_status_spec.rb index e15f59b49c..75342dd26c 100644 --- a/spec/auth/v2/repo_status_spec.rb +++ b/spec/auth/v2/repo_status_spec.rb @@ -79,13 +79,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -184,13 +184,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end @@ -289,13 +289,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -400,13 +400,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'unknown.svg' } end @@ -505,13 +505,13 @@ it(:without_permission) { should auth status: 200, type: :img, file: 'passing.png' } end - describe 'GET /repos/%{repo.slug}?token=%{user.token} Accept image/svg+xml' do + describe 'GET /repos/%{repo.slug}?token=%{user.svg_token} Accept image/svg+xml' do let(:accept) { 'image/svg+xml' } it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end - describe 'GET /repos/%{repo.slug}.svg?token=%{user.token}' do + describe 'GET /repos/%{repo.slug}.svg?token=%{user.svg_token}' do it(:with_permission) { should auth status: 200, type: :img, file: 'passing.svg' } it(:without_permission) { should auth status: 200, type: :img, file: 'passing.svg' } end