@@ -173,55 +173,6 @@ var _ = Describe("Inspection", Label("required", "inspection"), func() {
173173 }, e2eConfig .GetIntervals (specName , "wait-bmh-deleted" )... )
174174 })
175175
176- It ("should skip inspection when disabled" , func () {
177- By ("Creating a secret with BMH credentials" )
178-
179- bmcCredentialsData := map [string ]string {
180- "username" : bmc .User ,
181- "password" : bmc .Password ,
182- }
183- CreateSecret (ctx , clusterProxy .GetClient (), namespace .Name , "bmc-credentials-new" , bmcCredentialsData )
184-
185- By ("creating a BMH" )
186- bmh := metal3api.BareMetalHost {
187- ObjectMeta : metav1.ObjectMeta {
188- Name : specName + "-skip-inspect" ,
189- Namespace : namespace .Name ,
190- },
191- Spec : metal3api.BareMetalHostSpec {
192- BMC : metal3api.BMCDetails {
193- Address : bmc .Address ,
194- CredentialsName : "bmc-credentials-new" ,
195- DisableCertificateVerification : bmc .DisableCertificateVerification ,
196- },
197- BootMode : metal3api .Legacy ,
198- BootMACAddress : bmc .BootMacAddress ,
199- InspectionMode : metal3api .InspectionModeDisabled ,
200- },
201- }
202- err := clusterProxy .GetClient ().Create (ctx , & bmh )
203- Expect (err ).NotTo (HaveOccurred ())
204-
205- By ("waiting for the BMH to become available" )
206- WaitForBmhInProvisioningState (ctx , WaitForBmhInProvisioningStateInput {
207- Client : clusterProxy .GetClient (),
208- Bmh : bmh ,
209- State : metal3api .StateAvailable ,
210- UndesiredStates : []metal3api.ProvisioningState {metal3api .StateInspecting },
211- }, e2eConfig .GetIntervals (specName , "wait-available" )... )
212-
213- By ("Delete BMH" )
214- err = clusterProxy .GetClient ().Delete (ctx , & bmh )
215- Expect (err ).NotTo (HaveOccurred ())
216-
217- By ("Waiting for the BMH to be deleted" )
218- WaitForBmhDeleted (ctx , WaitForBmhDeletedInput {
219- Client : clusterProxy .GetClient (),
220- BmhName : bmh .Name ,
221- Namespace : bmh .Namespace ,
222- }, e2eConfig .GetIntervals (specName , "wait-bmh-deleted" )... )
223- })
224-
225176 AfterEach (func () {
226177 DumpResources (ctx , e2eConfig , clusterProxy , path .Join (artifactFolder , specName ))
227178 if ! skipCleanup {
0 commit comments