Skip to content

GCS all types e2e tests#1301

Merged
yjhawar merged 1 commit intodata-integrations:developfrom
cloudsufi:gcs_allTypes
Sep 20, 2023
Merged

GCS all types e2e tests#1301
yjhawar merged 1 commit intodata-integrations:developfrom
cloudsufi:gcs_allTypes

Conversation

@bharatgulati
Copy link
Copy Markdown
Contributor

No description provided.

@bharatgulati bharatgulati added the build Trigger unit test build label Sep 11, 2023
public static boolean validateGCSSourceToGCSSink(String bucketName) throws IOException {
Map<String, JsonObject> expectedAvroData = convertAvroToJsonWithKeys();
Map<String, JsonObject> actualGcsData = listBucketObjects(bucketName);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these lines in between aren't required

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed extra line.

if (!bucketObjectNames.isEmpty()) {
String objectName = bucketObjectNames.get(0);
if (objectName.contains("part-r")) {
Map<String, JsonObject> dataMap2 = fetchObjectData(projectId, bucketName, objectName);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: suffix 2 isn't required here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to 'dataMap'


try (FileReader<GenericRecord> dataFileReader = DataFileReader.openReader(avroFile, datumReader)) {
int keyCounter = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: line not required

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Copy link
Copy Markdown
Contributor

@yjhawar yjhawar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor comments

@yjhawar
Copy link
Copy Markdown
Contributor

yjhawar commented Sep 15, 2023

Builds are failing. can you fix them

@bharatgulati bharatgulati added build Trigger unit test build and removed build Trigger unit test build labels Sep 17, 2023
@bharatgulati
Copy link
Copy Markdown
Contributor Author

bharatgulati commented Sep 18, 2023

Builds are failing. can you fix them

Due to an intermittent problem (Chrome version issue), builds are failing. For the same, an issue was previously raised. Link. An error message was changed but the cause is same.

@yjhawar yjhawar merged commit d5c7025 into data-integrations:develop Sep 20, 2023
@psainics psainics deleted the gcs_allTypes branch February 13, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Trigger unit test build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants