-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from esnet/sc-demo
More than 3 layers; Load layers from discreet URLs; Shore up tests; Bug Fixes
- Loading branch information
Showing
60 changed files
with
2,836 additions
and
463 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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
on: [ | ||
push, | ||
pull_request | ||
] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
- name: Setup Node.js environment for build and testing | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
|
@@ -43,9 +40,25 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build and test frontend | ||
- name: Build frontend | ||
run: yarn build | ||
|
||
- name: Test components | ||
run: make test:component | ||
|
||
- name: Install E2E dependencies | ||
run: | | ||
npx playwright install --with-deps | ||
- name: Setup E2E testing parameters | ||
run: | | ||
mkdir -p ./playwright/.auth | ||
echo "{\"username\": \"admin\", \"password\": \"admin\" }" > ./playwright/.auth/credentials.json | ||
- name: E2E testing | ||
run: | | ||
make test:e2e | ||
- name: Check for backend | ||
id: check-for-backend | ||
run: | | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
version: '3.0' | ||
|
||
services: | ||
mitmproxy: | ||
image: mitmproxy/mitmproxy | ||
container_name: mitmproxy | ||
tty: true | ||
ports: | ||
- 8080:8080/tcp | ||
command: mitmdump --mode transparent --modify-headers "/Access-Control-Allow-Origin/*" --modify-headers "/X-Remote-User/remote" --modify-headers "/X-Forwarded-Host/esnet-networkmap-panel:3000" | ||
networks: | ||
- esnet-networkmap-e2e-net | ||
|
||
grafana: | ||
environment: | ||
- GF_INSTALL_PLUGINS=yesoreyeram-infinity-datasource | ||
container_name: 'esnet-networkmap-panel' | ||
build: | ||
context: ./.config | ||
dockerfile: Dockerfile | ||
args: | ||
grafana_version: ${GRAFANA_VERSION:-9.3.8} | ||
grafana_version: ${GRAFANA_VERSION:-10.4.0} | ||
restart: always | ||
ports: | ||
- 3000:3000/tcp | ||
volumes: | ||
- ./dist:/var/lib/grafana/plugins/esnet-networkmap-panel | ||
- ./provisioning:/etc/grafana/provisioning | ||
networks: | ||
- esnet-networkmap-e2e-net | ||
|
||
networks: | ||
esnet-networkmap-e2e-net: | ||
name: esnet-networkmap-e2e-net | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- | ||
subnet: 192.168.2.0/24 | ||
|
Oops, something went wrong.