Skip to content

Commit

Permalink
(SIMP-3787) gnome: add libxkbcommon-x11 to package list (#31)
Browse files Browse the repository at this point in the history
- Add libxkbcommon-x11 to package list on EL 7.4
- Maintenance updates to .fixtures.yml and .travis.yml

SIMP-3787 #close
SIMP-3786 #comment code update
  • Loading branch information
lnemsick-simp authored and Nick Miller committed Sep 21, 2017
1 parent eb90cf6 commit ab95fad
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ fixtures:
polkit: https://github.com/simp/pupmod-simp-polkit
simplib: https://github.com/simp/pupmod-simp-simplib
stdlib: https://github.com/simp/puppetlabs-stdlib
symlinks:
gnome: "#{source_dir}"
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ before_script:
bundler_args: --without development system_tests --path .vendor
before_install: rm Gemfile.lock || true
script:
- bundle exec rake compare_latest_tag
- bundle exec rake test
notifications:
email: false
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* Wed Sep 20 2017 Liz Nemsick <[email protected]> - 7.0.1-0
- Add libxkbcommon-x11 to required package list for CentOS/RedHat 7.4.
- Remove unnecessary CentOS data-in-module files. The OS family fact
for CentOS is RedHat, so these files are not used.

* Mon Jun 05 2017 Nick Miller <[email protected]> - 7.0.0-0
- module was rewritten
- takes advantage of the data in modules paradigm
Expand Down
8 changes: 0 additions & 8 deletions data/os/CentOS-6.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions data/os/CentOS-7.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions data/os/RedHat-7.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
gnome::packages:
libxkbcommon-x11: ~
4 changes: 4 additions & 0 deletions hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
version: 4
datadir: data
hierarchy:
- name: "OS family + Major.Minor Release"
backend: yaml
path: "os/%{facts.os.family}-%{facts.os.release.major}.%{facts.os.release.minor}"

- name: "OS family + Major Release"
backend: yaml
path: "os/%{facts.os.family}-%{facts.os.release.major}"
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-gnome",
"version": "7.0.0",
"version": "7.0.1",
"author": "SIMP Team",
"summary": "Provides useful settings to set up the GNOME desktop environment",
"license": "Apache-2.0",
Expand Down
42 changes: 42 additions & 0 deletions spec/classes/gnome_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
'yelp',
]

packages_el7_4 = packages_el7 + [ 'libxkbcommon-x11' ]

describe 'gnome' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
Expand Down Expand Up @@ -204,4 +206,44 @@

end
end

# These tests can be folded into the tests above, once
# simp-rspec-puppet-facts RubyGem is updated.
context 'with CentOS 7.4' do
let(:facts) {{
:os => {
:family => "RedHat",
:hardware => "x86_64",
:name => "CentOS",
:release => {
:major => "7",
:minor => "4"
}
},
:gdm_version => '3.20.1'
}}

packages_el7_4.each do |pkg|
it { is_expected.to contain_package(pkg).with_ensure('installed') }
end
end

context 'with RedHat 7.4' do
let(:facts) {{
:os => {
:family => "RedHat",
:hardware => "x86_64",
:name => "RedHat",
:release => {
:major => "7",
:minor => "4"
}
},
:gdm_version => '3.20.1'
}}

packages_el7_4.each do |pkg|
it { is_expected.to contain_package(pkg).with_ensure('installed') }
end
end
end

0 comments on commit ab95fad

Please sign in to comment.