Skip to content
Merged
Show file tree
Hide file tree
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
384 changes: 289 additions & 95 deletions Gemfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/udap_security_test_kit/common_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.assert_array_of_strings(config, field)

assert values.is_a?(Array), "`#{field}` should be an Array, but found #{values.class.name}"

non_string_values = values.reject { |value| value.is_a?(String) }
non_string_values = values.grep_v(String)

assert non_string_values.blank?,
"`#{field}` should be an Array of strings, but found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class GrantTypesSupportedFieldTest < Inferno::Test
title 'grant_types_supported field'
id :udap_grant_types_supported_field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class RegEndpointJWTSigningAlgValuesSupportedFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
1 change: 1 addition & 0 deletions lib/udap_security_test_kit/scopes_supported_field_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class ScopesSupportedFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class TokenEndpointAuthSigningAlgValuesSupportedFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class UDAPCertificationsRequiredFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative 'common_assertions'
module UDAPSecurityTestKit
extend CommonAssertions

class UDAPCertificationsSupportedFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module UDAPSecurityTestKit
extend CommonAssertions

class UDAPProfilesSupportedFieldTest < Inferno::Test
include Inferno::DSL::Assertions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::UDAPClientAppLaunchAuthorizationRequestVerification do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { described_class }
let(:test_session) do # overriden to add suite options
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::MockUDAPServer, :request, :runnable do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { suite.children[2].children[0] } # access test
let(:results_repo) { Inferno::Repositories::Results.new }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::UDAPClientRegistrationAuthorizationCodeVerification do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { described_class }
let(:test_session) do # overriden to add suite options
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::UDAPClientRegistrationClientCredentialsVerification do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { described_class }
let(:test_session) do # overriden to add suite options
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::UDAPClientRegistrationInteraction, :request do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { described_class }
let(:results_repo) { Inferno::Repositories::Results.new }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe UDAPSecurityTestKit::UDAPClientTokenRequestAuthorizationCodeVerification do # rubocop:disable RSpec/SpecFilePathFormat
include UDAPSecurityTestKit::URLs

let(:suite_id) { 'udap_security_client' }
let(:test) { described_class }
let(:test_session) do # overriden to add suite options
Expand Down
6 changes: 0 additions & 6 deletions spec/udap_security_test_kit/udap_jwt_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
trust_anchor_certs
)
expect(validation_result[:success]).to be true
unless validation_result[:success]
puts "Trust chain validation error message: #{validation_result[:error_message]}"
end
end

it 'returns that trust chain cannot be verified if CRL endpoint not accessible' do
Expand Down Expand Up @@ -91,9 +88,6 @@
)

expect(validation_result[:success]).to be true
unless validation_result[:success]
puts "JWT Signature validation error message: #{validation_result[:error_message]}"
end
end
end
end
2 changes: 1 addition & 1 deletion udap_security_test_kit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.description = 'UDAP Security IG Test Kit'
spec.homepage = 'https://github.com/inferno-framework/udap-security-test-kit'
spec.license = 'Apache-2.0'
spec.add_dependency 'inferno_core', '~> 1.0', '>= 1.0.2'
spec.add_dependency 'inferno_core', '~> 1.2', '>= 1.2.2'
spec.add_dependency 'jwt', '~> 2.3'
spec.required_ruby_version = Gem::Requirement.new('>= 3.3.6')
spec.metadata['homepage_uri'] = spec.homepage
Expand Down
Loading