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
(MODULES-6528) Fix registry::value defined type #153
(MODULES-6528) Fix registry::value defined type #153
Conversation
94122fc
to
4f5a86e
Compare
- Demonstrate the bug introduced in the 2.0.0 release as part of 48a0b07 - Tests for dword, qword and array type values currently fail given the defined type doesn't properly type the $data value to allow numeric values or arrays.
- Fix the bug introduced in 48a0b07 that did not have lenient enough typing for the $data parameter to the registry::value defined type. - This commit adds support for numerics, which are necessary for dword and qword. It also adds support for arrays, which are always an array of strings (corresponding to REG_MULTI_SZ).
4f5a86e
to
e36dc74
Compare
end | ||
|
||
['dword', 'qword'].each do |type| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests here cover all the valid types per https://github.com/puppetlabs/puppetlabs-registry#type - string
, array
, dword
, qword
, binary
and expand
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a | |||
|
|||
## Unreleased | |||
|
|||
#### Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed our use of header here is inconsistent... I copied the prior which was using ####
, but now see most (but not all!) are using ###
Demonstrate the bug introduced in the 2.0.0 release as part of
48a0b07
Tests for dword, qword and array type values currently fail in the first
commit given the defined type doesn't properly type the $data value to
allow numeric values or arrays.
Fix the bug introduced in 48a0b07
that did not have lenient enough typing for the $data parameter to
the registry::value defined type.
This commit adds support for numerics, which are necessary for
dword and qword. It also adds support for arrays, which are always
an array of strings (corresponding to REG_MULTI_SZ).