Extract EE specific files/lines for spec/features/security
We have the following files containing EE specific code. We should move them to ee/
spec/features/security/admin_access_spec.rb
diff --git a/spec/features/security/admin_access_spec.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/features/security/admin_access_spec.rb
index ff679034a36..e7d3490eafa 100644
--- a/spec/features/security/admin_access_spec.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/features/security/admin_access_spec.rb
@@ -9,6 +9,7 @@ describe "Admin::Projects" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_denied_for :user }
it { is_expected.to be_denied_for :visitor }
+ it { is_expected.to be_denied_for :auditor }
end
describe "GET /admin/users" do
@@ -17,6 +18,7 @@ describe "Admin::Projects" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_denied_for :user }
it { is_expected.to be_denied_for :visitor }
+ it { is_expected.to be_denied_for :auditor }
end
describe "GET /admin/hooks" do
@@ -25,5 +27,6 @@ describe "Admin::Projects" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_denied_for :user }
it { is_expected.to be_denied_for :visitor }
+ it { is_expected.to be_denied_for :auditor }
end
end
spec/features/security/dashboard_access_spec.rb
diff --git a/spec/features/security/dashboard_access_spec.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/features/security/dashboard_access_spec.rb
index 07cddc92ac4..7a7775eeabd 100644
--- a/spec/features/security/dashboard_access_spec.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/features/security/dashboard_access_spec.rb
@@ -8,6 +8,7 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_denied_for :visitor }
end
@@ -16,6 +17,7 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_denied_for :visitor }
end
@@ -24,6 +26,7 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_denied_for :visitor }
end
@@ -32,6 +35,7 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_denied_for :visitor }
end
@@ -40,18 +44,21 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_allowed_for :visitor }
end
describe "GET /projects/new" do
it { expect(new_project_path).to be_allowed_for :admin }
it { expect(new_project_path).to be_allowed_for :user }
+ it { expect(new_project_path).to be_allowed_for :auditor }
it { expect(new_project_path).to be_denied_for :visitor }
end
describe "GET /groups/new" do
it { expect(new_group_path).to be_allowed_for :admin }
it { expect(new_group_path).to be_allowed_for :user }
+ it { expect(new_group_path).to be_allowed_for :auditor }
it { expect(new_group_path).to be_denied_for :visitor }
end
@@ -60,6 +67,7 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
+ it { is_expected.to be_allowed_for :auditor }
it { is_expected.to be_denied_for :visitor }
end
end
Edited by Yorick Peterse