Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cyclops-cs): allow backend without database schema (#6748)

r33drichards7d5825f0a58d
diff --git a/libs/fleet/backend/startup_migration_contract_test.go b/libs/fleet/backend/startup_migration_contract_test.go
index 4ee174fd50..0d885cf544 100644
--- a/libs/fleet/backend/startup_migration_contract_test.go
+++ b/libs/fleet/backend/startup_migration_contract_test.go
@@ -755,12 +755,11 @@ func TestBackendReadinessStartsFailClosedAndRequiresSchema(t *testing.T) {
}
}
-func TestBackendDeploymentUsesSeparateReadinessProbe(t *testing.T) {
+func TestBackendDeploymentKeepsCoreAPIReadyWithoutDatabaseSchema(t *testing.T) {
source := readSource(t, filepath.Join("..", "..", "clusters", "kopf-k3s", "cyclops-cs", "backend-deployment.yaml"))
- if !strings.Contains(source, "readinessProbe:\n httpGet:\n path: /readyz") {
- t.Fatal("backend readiness probe must use /readyz")
- }
- if !strings.Contains(source, "livenessProbe:\n httpGet:\n path: /healthz") {
- t.Fatal("backend liveness probe must use /healthz")
+ for _, probe := range []string{"readinessProbe", "livenessProbe"} {
+ if !strings.Contains(source, probe+":\n httpGet:\n path: /healthz") {
+ t.Fatalf("backend %s must use /healthz", probe)
+ }
}
}