forked from data-integrations/salesforce
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
86 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/e2e-test/resources/BigQuery/BigQueryCreateTableFailureQuery.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create table `DATASET.TABLE_NAME` (Id STRING,Name STRING) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
create table `DATASET.TABLE_NAME` (Name STRING, Col_Timestamp__c TIMESTAMP, Col_Date__c DATE, Col_Currency__c FLOAT64, | ||
Col_Email__c STRING, Col_Number__c FLOAT64, Col_GeoLocation__Latitude__s FLOAT64, | ||
Col_GeoLocation__Longitude__s FLOAT64, Col__c STRING, Col_Url__c STRING, Col_Time__c TIME, Col_Text__c STRING) | ||
create table `DATASET.TABLE_NAME` (Id__c FLOAT64, Name STRING, Col_Timestamp__c TIMESTAMP, Col_Date__c DATE, Col_Currency__c FLOAT64, | ||
Col_Email__c STRING, Col_Number__c FLOAT64, Col__c STRING, Col_Url__c STRING, Col_Time__c TIME, Col_Text__c STRING) | ||
|
||
|
8 changes: 8 additions & 0 deletions
8
src/e2e-test/resources/BigQuery/BigQueryInsertDataFailureQuery.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
insert into `DATASET.TABLE_NAME` (Id ,Name ) values | ||
('abc','Test_PB' ); | ||
|
||
insert into `DATASET.TABLE_NAME` (Id ,Name ) values | ||
('345','Test_PB1' ); | ||
|
||
insert into `DATASET.TABLE_NAME` (Id ,Name ) values | ||
('768','Test_PB23' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
insert into `DATASET.TABLE_NAME` (Name, Col_Timestamp__c, Col_Date__c, Col_Currency__c, Col_Email__c, Col_Number__c, | ||
Col_GeoLocation__Latitude__s, Col_GeoLocation__Longitude__s, Col__c, Col_Url__c, Col_Time__c, Col_Text__c) values | ||
('adam','2019-03-10 04:50:01 UTC','2021-01-28',61.823765812,'[email protected]',898365444,37.794116,-122.3432, | ||
insert into `DATASET.TABLE_NAME` (Id__c, Name, Col_Timestamp__c, Col_Date__c, Col_Currency__c, Col_Email__c, Col_Number__c, | ||
Col__c, Col_Url__c, Col_Time__c, Col_Text__c) values | ||
(786777,'adam','2019-03-10 04:50:01 UTC','2021-01-28',61.823765812,'[email protected]',-122.3432, | ||
'984746334','abc/123','20:26:34','find'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ invalid.admin.consumer.secret=lmnop891011 | |
#SOQL Query | ||
simple.query=SELECT Id, Name, Phone FROM Account | ||
test.query=SELECT Id,Name,Col_Timestamp__c,Col_Date__c,Col_Currency__c,Col_Email__c,Col_Number__c,\ | ||
Col_GeoLocation__Latitude__s,Col_GeoLocation__Longitude__s,Col__c,Col_Url__c,Col_Time__c,Col_Text__c FROM Automation_custom__c | ||
Col__c,Col_Url__c,Col_Time__c,Col_Text__c FROM Automation_custom__c | ||
where.query=SELECT name FROM Opportunity WHERE StageName='Needs Analysis' | ||
groupby.query=SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId | ||
childtoparent.query=SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Chemicals' | ||
|
@@ -29,8 +29,9 @@ opportunity.query=SELECT Id,Name,StageName,AccountId,LastViewedDate,LastReferenc | |
AccountId='0015j00000kN78QAAS' | ||
|
||
sobject.Automation_custom_c=Automation_custom__c | ||
|
||
#SObjects | ||
sobject.account=Account | ||
sobject.account=Automation_custom__c | ||
Salesforce.sobjectName=Opportunity | ||
sobject.lead=Lead | ||
sobject.invalid=abc | ||
|
@@ -50,7 +51,7 @@ hundred.million.records=100000000 | |
topic.name=StreamingSalesforce | ||
#Macros | ||
sfmultisource.listofsobjects=Lead,Opportunity | ||
sfmultisource.listofsobject=Automation_custom__c,Automation_custom2__c | ||
sfmultisource.listofsobject=Automation_custom__c | ||
sfmultisource.sobject.lead=Lead | ||
sfmultisource.sobject.customobject=Automation_custom__c | ||
sfmultisource.listofsobjectsforblacklist=Account,Contact | ||
|
@@ -107,7 +108,7 @@ account.schema= [{"key":"Id","value":"string"},{"key":"IsDeleted","value":"boole | |
{"key":"ParentId","value":"string"},{"key":"BillingStreet","value":"string"},{"key":"BillingCity","value":"string"},\ | ||
{"key":"BillingState","value":"string"},{"key":"BillingPostalCode","value":"string"},\ | ||
{"key":"BillingCountry","value":"string"},\ | ||
{"key":"BillingLatitude","value":"double"},{"key":"BillingLongitude","value":"double"},\ | ||
{"key":"BillingLatitude","value":"double"},{"key":"Billingtest_automation_sfgitude","value":"double"},\ | ||
{"key":"BillingGeocodeAccuracy","value":"string"},{"key":"ShippingStreet","value":"string"},\ | ||
{"key":"ShippingCity","value":"string"},{"key":"ShippingState","value":"string"},\ | ||
{"key":"ShippingPostalCode","value":"string"},{"key":"ShippingCountry","value":"string"},\ | ||
|
@@ -126,15 +127,21 @@ account.schema= [{"key":"Id","value":"string"},{"key":"IsDeleted","value":"boole | |
|
||
CreateBQTableQueryFile=BigQuery/BigQueryCreateTableQuery.txt | ||
InsertBQDataQueryFile=BigQuery/BigQueryInsertDataQuery.txt | ||
BigQueryCreateTableFailureQuery=BigQuery/BigQueryCreateTableFailureQuery.txt | ||
BigQueryInsertDataFailureQuery=BigQuery/BigQueryInsertDataFailureQuery.txt | ||
|
||
bigQueryDatatypesColumnsList=(Id,Name,Col_Timestamp__c,Col_Date__c,Col_Currency__c,Col_Email__c,Col_Number__c,\ | ||
Col_GeoLocation__Latitude__s,Col_GeoLocation__Longitude__s,Col__c,Col_Url__c,Col_Time__c,Col_Text__c) | ||
,Col__c,Col_Url__c,Col_Time__c,Col_Text__c) | ||
|
||
testData={"Name":"hello","Col_Timestamp__c":"2023-06-14T07:04:56.000+0000","Col_Date__c":"2023-06-14",\ | ||
"Col_Currency__c":123.456,"Col_Email__c":"[email protected]","Col_Number__c":1008.0,\ | ||
"Col_GeoLocation__Latitude__s":37.794016,"Col_GeoLocation__Longitude__s":-122.395016,"Col__c":"984746334",\ | ||
"Col_Url__c":"abc/123","Col_Time__c":"05:00:00.000Z","Col_Text__c":"shsss"} | ||
testData={"Id__c" : "123","Name":"hello","Col_Timestamp__c":"2023-06-14T07:04:56.000+0000","Col_Date__c":"2023-06-14","Col_Currency__c":567.789,"Col_Email__c":"[email protected]","Col_Number__c":1008.0,\ | ||
"Col__c":"984746334", "Col_Url__c":"abc/123","Col_Time__c":"05:00:00.000Z","Col_Text__c":"shsss"} | ||
|
||
testObjectData={"Name":"dummy","Col_Timestamp__c":"2023-06-14T07:04:56.000+0000","Col_Date__c":"2023-06-14",\ | ||
"Col_Currency__c":567.789,"Col_Email__c":"[email protected]","Col_Number__c":1008.0,\ | ||
"Col_Url__c":"def/123","Col_Time__c":"05:00:00.000Z","Col_Text__c":"finder","Col_Phone__c":"123567"} | ||
#testData={"Name":"hello","Col_Timestamp__c":"2023-06-14T07:04:56.000+0000","Col_Date__c":"2023-06-14",\ | ||
"Col_Currency__c":123.456,"Col_Email__c":"[email protected]","Col_Number__c":1008.0,\ | ||
"Col__c":"984746334","Col_Url__c":"abc/123","Col_Time__c":"05:00:00.000Z","Col_Text__c":"shsss"} | ||
|
||
url = http://10.132.0.45:3128 | ||
UpsertColumnvalue=Id__c |