Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Nov 7, 2024
1 parent acd0817 commit 79e9338
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/e2e/nginx_stage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def browser
on hosts, 'mkdir /var/run/ondemand-nginx/deleted_user'
on hosts, 'chmod 600 /var/run/ondemand-nginx/deleted_user'
on hosts, 'echo -n 11111111 > /var/run/ondemand-nginx/deleted_user/passenger.pid'
on hosts, 'echo -n 11111111 > /var/lib/ondemand-nginx/config/puns/deleted_user.conf'
on hosts, 'echo -n 11111111 > /var/lib/ondemand-nginx/config/puns/deleted_user.secret_key_base.txt'
end

after(:all) do
Expand All @@ -31,7 +33,10 @@ def browser

# Note there's no error here about 'deleted_user'
on hosts, '/opt/ood/nginx_stage/sbin/nginx_stage nginx_clean --force' do
assert_equal stdout, "ood\n"
assert_equal stdout, "ood\ndeleted_user (disabled)\n"
refute(File.exists?('/var/run/ondemand-nginx/deleted_user'))
refute(File.exists?('/var/lib/ondemand-nginx/config/puns/deleted_user.conf'))
refute(File.exists?('/var/lib/ondemand-nginx/config/puns/deleted_user.secret_key_base.txt'))
end
end
end
Expand Down

0 comments on commit 79e9338

Please sign in to comment.