From 9a282cf5ece88f27e46c2ede3c5797c691343e07 Mon Sep 17 00:00:00 2001 From: Enrico Vianello Date: Tue, 10 Oct 2023 14:22:41 +0200 Subject: [PATCH] v1.0.1 --- CHANGELOG.md | 8 ++++++++ manifests/init.pp | 4 +--- metadata.json | 2 +- spec/classes/testca_spec.rb | 8 ++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c954cd..525f83b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. +## Release 1.0.1 + +- Fixed tests + +## Release 1.0.0 + +- Changed baseurl + ## Release 0.1.0 **Features** diff --git a/manifests/init.pp b/manifests/init.pp index b2476df..3d740b6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -3,15 +3,13 @@ # @example # include testca class testca { - file { 'test-ca.repo': ensure => file, path => '/etc/yum.repos.d/test-ca.repo', source => 'puppet:///modules/testca/test-ca.repo', mode => '0644', } - - package { + -> package { 'igi-test-ca': ensure => latest, require => File['test-ca.repo'],; diff --git a/metadata.json b/metadata.json index 4f81a30..a2ed7ba 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "cnafsd-testca", - "version": "1.0.0", + "version": "1.0.1", "author": "cnafsd", "summary": "Install IGI test CA", "license": "Apache-2.0", diff --git a/spec/classes/testca_spec.rb b/spec/classes/testca_spec.rb index 7ce3985..73bb896 100644 --- a/spec/classes/testca_spec.rb +++ b/spec/classes/testca_spec.rb @@ -7,20 +7,20 @@ it { is_expected.to compile } - it "check repo file" do + it 'check repo file' do repo_file='/etc/yum.repos.d/test-ca.repo' is_expected.to contain_file('test-ca.repo').with( :ensure => 'file', :path => repo_file, ) end - it "check igi-test-ca" do + it 'check igi-test-ca' do is_expected.to contain_package('igi-test-ca') end - it "check igi-test-ca-2" do + it 'check igi-test-ca-2' do is_expected.to contain_package('igi-test-ca-2') end - it "check igi-test-ca-256" do + it 'check igi-test-ca-256' do is_expected.to contain_package('igi-test-ca-256') end end