Skip to content

Commit 8cf6744

Browse files
committed
Fix test
Current code fails on `OpenStackLightspeed Controller When reconciling a resource [BeforeEach] should successfully reconcile the resource` with failure `OpenStackLightspeed.lightspeed.openstack.org "test-resource" is invalid: spec.llmEndpointType: Unsupported value: "": supported values: "azure_openai", "bam", "openai", "watsonx", "rhoai_vllm", "rhelai_vllm", "fake_provider"`
1 parent f51da6b commit 8cf6744

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

internal/controller/openstacklightspeed_controller_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ var _ = Describe("OpenStackLightspeed Controller", func() {
5151
Name: resourceName,
5252
Namespace: "default",
5353
},
54-
// TODO(user): Specify other spec details if needed.
54+
Spec: apiv1beta1.OpenStackLightspeedSpec{
55+
OpenStackLightspeedCore: apiv1beta1.OpenStackLightspeedCore{
56+
LLMEndpoint: "https://example.com/llm",
57+
LLMEndpointType: "openai",
58+
ModelName: "test-model",
59+
},
60+
},
5561
}
5662
Expect(k8sClient.Create(ctx, resource)).To(Succeed())
5763
}

0 commit comments

Comments
 (0)