File tree Expand file tree Collapse file tree 2 files changed +11
-36
lines changed Expand file tree Collapse file tree 2 files changed +11
-36
lines changed Original file line number Diff line number Diff line change 3939
4040 # Key has changed since 3.9
4141 $repo_key_name = $release ? {
42- ' 3.8 ' => ' A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC ' ,
43- ' 3.10 ' => ' C784DD0FD61E38B8B1F65E10DAD761554A72C1DF ' ,
44- ' 3.11 ' => ' DE82F0BACC4DB70DBEF95CA65EC2255642304A6E ' ,
45- ' 3.12 ' => ' 8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4 ' ,
46- default => ' 849512C2CA648EF425048F55C883F50CB2289A17 ' ,
42+ ' 3.10 ' => ' C784DD0FD61E38B8B1F65E10DAD761554A72C1DF ' ,
43+ ' 3.11 ' => ' DE82F0BACC4DB70DBEF95CA65EC2255642304A6E ' ,
44+ ' 3.12 ' => ' 8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4 ' ,
45+ ' 3.13 ' => ' 9B5AE8E6FD2581F293104ACC38675E5F30F779AF ' ,
46+ default => ' 9B5AE8E6FD2581F293104ACC38675E5F30F779AF ' ,
4747 }
4848
49- # Key location is different for some releases
50- $repo_key_source = $release ? {
51- ' 3.8' => " https://download.gluster.org/pub/gluster/glusterfs/${release} /LATEST/rsa.pub" ,
52- default => " https://download.gluster.org/pub/gluster/glusterfs/${release} /rsa.pub" ,
53- }
49+ $repo_key_source = " https://download.gluster.org/pub/gluster/glusterfs/${release} /rsa.pub"
5450
5551 # basic sanity check
5652 if $version == ' LATEST' {
Original file line number Diff line number Diff line change 5353 end
5454 end
5555
56- context 'Specific Gluster release 3.9 ' do
56+ context 'Specific Gluster release 3.12 ' do
5757 let :params do
5858 {
59- release : '3.9 '
59+ release : '3.12 '
6060 }
6161 end
6262
6565 repos : 'main' ,
6666 release : facts [ :lsbdistcodename ] . to_s ,
6767 key : {
68- 'id' => '849512C2CA648EF425048F55C883F50CB2289A17 ' ,
69- 'key_source' => 'https://download.gluster.org/pub/gluster/glusterfs/3.9 /rsa.pub'
68+ 'id' => '8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4 ' ,
69+ 'key_source' => 'https://download.gluster.org/pub/gluster/glusterfs/3.12 /rsa.pub'
7070 } ,
71- location : "https://download.gluster.org/pub/gluster/glusterfs/3.9 /LATEST/Debian/#{ facts [ :lsbdistcodename ] } /apt/"
71+ location : "https://download.gluster.org/pub/gluster/glusterfs/3.12 /LATEST/Debian/#{ facts [ :lsbdistcodename ] } /amd64 /apt/"
7272 )
7373 end
7474 end
75-
76- context 'Specific Gluster release 3.8' do
77- let :params do
78- {
79- release : '3.8'
80- }
81- end
82-
83- it 'installs' do
84- is_expected . to contain_apt__source ( 'glusterfs-LATEST' ) . with (
85- repos : 'main' ,
86- release : facts [ :lsbdistcodename ] . to_s ,
87- key : {
88- 'id' => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC' ,
89- 'key_source' => 'https://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/rsa.pub'
90- } ,
91- location : "http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/#{ facts [ :lsbdistcodename ] } /apt/"
92- )
93- end
94- end
95-
9675 end
9776 end
9877 end
You can’t perform that action at this time.
0 commit comments