Project

General

Profile

Revision f5d21adb

Added by Thomas McKay almost 6 years ago

fixes #15581 - configuration based on foreman stanza

View differences:

test/resources/subnets_test.rb
37 37
      # rubocop:disable LineLength
38 38
      file.write <<-FILE
39 39
Name,Organizations,Locations,Network,Network Mask,Network Prefix,From,To,Domains,Gateway,DHCP Proxy,TFTP Proxy,DNS Proxy,DNS Primary,DNS Secondary,VLAN ID
40
Test Subnet,Test Corporation,Default Location,192.168.100.1,255.255.255.0,,"","",test.com,"","",katello.example.com,"","","",""
40
Test Subnet,Test Corporation,Testing,192.168.100.1,255.255.255.0,,"","",test.com,"","",,"","","",""
41 41
FILE
42 42
      file.rewind
43 43

  
......
64 64
      # rubocop:disable LineLength
65 65
      file.write <<-FILE
66 66
Name,Organizations,Locations,Network,Network Mask,Network Prefix,From,To,Domains,Gateway,DHCP Proxy,TFTP Proxy,DNS Proxy,DNS Primary,DNS Secondary,VLAN ID
67
Bad Subnet,Test Corporation,Default Location,192.168.100.1,255.255.255.0,24,bad,,test.com,"","",katello.example.com,"","","",""
68
Test Subnet,Test Corporation,Default Location,192.168.100.1,255.255.255.0,24,"","",example.com,"","",katello.example.com,"","","",""
67
Bad Subnet,Test Corporation,Testing,192.168.100.1,255.255.255.0,24,bad,,test.com,"","",,"","","",""
68
Test Subnet,Test Corporation,Testing,192.168.100.1,255.255.255.0,24,"","",test.com,"","",,"","","",""
69 69
FILE
70 70
      file.rewind
71 71

  
......
75 75
      lines = stderr.split("\n")
76 76
      assert_equal "Error: 422 Unprocessable Entity", lines[0]
77 77
      lines = stdout.split("\n")
78
      assert_equal lines[0], "Creating subnet 'Bad Subnet'...Updating subnet 'Test Subnet'...done"
78
      assert_equal "Creating subnet 'Bad Subnet'...Updating subnet 'Test Subnet'...done", lines[0]
79 79
      file.unlink
80 80
      stop_vcr
81 81
    end

Also available in: Unified diff