-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
63,101 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Get OpenAPI Specs | ||
description: Try to download the OpenAPI Specs for TMForum API. | ||
|
||
inputs: | ||
github-token: | ||
description: Github token to be used for creating PR-Comments | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
|
||
- id: setup-jq | ||
uses: dcarbone/[email protected] | ||
|
||
- id: get-specs | ||
name: Download Specifications | ||
shell: bash | ||
run: | | ||
cd .github/ | ||
./get-spec.sh | ||
- id: check-results | ||
name: Check results of the spec download | ||
shell: bash | ||
run: | | ||
failed=$(jq length ./.github/not-available.json) | ||
echo "failed="$failed >> "$GITHUB_OUTPUT" | ||
- id: generate-message | ||
if: steps.check-results.outputs.failed != 0 | ||
shell: bash | ||
run: | | ||
echo "Failed " ${{ steps.check-results.outputs.failed }} | ||
cd .github/ | ||
./generate-message.sh | ||
- name: Comment PR | ||
if: steps.check-results.outputs.failed != 0 | ||
uses: thollander/[email protected] | ||
with: | ||
filePath: ./.github/message.md | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
echo "The following api specs are unavailable, please check if there are updates required." > message.md | ||
echo "" >> message.md | ||
echo "| Module | Url |" >> message.md | ||
echo "|--------|-----|" >> message.md | ||
|
||
while read -r i; do | ||
module=$(echo $i | jq -c -r '.module'); | ||
url=$(echo $i | jq -c -r '.url'); | ||
echo "| $module | $url |" >> message.md | ||
done <<< $(jq -c -r '.[]' ./not-available.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
elements="" | ||
while read -r i; do | ||
module=$(echo $i | jq -c -r '.module'); | ||
url=$(echo $i | jq -c -r '.url'); | ||
mkdir -p ../api/tm-forum/$module | ||
echo "Module: $module Url: $url" | ||
result=$(curl -s -o /dev/null -w "%{http_code}" $url) | ||
if [ $result != 200 ]; then | ||
elements="${elements} ${i}" | ||
else | ||
echo "Download" $module | ||
wget -O api.json $url | ||
mv api.json ../api/tm-forum/$module | ||
fi | ||
echo $elements | ||
done <<< $(jq -c -r '.[]' ./spec.json) | ||
|
||
json='[]' | ||
for e in $elements | ||
do | ||
module=$(echo $e | jq -c -r '.module'); | ||
url=$(echo $e | jq -c -r '.url'); | ||
json=$(jq --arg modVar "$module" --arg urlVar "$url" '. |= . + [{"module":$modVar, "url":$urlVar}]' <<< $json) | ||
done | ||
|
||
echo $json > not-available.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[ | ||
{ | ||
"module": "account", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF666_Account_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "agreement", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF651_Agreement_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "customer-bill-management", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF678_Customer_Bill_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "customer-management", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF629_Customer_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "party-catalog", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF632_Party_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "party-role", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF669_Party_Role_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "product-catalog", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.1.0/swagger/TMF620_Product_Catalog_Management_API_v4.1.0_swagger.json" | ||
}, | ||
{ | ||
"module": "product-inventory", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF637_Product_Inventory_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "product-ordering-management", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF622_Product_Ordering_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "resource-catalog", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.1.0/swagger/TMF634_Resource_Catalog_Management_API_v4.1.0_swagger.json" | ||
}, | ||
{ | ||
"module": "resource-function-activation", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF664_Resource_Function_Activation_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "resource-inventory", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF639_Resource_Inventory_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "service-catalog", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF633_Service_Catalog_Management_API_v4.0.0_swagger.json" | ||
}, | ||
{ | ||
"module": "usage-management", | ||
"url": "https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF635_Usage_Management_API_v4.0.0_swagger.json" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Conformance Test | ||
|
||
on: | ||
push | ||
workflow_dispatch: | ||
|
||
jobs: | ||
conformance: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Parallel Tests | |
on: | ||
push | ||
|
||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ endpoints: | |
--- | ||
loggers: | ||
levels: | ||
ROOT: TRACE | ||
ROOT: WARN | ||
|
||
--- | ||
general: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
</encoder> | ||
</appender> | ||
|
||
<root level="TRACE"> | ||
<root level="WARN"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ endpoints: | |
--- | ||
loggers: | ||
levels: | ||
ROOT: TRACE | ||
ROOT: WARN | ||
|
||
--- | ||
general: | ||
|
Oops, something went wrong.