Skip to content

Commit

Permalink
Update topic name
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Hamrin committed Aug 14, 2020
1 parent ce64025 commit a99e356
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions force-app/pdl-handler/classes/KafkaPDLHandlerTest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ public with sharing class KafkaPDLHandlerTest {

List<KafkaMessage__c> kafkaMessages = new List<KafkaMessage__c>();
kafkaMessages.add(new KafkaMessage__c(
CRM_Topic__c = 'privat-sf-person-pilot-v1',
CRM_Topic__c = 'privat-sf-person-v1',
CRM_Key__c = person1.aktoer_id,
CRM_Value__c = EncodingUtil.base64Encode(Blob.valueOf(JSON.serialize(person1)))
));
kafkaMessages.add(new KafkaMessage__c(
CRM_Topic__c = 'privat-sf-person-pilot-v1',
CRM_Topic__c = 'privat-sf-person-v1',
CRM_Key__c = person2.aktoer_id,
CRM_Value__c = EncodingUtil.base64Encode(Blob.valueOf(JSON.serialize(person2)))
));
kafkaMessages.add(new KafkaMessage__c(
CRM_Topic__c = 'privat-sf-person-pilot-v1',
CRM_Topic__c = 'privat-sf-person-v1',
CRM_Key__c = person3.aktoer_id,
CRM_Value__c = EncodingUtil.base64Encode(Blob.valueOf(JSON.serialize(person3)))
));
Expand Down Expand Up @@ -89,7 +89,7 @@ public with sharing class KafkaPDLHandlerTest {

// Insert a new Kafka Message with updated person 1 values
KafkaMessage__c kafkaMessageUpdate = new KafkaMessage__c(
CRM_Topic__c = 'privat-sf-person-pilot-v1',
CRM_Topic__c = 'privat-sf-person-v1',
CRM_Key__c = person1.aktoer_id,
CRM_Value__c = EncodingUtil.base64Encode(Blob.valueOf(JSON.serialize(person1)))
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
</values>
<values>
<field>Topic__c</field>
<value xsi:type="xsd:string">privat-sf-person-pilot-v1</value>
<value xsi:type="xsd:string">privat-sf-person-v1</value>
</values>
</CustomMetadata>

0 comments on commit a99e356

Please sign in to comment.