Skip to content

Commit

Permalink
Merge pull request #3196 from rubygems/simplify-gh-api
Browse files Browse the repository at this point in the history
Simplify API v1 GH scanning endpoint tests.
  • Loading branch information
simi committed Sep 1, 2022
2 parents 90c9e6a + 7f2e1f4 commit 39502e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/integration/api/v1/github_secret_scanning_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ class Api::V1::GithubSecretScanningTest < ActionDispatch::IntegrationTest

context "on POST to revoke" do
setup do
key = OpenSSL::PKey::EC.new("secp256k1").generate_key
key = OpenSSL::PKey::EC.generate("secp256k1")
@private_key_pem = key.to_pem
pkey = OpenSSL::PKey::EC.new(key.public_key.group)
pkey.public_key = key.public_key
@public_key_pem = pkey.to_pem
@public_key_pem = key.public_to_pem

h = KEYS_RESPONSE_BODY.dup
h["public_keys"][0]["key"] = @public_key_pem
Expand Down

0 comments on commit 39502e4

Please sign in to comment.