@@ -16,11 +16,11 @@ class SubnetsControllerTest < ActionController::TestCase
1616 context 'three similar subnets exists' do
1717 def setup
1818 as_admin do
19- @s1 = FactoryBot . create ( :subnet_ipv4 , :network => '100.20.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
20- @s3 = FactoryBot . create ( :subnet_ipv4 , :network => '200.100.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
21- @s2 = FactoryBot . create ( :subnet_ipv4 , :network => '100.100.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
22- @s4 = FactoryBot . create ( :subnet_ipv6 , :network => 'beef::' , :cidr => '64' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
23- @s5 = FactoryBot . create ( :subnet_ipv6 , :network => 'ffee::' , :cidr => '64' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
19+ @s1 = FactoryBot . create ( :subnet_ipv4 , :dhcp , : network => '100.20.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
20+ @s3 = FactoryBot . create ( :subnet_ipv4 , :dhcp , : network => '200.100.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
21+ @s2 = FactoryBot . create ( :subnet_ipv4 , :dhcp , : network => '100.100.100.100' , :cidr => '24' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
22+ @s4 = FactoryBot . create ( :subnet_ipv6 , :dhcp , : network => 'beef::' , :cidr => '64' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
23+ @s5 = FactoryBot . create ( :subnet_ipv6 , :dhcp , : network => 'ffee::' , :cidr => '64' , :organization_ids => [ taxonomies ( :organization1 ) . id ] , :location_ids => [ taxonomies ( :location1 ) . id ] )
2424 end
2525 end
2626
0 commit comments