Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions camel-jbang-example-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -32,6 +33,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -54,6 +56,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -71,6 +74,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"route.camel.yaml"
Expand All @@ -89,6 +93,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"cron-log.camel.yaml"
Expand All @@ -107,6 +112,7 @@
],
"bundled": false,
"requiresDocker": true,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -128,6 +134,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -150,6 +157,7 @@
],
"bundled": false,
"requiresDocker": true,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -170,6 +178,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -189,6 +198,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -208,6 +218,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -226,6 +237,7 @@
],
"bundled": false,
"requiresDocker": true,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -248,6 +260,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -267,6 +280,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -287,6 +301,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -307,6 +322,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"rest-api.camel.yaml"
Expand All @@ -324,6 +340,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"Greeter.java",
"README.adoc",
Expand All @@ -344,6 +361,7 @@
],
"bundled": false,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
"README.adoc",
"analyzer/application-dev.properties",
Expand Down Expand Up @@ -390,6 +408,7 @@
],
"bundled": false,
"requiresDocker": true,
"hasCitrusTests": false,
"files": [
"README.adoc",
"application.properties",
Expand All @@ -409,6 +428,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"timer-log.camel.yaml"
Expand All @@ -426,6 +446,7 @@
],
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": false,
"files": [
"README.adoc",
"consumer.camel.yaml",
Expand Down
15 changes: 15 additions & 0 deletions generate-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ for dirpath, dirnames, filenames in sorted(os.walk(repo_root)):

requires_docker = "compose.yaml" in filenames or "docker-compose.yaml" in filenames

# detect Citrus integration tests (also in sub-directories without own metadata)
has_citrus_tests = False
for sub_dirpath2, sub_dirnames2, sub_filenames2 in os.walk(dirpath):
sub_dirnames2[:] = [
d for d in sub_dirnames2
if not d.startswith(".") and d not in {"target", "node_modules"}
and not os.path.exists(os.path.join(sub_dirpath2, d, "metadata.json"))
]
if os.path.basename(sub_dirpath2) == "test":
if any(f.endswith(".citrus.it.yaml") or f.endswith(".citrus.it.xml")
for f in sub_filenames2):
has_citrus_tests = True
break

entry = {
"name": name,
"title": meta["title"],
Expand All @@ -94,6 +108,7 @@ for dirpath, dirnames, filenames in sorted(os.walk(repo_root)):
"tags": meta.get("tags", []),
"bundled": meta.get("bundled", False),
"requiresDocker": requires_docker,
"hasCitrusTests": has_citrus_tests,
"files": files,
}
catalog.append(entry)
Expand Down
Loading