Skip to content

Commit

Permalink
removing invalid ignition data
Browse files Browse the repository at this point in the history
  • Loading branch information
so-sahu committed Mar 26, 2024
1 parent e3bf5df commit 997423e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions provider/server/machine_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ var _ = Describe("CreateMachine", Ordered, func() {
))
})

ignitionData := []byte("urjhikmnbdjfkknhhdddeee")
It("should create a machine with boot image and single empty disk", func(ctx SpecContext) {
By("creating a machine with boot image and single empty disk")
createResp, err := machineClient.CreateMachine(ctx, &iri.CreateMachineRequest{
Expand All @@ -207,8 +206,7 @@ var _ = Describe("CreateMachine", Ordered, func() {
Image: &iri.ImageSpec{
Image: squashfsOSImage,
},
Class: machineClassx3xlarge,
IgnitionData: ignitionData,
Class: machineClassx3xlarge,
Volumes: []*iri.Volume{
{
Name: "disk-1",
Expand Down Expand Up @@ -246,7 +244,7 @@ var _ = Describe("CreateMachine", Ordered, func() {
HaveField("Machine.Metadata.Id", Not(BeEmpty())),
HaveField("Machine.Spec.Image.Image", Equal(squashfsOSImage)),
HaveField("Machine.Spec.Class", machineClassx3xlarge),
HaveField("Machine.Spec.IgnitionData", Equal(ignitionData)),
HaveField("Machine.Spec.IgnitionData", BeNil()),
HaveField("Machine.Spec.Volumes", ContainElement(&iri.Volume{
Name: "disk-1",
Device: "oda",
Expand Down

0 comments on commit 997423e

Please sign in to comment.