-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [internal/e2e-automated-builds] Internal work for fully automating release
- Loading branch information
Showing
57 changed files
with
435 additions
and
277 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,4 @@ | ||
node_modules | ||
target | ||
logs | ||
|
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,7 @@ | ||
FROM node:18-buster-slim as build | ||
|
||
WORKDIR /app | ||
ADD app /app/app/ | ||
ADD features /app/features/ | ||
COPY package.json package-lock.json tsconfig.json run.sh /app/ | ||
RUN npm install && npm run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
import { After, AfterAll, Before, BeforeAll } from '@cucumber/cucumber'; | ||
import { | ||
Application, | ||
AuthServiceApi, | ||
Portfolio, | ||
PortfolioServiceApi, | ||
RoleType, | ||
ServiceAccount, | ||
ServiceAccountPermission, | ||
SetupServiceApi, | ||
UserCredentials | ||
} from 'featurehub-javascript-admin-sdk'; | ||
import { After, Before, BeforeAll } from '@cucumber/cucumber'; | ||
import { AuthServiceApi, PortfolioServiceApi, SetupServiceApi, UserCredentials } from 'featurehub-javascript-admin-sdk'; | ||
import { makeid } from './random'; | ||
import { expect } from 'chai'; | ||
import { SdkWorld } from './world'; | ||
import { discover } from './discovery'; | ||
import { startWebServer, terminateServer } from './make_me_a_webserver'; | ||
import { lstat } from 'fs'; | ||
|
||
const superuserEmailAddress = '[email protected]'; | ||
// const superuserEmailAddress = '[email protected]'; | ||
|
@@ -65,6 +53,10 @@ Before(async function () { | |
await ensureLoggedIn(this as SdkWorld); | ||
}); | ||
|
||
Before(function () { | ||
this.setScenarioId(makeid(30)); | ||
}); | ||
|
||
After(function () { | ||
if (this.edgeServer) { | ||
console.log('shutting down edge connection'); | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
docker build -t featurehub/e2e-adk: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/sh | ||
mkdir -p logs | ||
rm -rf logs/* | ||
if [ $# -eq 0 ] | ||
then | ||
echo DEBUG=true npm run test | ||
|
Oops, something went wrong.