@@ -131,38 +131,75 @@ func TestLoadConfigFromEnv(t *testing.T) {
131131 expectedImgBuildError : "DEPLOY_RAMDISK_URL requires DEPLOY_KERNEL_URL to be set also" ,
132132 },
133133 {
134- name : "Force Persistent Default" ,
134+ name : "ISO Force Persistent Default" ,
135135 env : EnvFixture {
136136 isoURL : "http://iso" ,
137137 forcePersistentBootDevice : "Default" ,
138138 },
139139 forcePersistent : "Default" ,
140140 },
141141 {
142- name : "Force Persistent Never" ,
142+ name : "ISO Force Persistent Never" ,
143143 env : EnvFixture {
144144 isoURL : "http://iso" ,
145145 forcePersistentBootDevice : "Never" ,
146146 },
147147 forcePersistent : "Never" ,
148148 },
149149 {
150- name : "Force Persistent Always" ,
150+ name : "ISO Force Persistent Always" ,
151151 env : EnvFixture {
152152 isoURL : "http://iso" ,
153153 forcePersistentBootDevice : "Always" ,
154154 },
155155 forcePersistent : "Always" ,
156156 },
157157 {
158- name : "Force Persistent Invalid" ,
158+ name : "ISO Force Persistent Invalid" ,
159159 env : EnvFixture {
160160 isoURL : "http://iso" ,
161161 forcePersistentBootDevice : "NotAValidOption" ,
162162 },
163163 expectedError : "invalid value for variable LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE" ,
164164 expectedImgBuildError : "invalid value for variable LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE" ,
165165 },
166+ {
167+ name : "kernel/ramdisk Force Persistent Default" ,
168+ env : EnvFixture {
169+ kernelURL : "http://kernel" ,
170+ ramdiskURL : "http://ramdisk" ,
171+ forcePersistentBootDevice : "Default" ,
172+ },
173+ forcePersistent : "Default" ,
174+ },
175+ {
176+ name : "kernel/ramdisk Force Persistent Never" ,
177+ env : EnvFixture {
178+ kernelURL : "http://kernel" ,
179+ ramdiskURL : "http://ramdisk" ,
180+ forcePersistentBootDevice : "Never" ,
181+ },
182+ forcePersistent : "Never" ,
183+ },
184+ {
185+ name : "kernel/ramdisk Force Persistent Always" ,
186+ env : EnvFixture {
187+ kernelURL : "http://kernel" ,
188+ ramdiskURL : "http://ramdisk" ,
189+ forcePersistentBootDevice : "Always" ,
190+ },
191+ forcePersistent : "Always" ,
192+ },
193+ {
194+ name : "kernel/ramdisk Force Persistent Invalid" ,
195+ env : EnvFixture {
196+ kernelURL : "http://kernel" ,
197+ ramdiskURL : "http://ramdisk" ,
198+ forcePersistentBootDevice : "NotAValidOption" ,
199+ },
200+ expectedError : "invalid value for variable LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE" ,
201+ expectedImgBuildError : "invalid value for variable LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE" ,
202+ },
166203 }
167204
168205 for _ , tt := range []string {"" , " (with img builder)" } {
0 commit comments