Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
389 changes: 292 additions & 97 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.reject { |value| value.is_a?(String) } # rubocop:disable Style/SelectByKind
Comment thread
FlexonyoPizza marked this conversation as resolved.
Outdated

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
4 changes: 2 additions & 2 deletions spec/udap_security_test_kit/udap_jwt_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)
expect(validation_result[:success]).to be true
unless validation_result[:success]
puts "Trust chain validation error message: #{validation_result[:error_message]}"
puts "Trust chain validation error message: #{validation_result[:error_message]}" # rubocop:disable RSpec/Output
end
Comment thread
FlexonyoPizza marked this conversation as resolved.
Outdated
end

Expand Down Expand Up @@ -92,7 +92,7 @@

expect(validation_result[:success]).to be true
unless validation_result[:success]
puts "JWT Signature validation error message: #{validation_result[:error_message]}"
puts "JWT Signature validation error message: #{validation_result[:error_message]}" # rubocop:disable RSpec/Output
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dead code I think and can be removed

end
end
end
Expand Down
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