Skip to content

Commit

Permalink
Merge pull request #66 from redBorder/motd_integration_test
Browse files Browse the repository at this point in the history
Add motd test
rgomezborder authored Dec 4, 2024
2 parents 7c2a79c + db72f30 commit dfde3dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/configuration/motd_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'
set :os, family: 'redhat', release: '9', arch: 'x86_64'

# Verificar que existe un script MOTD en el sistema
describe file('/usr/lib/redborder/bin/motd') do
it { should exist }
it { should be_executable }
end

# Verificar la existencia del archivo MOTD en /etc/motd y su contenido
describe file('/etc/motd') do
it { should exist }
its('content') { should match(/.*redborder-repo.*/) }
end

0 comments on commit dfde3dd

Please sign in to comment.