Skip to content

Commit

Permalink
integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
philkra committed Jan 4, 2024
1 parent fd67807 commit 1967fb3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions internal/integration-tests/records_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,16 @@ func generateInsertRecordRequest(databaseName, tableName string) xata.InsertReco
integerColumn: xata.ValueFromInteger(10),
floatColumn: xata.ValueFromDouble(10.3),
fileColumn: xata.ValueFromInputFile(xata.InputFile{
Name: testFileName,
Base64Content: xata.String(base64.StdEncoding.EncodeToString([]byte(fileContent))),
Name: testFileName,
Base64Content: xata.String(base64.StdEncoding.EncodeToString([]byte(fileContent))),
EnablePublicUrl: xata.Bool(true),
}),
fileArrayColumn: xata.ValueFromInputFileArray(xata.InputFileArray{
{
Name: xata.String(testFileName),
Base64Content: xata.String(base64.StdEncoding.EncodeToString([]byte(fileContent))),
Name: xata.String(testFileName),
Base64Content: xata.String(base64.StdEncoding.EncodeToString([]byte(fileContent))),
UploadUrlTimeout: xata.Int(100),
SignedUrlTimeout: xata.Int(600),
},
}),
vectorColumn: xata.ValueFromDoubleList([]float64{10.3, 20.2}),
Expand Down

0 comments on commit 1967fb3

Please sign in to comment.