/usr/lib/obs/tests/appliance/spec/features/0100_delete_home_Admin_spec.rb is in obs-server 2.7.1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | require "spec_helper"
RSpec.describe "Delete project home:Admin" do
it "should be able to login as user Admin" do
obs_login("Admin","opensuse")
end
it "should be able to execute delete" do
visit("/project/show/home:Admin")
click_link("Delete project")
find("input[type=submit][value='Ok']").click
expect(page).to have_content("Project was successfully removed.")
end
end
|