-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added multiple domains as part of a registry config that can be lat…
…er used to lookup from actual registry - Added seperate github workflows for different test case - Fixed issues with config resolution - Added test cases for workflow
- Loading branch information
Showing
7 changed files
with
136 additions
and
34 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,36 @@ | ||
name: Run api tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
test-lint: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up environment variables | ||
run: | | ||
echo "OPENAI_AI_KEY=${{secrets.OPENAI_AI_KEY}}" >> .env | ||
echo "OPENAI_MODEL_ID=${{secrets.OPENAI_MODEL_ID}}" >> .env | ||
echo "OPEN_AI_EMBEDDINGS_MODEL=${{secrets.OPEN_AI_EMBEDDINGS_MODEL}}" >> .env | ||
echo "PORT=${{secrets.PORT}}" >> .env | ||
echo "SERVER_PORT=${{secrets.SERVER_PORT}}" >> .env | ||
echo "TWILIO_ACCOUNT_SID=${{secrets.TWILIO_ACCOUNT_SID}}" >> .env | ||
echo "TWILIO_AUTH_TOKEN=${{secrets.TWILIO_AUTH_TOKEN}}" >> .env | ||
echo "TWILIO_NUMBER=${{secrets.TWILIO_NUMBER}}" >> .env | ||
echo "TEST_RECEPIENT_NUMBER=${{secrets.TEST_RECEPIENT_NUMBER}}" >> .env | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run api tests | ||
run: npm run docker:test:apis |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Run unit tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
test-lint: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up environment variables | ||
run: | | ||
echo "OPENAI_AI_KEY=${{secrets.OPENAI_AI_KEY}}" >> .env | ||
echo "OPENAI_MODEL_ID=${{secrets.OPENAI_MODEL_ID}}" >> .env | ||
echo "OPEN_AI_EMBEDDINGS_MODEL=${{secrets.OPEN_AI_EMBEDDINGS_MODEL}}" >> .env | ||
echo "PORT=${{secrets.PORT}}" >> .env | ||
echo "SERVER_PORT=${{secrets.SERVER_PORT}}" >> .env | ||
echo "TWILIO_ACCOUNT_SID=${{secrets.TWILIO_ACCOUNT_SID}}" >> .env | ||
echo "TWILIO_AUTH_TOKEN=${{secrets.TWILIO_AUTH_TOKEN}}" >> .env | ||
echo "TWILIO_NUMBER=${{secrets.TWILIO_NUMBER}}" >> .env | ||
echo "TEST_RECEPIENT_NUMBER=${{secrets.TEST_RECEPIENT_NUMBER}}" >> .env | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run unit tests | ||
run: npm run docker:test:unit |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"url": "https://mit-ps-bap-client.becknprotocol.io", | ||
"domains": [ | ||
"uei:charging", | ||
"retail:1.1.0", | ||
"hospitality" | ||
], | ||
"description": "This network supports multiple domains e.g. uei:charging for ev chargers, retail:1.1.0 for retail stores including grocceries and pet supplies, hospitality for hotels", | ||
"bap_subscriber_id": "mit-ps-bap.becknprotocol.io", | ||
"bap_subscriber_url": "https://mit-ps-bap.becknprotocol.io", | ||
"version": "1.1.0" | ||
} | ||
] |
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