Compare commits
	
		
			2 Commits
		
	
	
		
			f20645d1d2
			...
			991e82cfda
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 991e82cfda | |||
| e559ca80ae | 
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -2,7 +2,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
log
 | 
					log
 | 
				
			||||||
vendor
 | 
					vendor
 | 
				
			||||||
 | 
					cert
 | 
				
			||||||
/config.yml
 | 
					/config.yml
 | 
				
			||||||
 | 
					config.bak.yml
 | 
				
			||||||
acme-mana.exe
 | 
					acme-mana.exe
 | 
				
			||||||
acme-mana.pid
 | 
					acme-mana.pid
 | 
				
			||||||
acme-mana.sock
 | 
					acme-mana.sock
 | 
				
			||||||
							
								
								
									
										16
									
								
								test/task_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								test/task_test.go
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,16 @@
 | 
				
			||||||
 | 
					package test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"acme-mana/src"
 | 
				
			||||||
 | 
						"log"
 | 
				
			||||||
 | 
						"path"
 | 
				
			||||||
 | 
						"testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func TestA(t *testing.T) {
 | 
				
			||||||
 | 
						domain := src.GetAppConfig().Domains[0]
 | 
				
			||||||
 | 
						name := domain.Name
 | 
				
			||||||
 | 
						dir := src.GetAppConfig().CertDir
 | 
				
			||||||
 | 
						certDir := path.Join(dir, name)
 | 
				
			||||||
 | 
						log.Println(src.ValidExist(certDir, domain))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user