mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-28 16:58:10 -05:00
Compare commits
3 Commits
remove-par
...
pgtriggers
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b2e29b2c3 | ||
|
|
7edb194dd4 | ||
|
|
cc35149e1a |
@@ -495,7 +495,7 @@ func runAlloyDBListUsersTest(t *testing.T, vars map[string]string) {
|
|||||||
name: "list users success",
|
name: "list users success",
|
||||||
requestBody: bytes.NewBufferString(fmt.Sprintf(`{"project": "%s", "location": "%s", "cluster": "%s"}`, vars["project"], vars["location"], vars["cluster"])),
|
requestBody: bytes.NewBufferString(fmt.Sprintf(`{"project": "%s", "location": "%s", "cluster": "%s"}`, vars["project"], vars["location"], vars["cluster"])),
|
||||||
wantContains: fmt.Sprintf("projects/%s/locations/%s/clusters/%s/users/%s", vars["project"], vars["location"], vars["cluster"], AlloyDBUser),
|
wantContains: fmt.Sprintf("projects/%s/locations/%s/clusters/%s/users/%s", vars["project"], vars["location"], vars["cluster"], AlloyDBUser),
|
||||||
wantCount: 3, // NOTE: If users are added or removed in the test project, update the number of users here must be updated for this test to pass
|
wantCount: 2, // NOTE: If users are added or removed in the test project, update the number of users here must be updated for this test to pass
|
||||||
wantStatusCode: http.StatusOK,
|
wantStatusCode: http.StatusOK,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1563,12 +1563,6 @@ func RunPostgresListTriggersTest(t *testing.T, ctx context.Context, pool *pgxpoo
|
|||||||
wantStatusCode int
|
wantStatusCode int
|
||||||
want []map[string]any
|
want []map[string]any
|
||||||
}{
|
}{
|
||||||
{
|
|
||||||
name: "list all triggers (expecting the one we created)",
|
|
||||||
requestBody: bytes.NewBuffer([]byte(`{}`)),
|
|
||||||
wantStatusCode: http.StatusOK,
|
|
||||||
want: []map[string]any{wantTrigger},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "filter by trigger_name",
|
name: "filter by trigger_name",
|
||||||
requestBody: bytes.NewBuffer([]byte(fmt.Sprintf(`{"trigger_name": "%s"}`, triggerName))),
|
requestBody: bytes.NewBuffer([]byte(fmt.Sprintf(`{"trigger_name": "%s"}`, triggerName))),
|
||||||
|
|||||||
Reference in New Issue
Block a user