Skip to content

Commit b0b7814

Browse files
committed
Fix wrong data type allocation custom_attributes/extension_requests for csr_attributes
1 parent 87d07ee commit b0b7814

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Alias of
3737
```puppet
3838
Struct[{
3939
Optional['custom_attributes'] => Hash[
40-
Openvox_bootstrap::Oid,
40+
Variant[Openvox_bootstrap::Oid,Openvox_bootstrap::Cer_short_names],
4141
String
4242
],
4343
Optional['extension_requests'] => Hash[
44-
Variant[Openvox_bootstrap::Oid,Openvox_bootstrap::Cer_short_names],
44+
Openvox_bootstrap::Oid,
4545
String
4646
],
4747
}]

spec/tasks/configure_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ def check_returned_id(uid_or_gid)
133133
let(:csr_attributes) do
134134
{
135135
'custom_attributes' => {
136-
'1.2.840.113549.1.9.7' => 'bar',
136+
'pp_role' => 'spec'
137137
},
138138
'extension_requests' => {
139-
'pp_role' => 'spec'
139+
'1.2.840.113549.1.9.7' => 'bar',
140140
}
141141
}
142142
end
@@ -145,9 +145,9 @@ def check_returned_id(uid_or_gid)
145145
<<~YAML
146146
---
147147
custom_attributes:
148-
1.2.840.113549.1.9.7: bar
149-
extension_requests:
150148
pp_role: spec
149+
extension_requests:
150+
1.2.840.113549.1.9.7: bar
151151
YAML
152152
end
153153

types/csr_attributes.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
type Openvox_bootstrap::Csr_attributes = Struct[
33
{
44
Optional['custom_attributes'] => Hash[
5-
Openvox_bootstrap::Oid,
5+
Variant[Openvox_bootstrap::Oid,Openvox_bootstrap::Cer_short_names],
66
String
77
],
88
Optional['extension_requests'] => Hash[
9-
Variant[Openvox_bootstrap::Oid,Openvox_bootstrap::Cer_short_names],
9+
Openvox_bootstrap::Oid,
1010
String
1111
],
1212
}

0 commit comments

Comments
 (0)