add: receive more controller properties and save them
add: more tests
This commit is contained in:
		
							parent
							
								
									2a4e0e1075
								
							
						
					
					
						commit
						2b9abff7f1
					
				
					 3 changed files with 29 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -43,3 +43,24 @@ stages:
 | 
			
		|||
          url: "http://localhost:5000/api/v1/schedules/on"
 | 
			
		||||
      response:
 | 
			
		||||
          status_code: 200
 | 
			
		||||
          body:
 | 
			
		||||
              name: "on"
 | 
			
		||||
              periods:
 | 
			
		||||
                  - start: "00:00"
 | 
			
		||||
                    end: "23:59"
 | 
			
		||||
    - name: overwrite protected on schedule
 | 
			
		||||
      request:
 | 
			
		||||
          method: PUT
 | 
			
		||||
          url: "http://localhost:5000/api/v1/schedules/on"
 | 
			
		||||
          json:
 | 
			
		||||
              name: "turned_on"
 | 
			
		||||
              periods:
 | 
			
		||||
                - start: '00:10'
 | 
			
		||||
                  end: '00:20'
 | 
			
		||||
      response:
 | 
			
		||||
          status_code: 200
 | 
			
		||||
          body:
 | 
			
		||||
              name: "{tavern.request_vars.json.name}"
 | 
			
		||||
              periods:
 | 
			
		||||
                  - start: "00:00"
 | 
			
		||||
                    end: "23:59"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue