-
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.
Initial E2E tests infrastructure (#29)
* stage * stage * E2E controlled startup and traffic simulators * setup to bootstrap UI tests to services overview page with current service listed * minimal tests * minimal documentation for running tests * update license headers * fix license header in DotSettings * junit and github actions logger dont gel well together * allow unit/integration/e2e test to be split and called in isolation * Rename .IntegrationTests to EndToEndTests * Move to Nullean.Xunit.Partitions and simplify test logging * introduce --test-suite to better control what tests need to run * allow equal assignment on flags * pass env's more explicitly * ensure we can write to console out early if e2e is not configured properly * possible null handling in StartedConfirationHandler * ensure validation only happens if we run e2e tests * Update to latest partitions xunit that keeps track of the last test exception * fix vault lookup * ci: use pro secret * temporarily disable e2e tests * restore deleted development files * rename GlobalSetup to EndToEndOptions --------- Co-authored-by: Victor Martinez <[email protected]>
- Loading branch information
Showing
27 changed files
with
710 additions
and
99 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 |
---|---|---|
|
@@ -32,7 +32,6 @@ runs: | |
dotnet-version: | | ||
6.0.x | ||
8.0.x | ||
6.0.x | ||
- id: dotnet | ||
shell: bash | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,17 @@ concurrency: | |
env: | ||
# (keep_serverless-staging-oblt, keep_serverless-qa-oblt or serverless-production-oblt) | ||
SERVERLESS_PROJECT: serverless-production-oblt | ||
# (staging, qa or production) | ||
VAULT_SECRET_SUFFIX: production | ||
# (staging, qa or pro) | ||
VAULT_SECRET_SUFFIX: pro | ||
|
||
# NOTE: if you add a new job and it's a mandatory check then | ||
# update e2e-docs.yml | ||
jobs: | ||
test: | ||
if: | | ||
github.event_name != 'pull_request' || | ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) | ||
if: false() | ||
#if: | | ||
# github.event_name != 'pull_request' || | ||
# (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -55,10 +56,6 @@ jobs: | |
vault-role-id: ${{ secrets.VAULT_ROLE_ID }} | ||
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }} | ||
|
||
# TODO: run the e2e targeting the required endpoint. | ||
# those values can be found in https://github.com/elastic/apm-pipeline-library/tree/main/.github/actions/oblt-cli-cluster-credentials#outputs | ||
- run: curl -X GET "${ELASTICSEARCH_HOST}/_cat/indices?v" -u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD} | ||
|
||
- name: Get the browser email and password from Vault | ||
uses: hashicorp/[email protected] | ||
with: | ||
|
@@ -67,5 +64,10 @@ jobs: | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
method: approle | ||
secrets: | | ||
secret/observability-team/ci/elastic-cloud/observability-team-${{ env.VAULT_SECRET_SUFFIX }} username | E2E__BROWSEREMAIL | ||
secret/observability-team/ci/elastic-cloud/observability-team-${{ env.VAULT_SECRET_SUFFIX }} username | E2E__BROWSEREMAIL ; | ||
secret/observability-team/ci/elastic-cloud/observability-team-${{ env.VAULT_SECRET_SUFFIX }} password | E2E__BROWSERPASSWORD | ||
- run: ./build.sh test --test-suite=e2e | ||
env: | ||
E2E__ENDPOINT: "${{env.ELASTIC_APM_SERVER_URL}}" | ||
E2E__AUTHORIZATION: "Authentication=ApiKey ${{env.ELASTIC_APM_API_KEY}}" |
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,31 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<OutputType>Exe</OutputType> | ||
<NoWarn>$(NoWarn);NU1701</NoWarn> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Argu" Version="6.1.4" /> | ||
<PackageReference Include="Bullseye" Version="4.2.1" /> | ||
<PackageReference Include="Proc.Fs" Version="0.7.2" /> | ||
<PackageReference Include="Fake.Tools.Git" Version="5.20.3"/> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<OutputType>Exe</OutputType> | ||
<NoWarn>$(NoWarn);NU1701</NoWarn> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Argu" Version="6.1.4"/> | ||
<PackageReference Include="Bullseye" Version="4.2.1"/> | ||
<PackageReference Include="Proc.Fs" Version="0.8.1"/> | ||
<PackageReference Include="Fake.Tools.Git" Version="5.20.3"/> | ||
<PackageReference Remove="FSharp.Core"/> | ||
<PackageReference Include="FSharp.Core" Version="8.0.101"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\*" LinkBase="_root"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\*" LinkBase="_root"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="scripts\BuildInformation.fs" /> | ||
<Compile Include="scripts\CommandLine.fs"/> | ||
<Compile Include="scripts\Targets.fs"/> | ||
<Compile Include="scripts\Program.fs"/> | ||
<None Include="**\*" /> | ||
<None Remove="bin\**" /> | ||
<None Remove="obj\**" /> | ||
<None Remove="scripts\**" /> | ||
<None Remove="output\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="scripts\BuildInformation.fs"/> | ||
<Compile Include="scripts\CommandLine.fs"/> | ||
<Compile Include="scripts\Targets.fs"/> | ||
<Compile Include="scripts\Program.fs"/> | ||
<None Include="**\*"/> | ||
<None Remove="bin\**"/> | ||
<None Remove="obj\**"/> | ||
<None Remove="scripts\**"/> | ||
<None Remove="output\**"/> | ||
</ItemGroup> | ||
|
||
</Project> |
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.