-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhello_world.yml
46 lines (40 loc) · 1.32 KB
/
hello_world.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
version: '0.1'
description: HelloWorld - Simplest example of running dtspec
# The names of sources and targets is arbitrary, but it's up to the user to determine
# how they get mapped to/from their data transformation system.
sources:
- source: raw_students
targets:
- target: salutations
factories:
- factory: SomeStudents
description: Minimal example of what some student records may look like
data:
- source: raw_students
# Tables written as a markdown table
table: |
| id | name |
| - | - |
| 1 | Buffy |
| 2 | Willow |
scenarios:
- scenario: Hello World
description: The simplest scenario
# All cases in this scenario will use this factory (which may be modified on case-by-case basis)
factory:
parents:
- SomeStudents
cases:
- case: HelloGang
description: Make sure we say hello to everyone
expected:
data:
- target: salutations
# The actual output may also contain the "name" field, but the expectation
# will ignore comparing any fields not listed in the expected table.
table: |
| id | salutation |
| - | - |
| 1 | Hello Buffy |
| 2 | Hello Willow |