Skip to content

Commit 6b30928

Browse files
committed
Sample fixes
1 parent 599866d commit 6b30928

File tree

2 files changed

+267
-3
lines changed

2 files changed

+267
-3
lines changed

Virtual_EDW/Templates/templateLandingTestReconciliation.Handlebars

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@
33
-- Reconciliation Test for {{targetDataObject.name}}.
44
--
55

6+
-- Test template
7+
DECLARE @TemplateId INT;
8+
EXEC [ut].[RegisterTestTemplate]
9+
@TemplateName = 'Generic-Reconciliation',
10+
@TemplateNotes = 'https://github.com/data-solution-automation-engine/testing-framework/blob/main/test-library/Test%20-%20Generic%20-%20Reconciliation.md',
11+
@TemplateId = @TemplateId OUTPUT;
12+
PRINT concat('The Test Template Id is: ', @TemplateId, '.');
13+
14+
-- Test registration
615
DECLARE @TestId INT;
716
EXEC [ut].[RegisterTest]
817
-- Mandatory
9-
@TemplateId = '1',
18+
@TemplateId = @TemplateId,
1019
@Name = 'RECON_STG_{{sourceDataObjects.0.name}}',
1120
-- sample with test procedure
1221
@Debug='Y',
@@ -63,6 +72,5 @@ EXEC [omd].[RegisterModule]
6372
PRINT 'The Module Id is: '+CONVERT(VARCHAR(10),@ModuleId)+'.';
6473

6574
-- Example - running the DIRECT Module
66-
-- EXEC omd.RunModule @ModuleCode = 'EXEC omd.RunModule @ModuleCode = 'RECON_STG_CUSTOMER_PERSONAL''
67-
75+
EXEC [900_Direct_Framework].[omd].[RunModule] @ModuleCode = 'RECON_STG_{{sourceDataObjects.0.name}}', @Debug='Y', @ModuleInstanceIdColumnName='AUDIT_TRAIL_ID'
6876
{{/each}}

0 commit comments

Comments
 (0)