Skip to content

Commit

Permalink
fix filebeat tests
Browse files Browse the repository at this point in the history
remove abandoned filebeat configs
  • Loading branch information
antmoth committed Oct 15, 2024
1 parent f4acd20 commit 20e7c3e
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 119 deletions.
18 changes: 0 additions & 18 deletions manifests/profile/elastic/filebeat/configs/clickstream.pp

This file was deleted.

20 changes: 0 additions & 20 deletions manifests/profile/elastic/filebeat/configs/mgetit.pp

This file was deleted.

14 changes: 0 additions & 14 deletions manifests/role/mgetit_log.pp

This file was deleted.

1 change: 0 additions & 1 deletion manifests/role/webhost/www_lib_vm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
Hash $hosts = {}
) {
include nebula::role::umich
include nebula::profile::elastic::filebeat::configs::clickstream
include nebula::profile::www_lib::register_for_load_balancing

class { 'nebula::profile::networking::private':
Expand Down
22 changes: 0 additions & 22 deletions spec/classes/profile/elastic/filebeat/configs/clickstream_spec.rb

This file was deleted.

40 changes: 0 additions & 40 deletions spec/classes/profile/elastic/filebeat/configs/mgetit_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/classes/profile/elastic/filebeat/configs/ulib_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
it do
is_expected.to contain_file(file)
.that_notifies('Service[filebeat]')
.with_content(%r{^\s+document_type: ulib$})
.with_content(%r{^\s+ulib_type: 90_day$})
end
it { is_expected.to contain_file(file).with_content(%r{^ \- "/var/log/1.log"$}) }
it { is_expected.to contain_file(file).with_content(%r{^ \- "/var/log/logger/2.txt"$}) }
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/profile/elastic/filebeat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

[
%r{^\s*config_dir: configs$},
%r{^\s*path: configs/\*.yml$},
%r{^\s*hosts:.*"logstash.umdl.umich.edu:5044"},
].each do |content|
it { is_expected.to contain_file('/etc/filebeat/filebeat.yml').with_content(content) }
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/profile/elastic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
it do
is_expected.to contain_apt__source('elastic.co').with(
comment: 'Elastic.co apt source for beats and elastic search',
location: 'https://artifacts.elastic.co/packages/5.x/apt',
location: 'https://artifacts.elastic.co/packages/7.x/apt',
release: 'stable',
repos: 'main',
include: {
Expand Down
1 change: 0 additions & 1 deletion spec/fixtures/hiera/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ nebula::profile::dns::smartconnect::nameserver: 1.2.3.4
nebula::profile::elastic::logstash_auth_cert: ''
nebula::profile::elastic::logstash_hosts:
- logstash.default.invalid:1234
nebula::profile::elastic::filebeat::configs::mgetit::log_path: /var/log/mgetit.default.invalid
nebula::profile::elastic::period: 90
nebula::profile::haproxy::services: {}
nebula::profile::haproxy::monitoring_user:
Expand Down

0 comments on commit 20e7c3e

Please sign in to comment.