Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruby/setup-ruby from 1.188.0 to 1.204.0 in the github-actions group across 1 directory #121

Merged
Prev Previous commit
Next Next commit
Revert "fix github-server?"
This reverts commit 656246c.
jasonmacgowan committed Dec 18, 2024
commit f912c4943c6c2064688baad47072720bb08429f5
5 changes: 5 additions & 0 deletions spec/acceptance/github-server/web.rb
Original file line number Diff line number Diff line change
@@ -226,6 +226,7 @@ def graphql_pending_query(query)

send :put, "/entitlements-app-acceptance/orgs/:role" do
org_dir = File.join(BASE_DIR, "org", params["role"])
request.body.rewind
postdata = JSON.parse(request.body.read)
Dir.glob(File.join(org_dir, "*")).each { |filename| FileUtils.rm_f(filename) }
postdata["users"].each { |user| File.open(File.join(org_dir, user), "w") { |f| f.puts Time.now.to_s } }
@@ -234,6 +235,7 @@ def graphql_pending_query(query)

send :put, "/entitlements-app-acceptance/pending" do
pending_dir = File.join(BASE_DIR, "pending")
request.body.rewind
postdata = JSON.parse(request.body.read)
Dir.glob(File.join(pending_dir, "*")).each { |filename| FileUtils.rm_f(filename) }
postdata["users"].each { |user| File.open(File.join(pending_dir, user), "w") { |f| f.puts Time.now.to_s } }
@@ -258,6 +260,7 @@ def graphql_pending_query(query)
end

send :post, "/graphql" do
request.body.rewind
postdata = JSON.parse(request.body.read)
query = postdata["query"]

@@ -296,6 +299,8 @@ def graphql_pending_query(query)
# Check for case sensitivity concerns
halt 400 unless params["username"] == params["username"].downcase

# Pull out the role from the request body, halt if not provided.
request.body.rewind
postdata = JSON.parse(request.body.read)
halt 400 unless %[admin member].include?(postdata["role"])