-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90 tidy up existing input processing functionality (#93)
* Staging * Staging * Some tidying on the way to modular parsers. - Update dependencies - Change email - Adding specific tests for each schema version
- Loading branch information
1 parent
569c77b
commit 1e422f5
Showing
16 changed files
with
316 additions
and
109 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
name: DataDog Service Catalog | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
automated-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get current date | ||
id: date | ||
run: echo "date=$(date +'%Y-%m-%d -- %s')" >> $GITHUB_OUTPUT | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run CI Tests | ||
env: | ||
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} | ||
DATADOG_APPLICATION_KEY: ${{ secrets.DATADOG_APPLICATION_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
npm install | ||
npm run test | ||
- name: Datadog Service Catalog Metadata Provider Manual Test | ||
uses: ./ | ||
with: | ||
schema-version: v2 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
datadog-hostname: api.us5.datadoghq.com | ||
datadog-key: ${{ secrets.DATADOG_API_KEY }} | ||
datadog-app-key: ${{ secrets.DATADOG_APPLICATION_KEY }} | ||
service-name: v2-automated-test | ||
team: Team Name Here | ||
email: [email protected] | ||
slack-support-channel: 'https://fakeorg.slack.com/archives/A0000000000' | ||
repo: https://github.com/arcxp/datadog-service-catalog-metadata-provider | ||
contacts: | | ||
- name: Testy McTester | ||
type: email | ||
contact: [email protected] | ||
tags: | | ||
- schema-version: v2 | ||
- 'application:GitHub Action Config Test' | ||
- intended-env:prod | ||
- infrastructure:serverless | ||
- language:nodejs | ||
- updated:${{ steps.date.outputs.date }} | ||
- internet_accessible: false | ||
repos: | | ||
- name: .github | ||
url: https://github.com/arcxp/.github | ||
provider: github | ||
links: | | ||
- url: https://github.com/actions/toolkit | ||
type: repo | ||
provider: Github | ||
name: '@actions/toolkit' | ||
- name: AMI Version Status Dashboard | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/dashboard | ||
type: dashboard | ||
- name: GitHub Actions! | ||
url: https://github.com/features/actions | ||
provider: Github Docs | ||
type: doc | ||
- name: Some Runbook | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/runbook | ||
type: runbook | ||
provider: Confluence | ||
docs: | | ||
- name: Some Docs | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/docs | ||
provider: Confluence | ||
- name: Datadog Blog | ||
url: https://www.datadoghq.com/blog/ | ||
integrations: | | ||
opsgenie: | ||
service-url: https://yourorghere.app.opsgenie.com/service/00000000-0000-0000-0000-000000000000 | ||
region: US |
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,79 @@ | ||
--- | ||
name: DataDog Service Catalog | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
automated-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get current date | ||
id: date | ||
run: echo "date=$(date +'%Y-%m-%d -- %s')" >> $GITHUB_OUTPUT | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run CI Tests | ||
env: | ||
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} | ||
DATADOG_APPLICATION_KEY: ${{ secrets.DATADOG_APPLICATION_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
npm install | ||
npm run test | ||
- name: Datadog Service Catalog Metadata Provider Manual Test | ||
uses: ./ | ||
with: | ||
schema-version: v2.1 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
datadog-hostname: api.us5.datadoghq.com | ||
datadog-key: ${{ secrets.DATADOG_API_KEY }} | ||
datadog-app-key: ${{ secrets.DATADOG_APPLICATION_KEY }} | ||
service-name: v2.1-automated-test | ||
application: Datadog Service Catalog Metadata Provider | ||
description: This is a test of the Datadog Service Catalog Metadata Provider | ||
lifecycle: production | ||
tier: p3 | ||
team: Team Name Here | ||
email: [email protected] | ||
slack-support-channel: 'https://fakeorg.slack.com/archives/A0000000000' | ||
repo: https://github.com/arcxp/datadog-service-catalog-metadata-provider | ||
tags: | | ||
- schema-version: v2.1 | ||
- 'application:GitHub Action Config Test' | ||
- intended-env:prod | ||
- infrastructure:serverless | ||
- language:nodejs | ||
- updated:${{ steps.date.outputs.date }} | ||
- internet_accessible: false | ||
links: | | ||
- url: https://github.com/actions/toolkit | ||
type: repo | ||
provider: Github | ||
name: '@actions/toolkit' | ||
- name: AMI Version Status Dashboard | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/dashboard | ||
type: dashboard | ||
- name: GitHub Actions! | ||
url: https://github.com/features/actions | ||
provider: Github Docs | ||
type: doc | ||
- name: Some Runbook | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/runbook | ||
type: runbook | ||
provider: Confluence | ||
- name: Some Docs | ||
url: https://thisisanentirelyfakeurl.seriouslythisisafakehostname.com/docs | ||
type: doc | ||
provider: Confluence | ||
- name: Datadog Blog | ||
type: other | ||
url: https://www.datadoghq.com/blog/ | ||
integrations: | | ||
opsgenie: | ||
service-url: https://yourorghere.app.opsgenie.com/service/00000000-0000-0000-0000-000000000000 | ||
region: US |
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 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 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 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
Oops, something went wrong.