@@ -1631,6 +1631,8 @@ func TestStopVM_Isolated(t *testing.T) {
16311631 image , err := alpineImage (ctx , client , defaultSnapshotterName )
16321632 require .NoError (err , "failed to get alpine image" )
16331633
1634+ kernelArgs := integtest .DefaultRuntimeConfig .KernelArgs
1635+
16341636 tests := []struct {
16351637 name string
16361638 createVMRequest proto.CreateVMRequest
@@ -1656,8 +1658,9 @@ func TestStopVM_Isolated(t *testing.T) {
16561658 withStopVM : true ,
16571659
16581660 createVMRequest : proto.CreateVMRequest {
1661+ KernelArgs : kernelArgs + " failure=slow-reboot" ,
16591662 RootDrive : & proto.FirecrackerRootDrive {
1660- HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-slow-reboot .img" ,
1663+ HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-debug .img" ,
16611664 },
16621665 },
16631666 stopFunc : func (ctx context.Context , fcClient fccontrol.FirecrackerService , req proto.CreateVMRequest ) {
@@ -1692,8 +1695,9 @@ func TestStopVM_Isolated(t *testing.T) {
16921695 withStopVM : true ,
16931696
16941697 createVMRequest : proto.CreateVMRequest {
1698+ KernelArgs : kernelArgs + " failure=slow-reboot" ,
16951699 RootDrive : & proto.FirecrackerRootDrive {
1696- HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-slow-reboot .img" ,
1700+ HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-debug .img" ,
16971701 },
16981702 },
16991703 stopFunc : func (ctx context.Context , fcClient fccontrol.FirecrackerService , req proto.CreateVMRequest ) {
@@ -2137,6 +2141,8 @@ func TestCreateVM_Isolated(t *testing.T) {
21372141 fcClient , err := newFCControlClient (containerdSockPath )
21382142 require .NoError (t , err , "failed to create ttrpc client" )
21392143
2144+ kernelArgs := integtest .DefaultRuntimeConfig .KernelArgs
2145+
21402146 type subtest struct {
21412147 name string
21422148 request proto.CreateVMRequest
@@ -2155,11 +2161,12 @@ func TestCreateVM_Isolated(t *testing.T) {
21552161 stopVM : true ,
21562162 },
21572163 {
2158- name : "Error Case " ,
2164+ name : "No Agent " ,
21592165 request : proto.CreateVMRequest {
21602166 TimeoutSeconds : 5 ,
2167+ KernelArgs : kernelArgs + " failure=no-agent" ,
21612168 RootDrive : & proto.FirecrackerRootDrive {
2162- HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-no-agent .img" ,
2169+ HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-debug .img" ,
21632170 },
21642171 },
21652172 validate : func (t * testing.T , err error ) {
@@ -2175,8 +2182,9 @@ func TestCreateVM_Isolated(t *testing.T) {
21752182 {
21762183 name : "Slow Root FS" ,
21772184 request : proto.CreateVMRequest {
2185+ KernelArgs : kernelArgs + " failure=slow-boot" ,
21782186 RootDrive : & proto.FirecrackerRootDrive {
2179- HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-slow-boot .img" ,
2187+ HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-debug .img" ,
21802188 },
21812189 },
21822190 validate : func (t * testing.T , err error ) {
@@ -2189,8 +2197,9 @@ func TestCreateVM_Isolated(t *testing.T) {
21892197 {
21902198 name : "Slow Root FS and Longer Timeout" ,
21912199 request : proto.CreateVMRequest {
2200+ KernelArgs : kernelArgs + " failure=slow-boot" ,
21922201 RootDrive : & proto.FirecrackerRootDrive {
2193- HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-slow-boot .img" ,
2202+ HostPath : "/var/lib/firecracker-containerd/runtime/rootfs-debug .img" ,
21942203 },
21952204 TimeoutSeconds : 60 ,
21962205 },
0 commit comments