Skip to content

Commit

Permalink
Merge branch 'master' into feature/#17731_ips_ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Sep 19, 2024
2 parents e547610 + a291bd5 commit 575a283
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Infrastructure integration testing for redborder-ips

## Installation
On your workstation, execute the following command in your terminal:
```ssh
```
bundle install
```

Expand Down
2 changes: 2 additions & 0 deletions spec/configuration/cgroup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
end

cgroups.each do |cgroup|
next if cgroup.include?"snortd" or cgroup.include?"barnyard2"

describe file("#{cgroup}/cgroup.controllers") do
it { should exist }
it { should be_file }
Expand Down
11 changes: 9 additions & 2 deletions spec/configuration/network_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
require 'spec_helper'
set :os, family: 'redhat', release: '9', arch: 'x86_64'

describe interface('ens160') do
it { should exist }
interfaces = command('ip link show | grep "^[0-9]" | cut -d" " -f2 | sed "s/:$//"').stdout.split("\n")

describe 'All interfaces: ' do
interfaces.each do |interface|
describe interface(interface) do
it { should exist }
# it { should be_up }
end
end
end
17 changes: 10 additions & 7 deletions spec/services/snortd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
end
end

describe "Checking service_status service for #{service}..." do
describe service(service) do
it { should be_enabled }
skip 'You have to run snort/initd to check this. It needs to be solved in a task'
# it { should be_running }
end
end
# TODO: refactor
# Checking if the service is running has been omitted and is marked to be addressed in a future task,
# as it requires running snort/initd for verification.
# describe "Checking service_status service for #{service}..." do
# describe service(service) do
# it { should be_enabled }
# skip 'You have to run snort/initd to check this. It needs to be solved in a task'
# # it { should be_running }
# end
# end

0 comments on commit 575a283

Please sign in to comment.