Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/tasks/attempts.rake
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace :attempts do
auth_token = IdentityConfig.store.irs_attempt_api_auth_tokens.sample
puts 'There are no configured irs_attempt_api_auth_tokens' if auth_token.nil?
private_key_path = 'keys/attempts_api_private_key.key'

desc 'Retrieve events via the API'
task fetch_events: :environment do
auth_token = IdentityConfig.store.irs_attempt_api_auth_tokens.sample
puts 'There are no configured irs_attempt_api_auth_tokens' if auth_token.nil?
private_key_path = 'keys/attempts_api_private_key.key'

conn = Faraday.new(url: 'http://localhost:3000')
body = "timestamp=#{Time.zone.now.iso8601}"

Expand Down