mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 18:37:15 +00:00 
			
		
		
		
	* split up installation for core and kapi+grapi * add some debug output in case package installation fails * let konnect run as nobody * add code to check writing permissions for certificates and create certificates in container if possible * add tests to check on failed and successful certificate creation * add certificate creation logic from the konnect binfile * add env for custom dockerize timeout (to fail earlier in tests)
		
			
				
	
	
		
			76 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| tests:
 | |
|   normal startup:
 | |
|     command: /commander/test-helper.sh && wrapper.sh
 | |
|     exit-code: 0
 | |
|     stdout:
 | |
|       contains:
 | |
|         - "Entrypoint: Allowing guest login"
 | |
|         - "--allow-client-guests"
 | |
|         - "Entrypoint: Allowing dynamic client registration"
 | |
|         - "--allow-dynamic-client-registration"
 | |
|   guests disabled:
 | |
|     command: /commander/test-helper.sh && wrapper.sh && yq . $identifier_registration_conf
 | |
|     stdout:
 | |
|       not-contains:
 | |
|         - "--allow-client-guests"
 | |
|         - "kpop-https://$FQDN/meet/"
 | |
|     config:
 | |
|       env:
 | |
|         allow_client_guests: no
 | |
|   external oidc provider:
 | |
|     command: /commander/test-helper.sh && wrapper.sh && yq . $identifier_registration_conf
 | |
|     stdout:
 | |
|       contains:
 | |
|         - '"authorities": ['
 | |
|     config:
 | |
|       env:
 | |
|         external_oidc_provider: yes
 | |
|   identifier scopes:
 | |
|     command: /commander/test-helper.sh && wrapper.sh && yq . $identifier_scopes_conf
 | |
|     stdout:
 | |
|       contains:
 | |
|         - '"description": "Access Kopano Meet"'
 | |
|   identifier registration in /etc/kopano:
 | |
|     command: /commander/test-helper.sh && wrapper.sh && yq . $identifier_registration_conf
 | |
|     config:
 | |
|       env:
 | |
|         identifier_registration_conf: /etc/kopano/konnectd-identifier-registration.yaml
 | |
|   no write permissions for certificates:
 | |
|     command: /commander/test-helper.sh && wrapper.sh
 | |
|     exit-code: 1
 | |
|     stderr:
 | |
|       contains:
 | |
|         - "can't create /root/sign.key: Permission denied"
 | |
|         - 'Timeout after 1s waiting on dependencies to become available: [file:///root/sign.key]'
 | |
|     config:
 | |
|       env:
 | |
|         signing_private_key: /root/sign.key
 | |
|         DOCKERIZE_TIMEOUT: 1s
 | |
|   certificate creation in container:
 | |
|     command: /commander/test-helper.sh && wrapper.sh
 | |
|     stderr:
 | |
|       contains:
 | |
|         - "setup: creating new RSA private key at"
 | |
|       not-contains:
 | |
|         - "Timeout after 360s waiting on dependencies to become available:"
 | |
|     config:
 | |
|       env:
 | |
|         signing_private_key: /tmp/sign.key
 | |
|         encryption_secret_key: /tmp/secret.key
 | |
| config:
 | |
|   env:
 | |
|     PATH: ${PATH}
 | |
|     eckey: ${eckey}
 | |
|     allow_client_guests: ${allow_client_guests}
 | |
|     ecparam: ${ecparam} 
 | |
|     signing_private_key: ${signing_private_key}
 | |
|     KONNECT_BACKEND: ${KONNECT_BACKEND}
 | |
|     FQDN: ${FQDN}
 | |
|     identifier_registration_conf: ${identifier_registration_conf}
 | |
|     encryption_secret_key: ${encryption_secret_key}
 | |
|     identifier_scopes_conf: ${identifier_scopes_conf}
 | |
|     allow_dynamic_client_registration: ${allow_dynamic_client_registration}
 | |
|     DEBUG: ${DEBUG}
 | |
|     LANG: ${LANG}
 | |
| 
 |