s3tables test: update integration tests for new client API
This commit is contained in:
@@ -78,7 +78,7 @@ func testTableBucketLifecycle(t *testing.T, client *S3TablesClient) {
|
|||||||
t.Logf("✓ Got table bucket: %s", getResp.Name)
|
t.Logf("✓ Got table bucket: %s", getResp.Name)
|
||||||
|
|
||||||
// List table buckets
|
// List table buckets
|
||||||
listResp, err := client.ListTableBuckets("")
|
listResp, err := client.ListTableBuckets("", "", 0)
|
||||||
require.NoError(t, err, "Failed to list table buckets")
|
require.NoError(t, err, "Failed to list table buckets")
|
||||||
found := false
|
found := false
|
||||||
for _, b := range listResp.TableBuckets {
|
for _, b := range listResp.TableBuckets {
|
||||||
@@ -124,7 +124,7 @@ func testNamespaceLifecycle(t *testing.T, client *S3TablesClient) {
|
|||||||
t.Logf("✓ Got namespace: %v", getNsResp.Namespace)
|
t.Logf("✓ Got namespace: %v", getNsResp.Namespace)
|
||||||
|
|
||||||
// List namespaces
|
// List namespaces
|
||||||
listNsResp, err := client.ListNamespaces(bucketARN, "")
|
listNsResp, err := client.ListNamespaces(bucketARN, "", "", 0)
|
||||||
require.NoError(t, err, "Failed to list namespaces")
|
require.NoError(t, err, "Failed to list namespaces")
|
||||||
found := false
|
found := false
|
||||||
for _, ns := range listNsResp.Namespaces {
|
for _, ns := range listNsResp.Namespaces {
|
||||||
@@ -190,7 +190,7 @@ func testTableLifecycle(t *testing.T, client *S3TablesClient) {
|
|||||||
t.Logf("✓ Got table: %s (format: %s)", getTableResp.Name, getTableResp.Format)
|
t.Logf("✓ Got table: %s (format: %s)", getTableResp.Name, getTableResp.Format)
|
||||||
|
|
||||||
// List tables
|
// List tables
|
||||||
listTablesResp, err := client.ListTables(bucketARN, []string{namespaceName}, "")
|
listTablesResp, err := client.ListTables(bucketARN, []string{namespaceName}, "", "", 0)
|
||||||
require.NoError(t, err, "Failed to list tables")
|
require.NoError(t, err, "Failed to list tables")
|
||||||
found := false
|
found := false
|
||||||
for _, tbl := range listTablesResp.Tables {
|
for _, tbl := range listTablesResp.Tables {
|
||||||
|
|||||||
Reference in New Issue
Block a user