Merge pull request #85 from amendlik/test-kitchen
Add test-kitchen configuration
This commit is contained in:
		
						commit
						b0afda98ed
					
				
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| *.swp | ||||
| .kitchen/ | ||||
| .kitchen.local.yml | ||||
							
								
								
									
										33
									
								
								.kitchen.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.kitchen.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| --- | ||||
| driver: | ||||
|   name: vagrant | ||||
| 
 | ||||
| platforms: | ||||
|   - name: centos-6.8 | ||||
|   - name: centos-7.2 | ||||
|   - name: ubuntu-14.04 | ||||
|   - name: ubuntu-16.04 | ||||
|   - name: debian-8.5 | ||||
| 
 | ||||
| provisioner: | ||||
|   name: salt_solo | ||||
|   salt_install: bootstrap | ||||
|   salt_bootstrap_url: https://bootstrap.saltstack.com | ||||
|   salt_version: latest | ||||
|   formula: openssh | ||||
|   pillars: | ||||
|     top.sls: | ||||
|       base: | ||||
|         '*': | ||||
|           - openssl | ||||
|     openssl.sls: | ||||
|       sshd_enable: true | ||||
| 
 | ||||
| suites: | ||||
|   - name: default | ||||
|     provisioner: | ||||
|       salt_bootstrap_options: -X -d | ||||
|       state_top: | ||||
|         base: | ||||
|           '*': | ||||
|             - openssh.config | ||||
							
								
								
									
										17
									
								
								test/integration/default/serverspec/openssl_server_spec.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								test/integration/default/serverspec/openssl_server_spec.rb
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| require 'serverspec' | ||||
| set :backend, :exec | ||||
| 
 | ||||
| def service_name() | ||||
|   return case os[:family] | ||||
|     when 'redhat' then 'sshd' | ||||
|     when 'debian', 'ubuntu' then 'ssh' | ||||
|   end | ||||
| end | ||||
| 
 | ||||
| describe 'openssl/config.sls' do | ||||
| 
 | ||||
|   describe service(service_name()) do | ||||
|     it { should be_running } | ||||
|   end | ||||
| 
 | ||||
| end | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Niels Abspoel
						Niels Abspoel