Skip to content

(CAT-2218): Add 'forms' to valid authentication schemas and update validation message #398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
4 changes: 2 additions & 2 deletions lib/puppet_x/puppetlabs/iis/property/authenticationinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class PuppetX::PuppetLabs::IIS::Property::AuthenticationInfo < Puppet::Property
authentication. This type does not ensure a given feature is installed
before attempting to configure it.'
valid_schemas = ['anonymous', 'basic', 'clientCertificateMapping',
'digest', 'iisClientCertificateMapping', 'windows']
'digest', 'iisClientCertificateMapping', 'windows', 'forms']
def insync?(is)
should.reject { |k, v|
is[k] == v
Expand All @@ -16,7 +16,7 @@ def insync?(is)
validate do |value|
raise "#{name} should be a Hash" unless value.is_a? ::Hash
unless (value.keys & valid_schemas) == value.keys
raise('All schemas must specify any of the following: anonymous, basic, clientCertificateMapping, digest, iisClientCertificateMapping, or windows')
raise('All schemas must specify any of the following: anonymous, basic, clientCertificateMapping, digest, iisClientCertificateMapping, windows, or forms')
end
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'spec_helper'
require 'puppet/provider/iis_powershell'

describe 'iis_application provider' do
subject(:iis_application_provider) do
Expand Down
Loading