Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
hosekpeter committed Nov 21, 2024
1 parent a0c3d88 commit da44f3d
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
],
"components": [
"keboola.wr-%s",
"foo.bar",
"keboola.data-apps"
],
"versions": [
Expand All @@ -60,31 +59,6 @@
}
]
},
{
"id": "my-template-id-6",
"name": "My Template-snowflake-6",
"deprecated": false,
"author": {
"name": "Example Author",
"url": "https://example.com"
},
"description": "Full workflow to ...",
"defaultVersion": "1.2.3",
"categories": [
"Other"
],
"components": [
"keboola.wr-%s",
"foo.bar"
],
"versions": [
{
"version": "1.2.3",
"stable": false,
"description": ""
}
]
},
{
"id": "my-template-id-7",
"name": "My Template-snowflake-7",
Expand All @@ -100,8 +74,8 @@
],
"components": [
"keboola.wr-%s",
"foo.bar",
"keboola.data-apps"
"keboola.data-apps",
"keboola.wr-google-sheets"
],
"versions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
],
"components": [
"keboola.wr-%s",
"foo.bar",
"keboola.data-apps"
],
"versions": [
Expand All @@ -50,8 +49,8 @@
],
"components": [
"keboola.wr-%s",
"foo.bar",
"keboola.data-apps"
"keboola.data-apps",
"keboola.wr-google-sheets"
],
"versions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"templates": [
{
"id": "my-template-id-3",
"name": "My Template-snowflake-3",
"id": "my-template-id-7",
"name": "My Template-snowflake-7",
"deprecated": false,
"author": {
"name": "Example Author",
Expand All @@ -24,32 +24,8 @@
],
"components": [
"keboola.wr-%s",
"foo.bar"
],
"versions": [
{
"version": "1.2.3",
"stable": false,
"description": ""
}
]
},
{
"id": "my-template-id-6",
"name": "My Template-snowflake-6",
"deprecated": false,
"author": {
"name": "Example Author",
"url": "https://example.com"
},
"description": "Full workflow to ...",
"defaultVersion": "1.2.3",
"categories": [
"Other"
],
"components": [
"keboola.wr-%s",
"foo.bar"
"keboola.data-apps",
"keboola.wr-google-sheets"
],
"versions": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"path": "/v1/repositories/keboola/templates?filter=keboola.components",
"path": "/v1/repositories/keboola/templates?filter=keboola.wr-google-sheets",
"method": "GET",
"headers": {
"Content-Type": "application/json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"statusCode": 400,
"error": "templates.invalidEnumValue",
"message": "Value of filter must be one of \"keboola.components\", \"keboola.data-apps\" but got value \"312312\"."
"repository": {
"name": "keboola",
"url": "%s/test/templates/api/repositories/template-list-filter/repository",
"ref": "",
"author": {
"name": "Example Author",
"url": "https://example.com"
}
},
"templates": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
"requirements": {
"backends":[
"bigquery"
],
"components": [
"keboola.data-apps"
]
},
"versions": [
Expand All @@ -127,6 +130,9 @@
"requirements": {
"backends":[
"snowflake"
],
"components": [
"keboola.data-apps"
]
},
"versions": [
Expand All @@ -137,7 +143,6 @@
"path": "v1",
"components": [
"<keboola.wr-snowflake>",
"foo.bar",
"keboola.data-apps"
]
}
Expand All @@ -151,6 +156,9 @@
"requirements": {
"backends":[
"snowflake"
],
"components": [
"<keboola.wr-snowflake>"
]
},
"versions": [
Expand All @@ -174,6 +182,10 @@
"requirements": {
"backends":[
"snowflake"
],
"components": [
"keboola.data-apps",
"keboola.wr-google-sheets"
]
},
"versions": [
Expand All @@ -184,8 +196,8 @@
"path": "v1",
"components": [
"<keboola.wr-snowflake>",
"foo.bar",
"keboola.data-apps"
"keboola.data-apps",
"keboola.wr-google-sheets"
]
}
]
Expand Down

0 comments on commit da44f3d

Please sign in to comment.