Adjust keycloak_required_action resource to not use metaparameter alias #516
Annotations
5 errors and 1 warning
spec/unit/puppet/provider/keycloak_required_action/kcadm_spec.rb#L51
Puppet::Type::Keycloak_required_action::ProviderKcadm destroy deregisters a required action
Failure/Error: resource.provider.instance_variable_set(:@property_hash)
ArgumentError:
wrong number of arguments (given 1, expected 2)
|
spec/unit/puppet/provider/keycloak_required_action/kcadm_spec.rb#L85
Puppet::Type::Keycloak_required_action::ProviderKcadm flush uses display_name from current state if none specified explicitly
Failure/Error: kcadm('update', "authentication/required-actions/#{@property_hash[:provider_id]}", resource[:realm], t.path)
Keycloak_required_action[foo](provider=kcadm) received :kcadm with unexpected arguments
expected: ("update", "authentication/required-actions/webauthn-register", "test", "/tmp/keycloak_required_action_configure20240926-2068-95oczr")
got: ("update", "authentication/required-actions/", "test", "/tmp/keycloak_required_action_configure20240926-2068-95oczr")
|
spec/unit/puppet/type/keycloak_required_action_spec.rb#L27
Puppet::Type::Keycloak_required_action has alias default to provider_id
Failure/Error: raise Puppet::Error, "Keycloak_required_action[#{self[:name]}] must have a #{property} defined"
Puppet::ResourceError:
Validation of Keycloak_required_action[foo] failed: Keycloak_required_action[foo] must have a provider_id defined
|
spec/unit/puppet/type/keycloak_required_action_spec.rb#L168
Puppet::Type::Keycloak_required_action validations does not require provider_id for absent
Failure/Error: expect { resource }.not_to raise_error
expected no Exception, got #<Puppet::ResourceError: Validation of Keycloak_required_action[foo] failed: Keycloak_required_action[foo] must have a provider_id defined> with backtrace:
# ./lib/puppet/type/keycloak_required_action.rb:122:in `block (3 levels) in <top (required)>'
# ./lib/puppet/type/keycloak_required_action.rb:120:in `each'
# ./lib/puppet/type/keycloak_required_action.rb:120:in `block (2 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.9.0/lib/puppet/type.rb:2257:in `block in validate'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.9.0/lib/puppet/type.rb:2358:in `validate_resource'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.9.0/lib/puppet/type.rb:2345:in `initialize'
# ./spec/unit/puppet/type/keycloak_required_action_spec.rb:17:in `new'
# ./spec/unit/puppet/type/keycloak_required_action_spec.rb:17:in `block (2 levels) in <top (required)>'
# ./spec/unit/puppet/type/keycloak_required_action_spec.rb:171:in `block (4 levels) in <top (required)>'
# ./spec/unit/puppet/type/keycloak_required_action_spec.rb:171:in `block (3 levels) in <top (required)>'
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading