Skip to content

Commit

Permalink
test: added test
Browse files Browse the repository at this point in the history
  • Loading branch information
hosekpeter committed Nov 22, 2024
1 parent 2b4032c commit 7403517
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/pkg/project/manifest/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ func minimalJSON() string {
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down Expand Up @@ -353,6 +359,12 @@ func fullJSON() string {
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
6 changes: 6 additions & 0 deletions test/cli/project-init/ok/out/.keboola/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"name": "keboola",
"url": "https://github.com/keboola/keboola-as-code-templates.git",
"ref": "main"
},
{
"type": "git",
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main",
"author": {
"name": "Keboola",
"url": "https://keboola.com"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"path": "/v1/repositories/keboola-components",
"method": "GET",
"headers": {
"Content-Type": "application/json",
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%"
},
"body": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
200
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"name": "Keboola",
"url": "https://keboola.com"
}
},
{
"name": "keboola-components",
"url": "https://github.com/keboola/keboola-as-code-templates-components.git",
"ref": "main",
"author": {
"name": "Keboola",
"url": "https://keboola.com"
}
}
]
}

0 comments on commit 7403517

Please sign in to comment.