Fixing test setup. Late night...
This commit is contained in:
		
							parent
							
								
									c9f83f07dc
								
							
						
					
					
						commit
						3e3f3f8352
					
				| 
						 | 
					@ -286,13 +286,13 @@ func TestMigrateEBS(t *testing.T) {
 | 
				
			||||||
	defer ctrl.Finish()
 | 
						defer ctrl.Finish()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	resizer := mocks.NewMockVolumeResizer(ctrl)
 | 
						resizer := mocks.NewMockVolumeResizer(ctrl)
 | 
				
			||||||
	resizer.EXPECT().DescribeVolumes(gomock.Eq([]string{"ebs-volume-1", "ebs-vollume-2"})).Return(
 | 
						resizer.EXPECT().DescribeVolumes(gomock.Eq([]string{"ebs-volume-1", "ebs-volume-2"})).Return(
 | 
				
			||||||
		[]volumes.VolumeProperties{
 | 
							[]volumes.VolumeProperties{
 | 
				
			||||||
			{VolumeID: "ebs-volume-1", VolumeType: "gp2", Size: 100},
 | 
								{VolumeID: "ebs-volume-1", VolumeType: "gp2", Size: 100},
 | 
				
			||||||
			{VolumeID: "ebs-volume-2", VolumeType: "gp3", Size: 100}}, nil)
 | 
								{VolumeID: "ebs-volume-2", VolumeType: "gp3", Size: 100}}, nil)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// expect only gp2 volume to be modified
 | 
						// expect only gp2 volume to be modified
 | 
				
			||||||
	resizer.EXPECT().ModifyVolume(gomock.Eq("ebs-volume-0"), gomock.Eq("gp3"), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil)
 | 
						resizer.EXPECT().ModifyVolume(gomock.Eq("ebs-volume-1"), gomock.Eq("gp3"), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cluster.VolumeResizer = resizer
 | 
						cluster.VolumeResizer = resizer
 | 
				
			||||||
	cluster.executeEBSMigration()
 | 
						cluster.executeEBSMigration()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue