| 
									
										
										
										
											2015-11-03 11:46:54 +03:00
										 |  |  | require 'db/mongo/models/deploy_env/deploy_env_openstack' | 
					
						
							| 
									
										
										
										
											2015-12-10 01:24:23 +03:00
										 |  |  | require_relative 'shared_deploy_env_specs' | 
					
						
							|  |  |  | require_relative 'shared_cloud_deploy_env_specs' | 
					
						
							| 
									
										
										
										
											2015-11-03 11:46:54 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | RSpec.describe Devops::Model::DeployEnvOpenstack, type: :model do | 
					
						
							|  |  |  |   let(:env) { build(:deploy_env_openstack) } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-10 01:24:23 +03:00
										 |  |  |   describe 'it inherits from cloud deploy_env', stubbed_env_validators: true do | 
					
						
							|  |  |  |     it_behaves_like 'deploy env' | 
					
						
							|  |  |  |     it_behaves_like 'cloud deploy env' | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2015-11-03 11:46:54 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   describe '.create' do | 
					
						
							|  |  |  |     it 'returns instance of DeployEnvOpenstack' do | 
					
						
							|  |  |  |       expect(described_class.create({})).to be_an_instance_of(described_class) | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   describe '#subnets_filter' do | 
					
						
							|  |  |  |     it 'always returns nil' do | 
					
						
							|  |  |  |       expect(env.subnets_filter).to be nil | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |