|  | @@ -1,15 +1,15 @@
 | 
	
		
			
				|  |  |  ---
 | 
	
		
			
				|  |  | -"Index data and search on the old cluster":
 | 
	
		
			
				|  |  | - - do:
 | 
	
		
			
				|  |  | -     indices.create:
 | 
	
		
			
				|  |  | +"Index data, search, and create things in the cluster state that we'll validate are there after the ugprade":
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      indices.create:
 | 
	
		
			
				|  |  |          index: test_index
 | 
	
		
			
				|  |  |          body:
 | 
	
		
			
				|  |  |            settings:
 | 
	
		
			
				|  |  |              index:
 | 
	
		
			
				|  |  |                number_of_replicas: 0
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | - - do:
 | 
	
		
			
				|  |  | -     bulk:
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      bulk:
 | 
	
		
			
				|  |  |          refresh: true
 | 
	
		
			
				|  |  |          body:
 | 
	
		
			
				|  |  |            - '{"index": {"_index": "test_index", "_type": "test_type"}}'
 | 
	
	
		
			
				|  | @@ -23,18 +23,16 @@
 | 
	
		
			
				|  |  |            - '{"index": {"_index": "test_index", "_type": "test_type"}}'
 | 
	
		
			
				|  |  |            - '{"f1": "v5_old", "f2": 4}'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | - - do:
 | 
	
		
			
				|  |  | -     indices.flush:
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      indices.flush:
 | 
	
		
			
				|  |  |          index: test_index
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | - - do:
 | 
	
		
			
				|  |  | -     search:
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      search:
 | 
	
		
			
				|  |  |          index: test_index
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | - - match: { hits.total: 5 }
 | 
	
		
			
				|  |  | +  - match: { hits.total: 5 }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | ----
 | 
	
		
			
				|  |  | -"Add stuff to cluster state so that we can verify that it remains to exist during and after the rolling upgrade":
 | 
	
		
			
				|  |  |    - do:
 | 
	
		
			
				|  |  |        snapshot.create_repository:
 | 
	
		
			
				|  |  |          repository: my_repo
 | 
	
	
		
			
				|  | @@ -54,3 +52,20 @@
 | 
	
		
			
				|  |  |              ]
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |    - match: { "acknowledged": true }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      put_template:
 | 
	
		
			
				|  |  | +        id: test_search_template
 | 
	
		
			
				|  |  | +        body:
 | 
	
		
			
				|  |  | +          query:
 | 
	
		
			
				|  |  | +            match:
 | 
	
		
			
				|  |  | +              f1: "{{f1}}"
 | 
	
		
			
				|  |  | +  - match: { acknowledged: true }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  - do:
 | 
	
		
			
				|  |  | +      search_template:
 | 
	
		
			
				|  |  | +        body:
 | 
	
		
			
				|  |  | +          id: test_search_template
 | 
	
		
			
				|  |  | +          params:
 | 
	
		
			
				|  |  | +            f1: v5_old
 | 
	
		
			
				|  |  | +  - match: { hits.total: 1 }
 |