-
Notifications
You must be signed in to change notification settings - Fork 29
SF e2e test fixes #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SF e2e test fixes #276
Conversation
005d6b1 to
4d73f95
Compare
ritwiksahani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add details in the description around what E2E test is failing and details around what changes we are doing to fix it.
20ce8d9 to
e29559e
Compare
src/e2e-test/features/salesforcemultiobjectsbatchsource/RunTime.feature
Outdated
Show resolved
Hide resolved
6b25d30 to
05534f0
Compare
ritwiksahani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure that e2e tests are now successful after this change.
| logger.info("Queried Object id from response: " + uniqueRecordId); | ||
| String id = recordObject.get("Id").getAsString(); | ||
| idList.add(id); | ||
| logger.info("Queried Object id from response: " + idList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be logging idList every time. Pelase change this log to id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| public void updateExistingSalesforceRecords() { | ||
| String uniqueRecordId = SalesforceClient.queryObjectId(customObject); | ||
| SalesforceClient.updateObject(uniqueRecordId, customObject); | ||
| List<String> uniqueRecordId = SalesforceClient.queryObjectId(customObject); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename the variable to recordIdList/recordIds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
d1e84e8 to
532feb7
Compare
This PR contains the fixes for salesforce e2e tests by updating the schema for sObjects and fixing the data validation logic to validate all the records from salesforce and BQ. Previously it was fetching only one record from salesforce.