| 47 | } |
| 48 | |
| 49 | func validConfigContent() string { |
| 50 | return ` |
| 51 | # Templated zero-project.yml file |
| 52 | name: abc |
| 53 | |
| 54 | shouldPushRepositories: true |
| 55 | |
| 56 | modules: |
| 57 | aws-eks-stack: |
| 58 | parameters: |
| 59 | a: b |
| 60 | files: |
| 61 | dir: zero-aws-eks-stack |
| 62 | repo: github.com/something/repo1 |
| 63 | source: github.com/commitdev/zero-aws-eks-stack |
| 64 | backend-go: |
| 65 | parameters: |
| 66 | a: b |
| 67 | files: |
| 68 | dir: zero-backend-go |
| 69 | repo: github.com/something/repo2 |
| 70 | source: github.com/commitdev/zero-backend-go |
| 71 | frontend-react: |
| 72 | parameters: |
| 73 | a: b |
| 74 | files: |
| 75 | dir: zero-frontend-react |
| 76 | repo: github.com/something/repo3 |
| 77 | source: github.com/commitdev/zero-frontend-react |
| 78 | ` |
| 79 | } |
| 80 | |
| 81 | func TestProjectConfigModuleGraph(t *testing.T) { |
| 82 | configPath := filepath.Join("../../../tests/test_data/projectconfig/", constants.ZeroProjectYml) |