Skip to content

Commit 71eb840

Browse files
authored
Merge pull request #210 from deploystackio/chore/tests
added test integration and e2e
2 parents 4eafaf2 + 26a3da8 commit 71eb840

74 files changed

Lines changed: 8405 additions & 898 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65.3 KB
Loading

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ jobs:
4949
- name: Install Dependencies
5050
run: npm ci
5151

52-
- name: Run Tests
52+
- name: Run All Tests
5353
run: npm run test

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ coverage/
5858

5959
# Ignore all files in test/output except README.md
6060
test/output/*
61-
!test/output/README.md
61+
!test/output/README.md
62+
test/e2e/output/*
63+
!test/e2e/output/README.md

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Docker-to-IaC
1+
<p align="center">
2+
<img src=".assets/img/banner-docker-to-iac.webp" alt="DeployStack Docker-to-IAC" width="100%" />
3+
</p>
4+
25

36
A Node.js module that translates Docker configurations (Docker run commands and Docker Compose files) into cloud provider Infrastructure as Code templates.
47

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default [{
4242

4343
rules: {
4444
"indent": ["error", 2, { "SwitchCase": 1 }],
45-
quotes: ["error", "single"],
45+
quotes: ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
4646
semi: ["error", "always"],
4747
"no-unused-vars": "off",
4848
"@typescript-eslint/no-unused-vars": ["error"],

output/test1/rnd/render.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
- name: default
3+
type: web
4+
runtime: image
5+
image:
6+
url: docker.io/library/nginx:latest
7+
startCommand: ""
8+
plan: starter
9+
region: oregon
10+
envVars:
11+
- key: ENV_VAR_1
12+
value: \${VALUE_FOR_ENV_VAR_1}
13+
- key: ENV_VAR_2
14+
value: \${VALUE_FOR_ENV_VAR_2}
15+
- key: ENV_VAR_3
16+
value: default-value-deploystack
17+
disk:
18+
name: default-var-lib-html
19+
mountPath: /var/lib/html
20+
sizeGB: 10

0 commit comments

Comments
 (0)