Currently if a user provides invalid credentials, the error will be reported at runtime (when the servicenow.rb script is executed on the node) instead of during the trusted external data setup. The work here should add a dry test in init.pp that makes a ServiceNow API call to the specified {{cmdb_table}} (it's probably enough to just invoke the servicenow.rb script with an arbitrary certname since the script returns an empty hash for those certnames). So something like exec 'servicenow.rb foo' is enough.
Currently if a user provides invalid credentials, the error will be reported at runtime (when the
servicenow.rb
script is executed on the node) instead of during the trusted external data setup. The work here should add a dry test ininit.pp
that makes a ServiceNow API call to the specified {{cmdb_table}} (it's probably enough to just invoke theservicenow.rb
script with an arbitrary certname since the script returns an empty hash for those certnames). So something likeexec 'servicenow.rb foo'
is enough.