File: validate_ip_addr_spec.rb

package info (click to toggle)
puppet-module-puppetlabs-haproxy 8.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 816 kB
  • sloc: ruby: 3,979; sh: 14; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

require 'spec_helper'

describe 'haproxy::validate_ip_addr' do
  it { is_expected.to run.with_params('10.0.0.10').and_return(true) }
  it { is_expected.to run.with_params('256.168.0.1').and_return(false) }
  it { is_expected.to run.with_params(nil).and_raise_error(StandardError) }
end