add tests
This commit is contained in:
		
							parent
							
								
									bf4a867ddb
								
							
						
					
					
						commit
						645639203b
					
				
							
								
								
									
										1
									
								
								test/dcard_regex/curl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/dcard_regex/curl
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | curl -H "Content-Type: application/json" -X POST -d@./regex.json http://localhost/regex | ||||||
							
								
								
									
										24
									
								
								test/dcard_regex/regex.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								test/dcard_regex/regex.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,24 @@ | |||||||
|  | [ | ||||||
|  |     { | ||||||
|  |         "regex": { | ||||||
|  |             "function": "extract", | ||||||
|  |             "description": "pull first 20 characters from description for mapping", | ||||||
|  |             "where": [ | ||||||
|  |                 {} | ||||||
|  |             ], | ||||||
|  |             "defn": [ | ||||||
|  |                 { | ||||||
|  |                     "regex": ".{1,20}", | ||||||
|  |                     "map": "y", | ||||||
|  |                     "field": "f20", | ||||||
|  |                     "flag": "", | ||||||
|  |                     "key": "{Description}", | ||||||
|  |                     "retain": "y" | ||||||
|  |                 } | ||||||
|  |             ] | ||||||
|  |         }, | ||||||
|  |         "sequence": 2, | ||||||
|  |         "name": "First 20", | ||||||
|  |         "srce": "dcard" | ||||||
|  |     } | ||||||
|  | ] | ||||||
							
								
								
									
										1
									
								
								test/dcard_source/curl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/dcard_source/curl
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost/srce_set | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user