Skip to content

Commit

Permalink
attempt test for negation using regex rather than as i am less famili…
Browse files Browse the repository at this point in the history
…ar with its behaviour
  • Loading branch information
thejambavan committed Nov 16, 2023
1 parent 5cbb8fe commit 757e9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ class { 'redis':
}
end

it { is_expected.not_to contain_file(config_file_orig).with('content' => %r{^rdb-save-incremental-fsync}) }
it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) }

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on almalinux-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on almalinux-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on centos-7-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on centos-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on centos-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on debian-10-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on debian-11-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on redhat-7-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on redhat-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

redis on redhat-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az564-151.umv0eqcl5qku3cwf2dcfspuvdc.ex.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on centos-7-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on ubuntu-20.04-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on centos-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on rocky-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on centos-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on redhat-9-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on redhat-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on rocky-8-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on debian-10-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net

Check failure on line 1710 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 (Ruby 2.7)

redis on redhat-7-x86_64 test rdb-save-incremental-fsync Undef is expected to contain File[/etc/redis.conf.puppet] with content =~ /(?!^rdb-save-incremental-fsync.*)/ Failure/Error: it { is_expected.to contain_file(config_file_orig).with('content' => %r{(?!^rdb-save-incremental-fsync.*)}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Class[Redis]: parameter 'rdb_save_incremental_fsync' expects a value of type Undef or Boolean, got String (line: 2, column: 1) on node fv-az661-425.ngp0c201cp4ufi15zzjabxwmaf.cx.internal.cloudapp.net
end

describe 'test systemd service timeouts' do
Expand Down

0 comments on commit 757e9d9

Please sign in to comment.