MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestUpdateUserMaxVCPUsNullClearsToZero

Function TestUpdateUserMaxVCPUsNullClearsToZero

controlplane/admin/api_test.go:402–422  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

400 WarehouseDatabase: configstore.ManagedWarehouseDatabase{
401 Endpoint: fmt.Sprintf("%s.cluster.example", name),
402 Port: 5432,
403 },
404 MetadataStore: configstore.ManagedWarehouseMetadataStore{
405 Kind: "dedicated_rds",
406 Endpoint: fmt.Sprintf("%s-metadata.cluster.example", name),
407 Port: 5432,
408 DatabaseName: name + "_metadata",
409 Username: "metadata_user",
410 },
411 S3: configstore.ManagedWarehouseS3{
412 Provider: "aws",
413 Region: "us-east-1",
414 Bucket: name + "-bucket",
415 PathPrefix: name + "/ducklake/",
416 },
417 WorkerIdentity: configstore.ManagedWarehouseWorkerIdentity{
418 Namespace: "duckgres",
419 IAMRoleARN: "arn:aws:iam::123456789012:role/" + name + "-worker",
420 },
421 WarehouseDatabaseCredentials: configstore.SecretRef{
422 Namespace: "duckgres",
423 Name: name + "-warehouse-db",
424 Key: "dsn",
425 },

Callers

nothing calls this directly

Calls 3

newFakeAPIStoreFunction · 0.85
newTestAPIRouterFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected