Add simple test for conf.d
This commit is contained in:
		
							parent
							
								
									ce59bb364f
								
							
						
					
					
						commit
						1bbaeacc84
					
				
					 4 changed files with 16 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,10 +1,9 @@
 | 
			
		|||
[core]
 | 
			
		||||
database = "emgauwa-core.sqlite"
 | 
			
		||||
include = "../emgauwa-core-testing.conf.d"
 | 
			
		||||
content-dir = "."
 | 
			
		||||
not-found-file = "404.html"
 | 
			
		||||
not-found-file-mime = "text/html"
 | 
			
		||||
not-found-content = "404 - NOT FOUND"
 | 
			
		||||
not-found-content-type = "text/plain"
 | 
			
		||||
 | 
			
		||||
[ports]
 | 
			
		||||
server = 5000
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								tests/emgauwa-core-testing.conf.d/conf_d_working.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tests/emgauwa-core-testing.conf.d/conf_d_working.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
[core]
 | 
			
		||||
not-found-content = '{"msg": "conf.d working"}'
 | 
			
		||||
not-found-content-type = "application/json"
 | 
			
		||||
| 
						 | 
				
			
			@ -14,3 +14,12 @@ stages:
 | 
			
		|||
    method: GET
 | 
			
		||||
  response:
 | 
			
		||||
    status_code: 404
 | 
			
		||||
 | 
			
		||||
- name: "[test_basics] verify conf.d by 404"
 | 
			
		||||
  request:
 | 
			
		||||
    url: "http://localhost:5000/invalid_url_for_testing_do_not_use"
 | 
			
		||||
    method: GET
 | 
			
		||||
  response:
 | 
			
		||||
    status_code: 404
 | 
			
		||||
    json:
 | 
			
		||||
        msg: "conf.d working"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue