From 229d6741ae97a153224b50bfebf5c49859d925dd Mon Sep 17 00:00:00 2001 From: DennisvdLaar <50946545+DennisvdLaar@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:52:46 +0100 Subject: [PATCH 01/15] Create first-workflow.yml --- .github/workflows/first-workflow.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/first-workflow.yml diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml new file mode 100644 index 00000000..76b7d043 --- /dev/null +++ b/.github/workflows/first-workflow.yml @@ -0,0 +1,35 @@ +# The name of the job is what will display on the GitHub repository in the Actions tab. +name: First Workflow + +# The 'on' section tells GitHub under what conditions we want to run this workflow. +# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows +# Common scenarios include: + # workflow-dispatch (manual execution) + # issues + # push + # pull_request + # schedule +on: + workflow_dispatch: + issues: + types: [opened] + +# This section covers the work to perform. +# We include one or more jobs in this section. +jobs: + # Each individual job will include details like execution order, + # pre-requisite jobs, and execution platform. + job1: + # We can run jobs on GitHub hosted VM runners in Windows, Ubuntu, and Mac OS. + # We can also run jobs on self-hosted hardware. + runs-on: ubuntu-latest + + # Each job contains one or more steps. A step needs to have at least a name and a command. + steps: + - name: Step one + # The 'run' command executes a shell or command script. Because this is Ubuntu, the + # default run command will be /bin/bash + run: echo "Log from step one" + + - name: Step two + run: echo "Log from step two" From 532a117eca2e24e78bca8d1dc6e52f1a58a0b0a1 Mon Sep 17 00:00:00 2001 From: DennisvdLaar <50946545+DennisvdLaar@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:58:22 +0100 Subject: [PATCH 02/15] Update first-workflow.yml Added job 2 --- .github/workflows/first-workflow.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index 76b7d043..839a9c9b 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -33,3 +33,19 @@ jobs: - name: Step two run: echo "Log from step two" + + job2: + #Use a GitHub Action named: CowSays + runs-on: ubuntu-latest + + steps: + - name: Cowsays + # You may pin to the exact commit or the version. + # uses: mscoutermarsh/cowsays-action@822c8424f7ebc1f4c8b86b0bcb11e4051b7f42e2 + uses: mscoutermarsh/cowsays-action@v1 + with: + # What does the cow say? + text: Ready for prod–ship it! # optional, default is Ship it!!!!! + # Color of your cow + color: Magenta # optional, default is white + From 09fd29b1456978014c635c07bcb9a7248130e1e6 Mon Sep 17 00:00:00 2001 From: DennisvdLaar <50946545+DennisvdLaar@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:00:04 +0100 Subject: [PATCH 03/15] Update first-workflow.yml Created dependency on job 1 --- .github/workflows/first-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index 839a9c9b..7cd89110 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -35,6 +35,7 @@ jobs: run: echo "Log from step two" job2: + needs: [job1] #Use a GitHub Action named: CowSays runs-on: ubuntu-latest From 5cde7b5a42f32af172bd447a508ef48c1e0e2a3a Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 10:44:50 +0100 Subject: [PATCH 04/15] fix text limit --- Application/src/RazorPagesTestSample/Data/Message.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/src/RazorPagesTestSample/Data/Message.cs b/Application/src/RazorPagesTestSample/Data/Message.cs index ea99cbd6..59f24395 100644 --- a/Application/src/RazorPagesTestSample/Data/Message.cs +++ b/Application/src/RazorPagesTestSample/Data/Message.cs @@ -9,7 +9,7 @@ public class Message [Required] [DataType(DataType.Text)] - [StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] + [StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")] public string Text { get; set; } } #endregion From c8db5e8235c6011a57531747473b1222cb6c68ff Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 11:32:46 +0100 Subject: [PATCH 05/15] added IaC file --- .github/workflows/Deploy_IaC.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/Deploy_IaC.yml diff --git a/.github/workflows/Deploy_IaC.yml b/.github/workflows/Deploy_IaC.yml new file mode 100644 index 00000000..e11d6d72 --- /dev/null +++ b/.github/workflows/Deploy_IaC.yml @@ -0,0 +1,34 @@ +on: + workflow_dispatch + +env: + targetEnv: dev + +name: Azure Bicep +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + steps: + # Checkout code + - uses: actions/checkout@main + + # Log into Azure + - uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + enable-AzPSSession: true + + # Deploy ARM template + - name: Run ARM deploy + uses: azure/arm-deploy@v1 + with: + subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + resourceGroupName: ${{ secrets.AZURE_RG }} + template: ./InfrastructureAsCode/main.bicep + parameters: environment=${{ env.targetEnv }} \ No newline at end of file From 3e5e1c964900958e18c4091048195dffdc13be30 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 11:51:53 +0100 Subject: [PATCH 06/15] added new IaC --- .github/workflows/Deploy_IaCSP.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/Deploy_IaCSP.yml diff --git a/.github/workflows/Deploy_IaCSP.yml b/.github/workflows/Deploy_IaCSP.yml new file mode 100644 index 00000000..72a4c18a --- /dev/null +++ b/.github/workflows/Deploy_IaCSP.yml @@ -0,0 +1,23 @@ +name: Deploy Bicep file +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + + - name: Checkout code + uses: actions/checkout@main + + - name: Log into Azure + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - name: Deploy Bicep file + uses: azure/arm-deploy@v1 + with: + subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }} + resourceGroupName: ${{ secrets.AZURE_RG }} + template: ./DeployIaCSP.bicep + parameters: 'storagePrefix=mystore storageSKU=Standard_LRS' + failOnStdErr: false \ No newline at end of file From 39152de608715c3ed1f59f67cb728b98ee6887c6 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:02:34 +0100 Subject: [PATCH 07/15] added new IaC on workflow depatch --- .github/workflows/Deploy_IaCSP.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Deploy_IaCSP.yml b/.github/workflows/Deploy_IaCSP.yml index 72a4c18a..129f91ce 100644 --- a/.github/workflows/Deploy_IaCSP.yml +++ b/.github/workflows/Deploy_IaCSP.yml @@ -1,5 +1,6 @@ name: Deploy Bicep file -on: [push] +on: workflow_dispatch + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -16,7 +17,7 @@ jobs: - name: Deploy Bicep file uses: azure/arm-deploy@v1 with: - subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }} + subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} resourceGroupName: ${{ secrets.AZURE_RG }} template: ./DeployIaCSP.bicep parameters: 'storagePrefix=mystore storageSKU=Standard_LRS' From eb9ec93e741fcc6c89fd22ca3e254e7f2817c788 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:06:29 +0100 Subject: [PATCH 08/15] added new IaC - storage --- .github/workflows/Deploy_IaCSP.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Deploy_IaCSP.yml b/.github/workflows/Deploy_IaCSP.yml index 129f91ce..4cdb36d0 100644 --- a/.github/workflows/Deploy_IaCSP.yml +++ b/.github/workflows/Deploy_IaCSP.yml @@ -20,5 +20,5 @@ jobs: subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} resourceGroupName: ${{ secrets.AZURE_RG }} template: ./DeployIaCSP.bicep - parameters: 'storagePrefix=mystore storageSKU=Standard_LRS' + parameters: 'storagePrefix=csb10032003568a3923 storageSKU=Standard_LRS' failOnStdErr: false \ No newline at end of file From d81dc9336348bbd6a4d613c6f655185ff44086a3 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:10:16 +0100 Subject: [PATCH 09/15] updated old IaC --- .github/workflows/Deploy_IaC.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/Deploy_IaC.yml b/.github/workflows/Deploy_IaC.yml index e11d6d72..bfacf7f9 100644 --- a/.github/workflows/Deploy_IaC.yml +++ b/.github/workflows/Deploy_IaC.yml @@ -1,6 +1,11 @@ on: workflow_dispatch +permissions: + contents: read + pages: write + id-token: write + env: targetEnv: dev From 34e0a308ed19d4db24811c612945e88a1cfa700c Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:13:43 +0100 Subject: [PATCH 10/15] updated old IaC --- .github/workflows/Deploy_IaC.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/Deploy_IaC.yml b/.github/workflows/Deploy_IaC.yml index bfacf7f9..e11d6d72 100644 --- a/.github/workflows/Deploy_IaC.yml +++ b/.github/workflows/Deploy_IaC.yml @@ -1,11 +1,6 @@ on: workflow_dispatch -permissions: - contents: read - pages: write - id-token: write - env: targetEnv: dev From ecfd30b845d98f089e8520f35686230b8be5a1c9 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:17:59 +0100 Subject: [PATCH 11/15] updated new IaC --- .github/workflows/Deploy_IaCSP.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Deploy_IaCSP.yml b/.github/workflows/Deploy_IaCSP.yml index 4cdb36d0..d7c8e43a 100644 --- a/.github/workflows/Deploy_IaCSP.yml +++ b/.github/workflows/Deploy_IaCSP.yml @@ -19,6 +19,6 @@ jobs: with: subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} resourceGroupName: ${{ secrets.AZURE_RG }} - template: ./DeployIaCSP.bicep + template: ./InfrastructureAsCode/main.bicep parameters: 'storagePrefix=csb10032003568a3923 storageSKU=Standard_LRS' failOnStdErr: false \ No newline at end of file From 67f62f309eef872d4e17b52a7f8079f570631e18 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 12:46:46 +0100 Subject: [PATCH 12/15] .Net CICD --- .github/workflows/appDeploy.yml | 135 ++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 .github/workflows/appDeploy.yml diff --git a/.github/workflows/appDeploy.yml b/.github/workflows/appDeploy.yml new file mode 100644 index 00000000..eccc97a7 --- /dev/null +++ b/.github/workflows/appDeploy.yml @@ -0,0 +1,135 @@ +name: .NET CI + +env: + registryName: yjgubz5iu6gbympnpreg.azurecr.io + repositoryName: techboost/dotnetcoreapp + dockerFolderPath: ./Application/src/RazorPagesTestSample + tag: ${{github.run_number}} + +on: + push: + branches: [ main ] + paths: Application/** + pull_request: + branches: [ main ] + paths: Application/** + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0 + + - name: Restore dependencies + run: dotnet restore ./Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Build + run: dotnet build --no-restore ./Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Test + run: dotnet test --no-build --verbosity normal ./Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj + - uses: actions/github-script@v6 + if: failure() + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n"; + github.issues.create({ + owner: context.repo.owner, + repo: context.repo.repo, + title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", + body: body + }); + + dockerBuildPush: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + # You may pin to the exact commit or the version. + # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@v1.9.0 + with: + # Server address of Docker registry. If not set then will default to Docker Hub + registry: ${{ secrets.ACR_LOGIN_SERVER }} + # Username used to log against the Docker registry + username: ${{ secrets.ACR_USERNAME }} + # Password or personal access token used to log against the Docker registry + password: ${{ secrets.ACR_PASSWORD }} + # Log out from the Docker registry at the end of a job + logout: true + + - name: Docker Build + run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath + + - name: Docker Push + run: docker push $registryName/$repositoryName:$tag + + deploy-to-dev: + + runs-on: ubuntu-latest + needs: dockerBuildPush + environment: + name: dev + url: https://yjgubz5iu6gby-dev.azurewebsites.net/ + + steps: + - name: 'Login via Azure CLI' + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'yjgubz5iu6gby-dev' + images: yjgubz5iu6gbympnpreg.azurecr.io/techboost/dotnetcoreapp:${{github.run_number}} + + deploy-to-test: + + runs-on: ubuntu-latest + needs: deploy-to-dev + environment: + name: test + url: https://yjgubz5iu6gby-test.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'yjgubz5iu6gby-test' + images: yjgubz5iu6gbympnpreg.azurecr.io/techboost/dotnetcoreapp:${{github.run_number}} + + deploy-to-prod: + + runs-on: ubuntu-latest + needs: deploy-to-test + environment: + name: prod + url: https://yjgubz5iu6gby-prod.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'yjgubz5iu6gby-prod' + images: yjgubz5iu6gbympnpreg.azurecr.io/techboost/dotnetcoreapp:${{github.run_number}} \ No newline at end of file From ee063221f5cab2e551f19869deb117bf962c03d2 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 13:37:30 +0100 Subject: [PATCH 13/15] added inpjt parameters for env --- .github/workflows/Deploy_IaC.yml | 11 ++++++++--- .github/workflows/Deploy_IaCSP.yml | 24 ------------------------ 2 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/Deploy_IaCSP.yml diff --git a/.github/workflows/Deploy_IaC.yml b/.github/workflows/Deploy_IaC.yml index e11d6d72..4ca496e4 100644 --- a/.github/workflows/Deploy_IaC.yml +++ b/.github/workflows/Deploy_IaC.yml @@ -1,8 +1,13 @@ on: - workflow_dispatch - + workflow_dispatch: + inputs: + targetEnv: + description: 'Environment (dev, test, prod)' + required: true + type: string + env: - targetEnv: dev + targetEnv: ${{ inputs.targetEnv }} name: Azure Bicep jobs: diff --git a/.github/workflows/Deploy_IaCSP.yml b/.github/workflows/Deploy_IaCSP.yml deleted file mode 100644 index d7c8e43a..00000000 --- a/.github/workflows/Deploy_IaCSP.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deploy Bicep file -on: workflow_dispatch - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - - name: Checkout code - uses: actions/checkout@main - - - name: Log into Azure - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - name: Deploy Bicep file - uses: azure/arm-deploy@v1 - with: - subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - resourceGroupName: ${{ secrets.AZURE_RG }} - template: ./InfrastructureAsCode/main.bicep - parameters: 'storagePrefix=csb10032003568a3923 storageSKU=Standard_LRS' - failOnStdErr: false \ No newline at end of file From 11e0307e583627bb1419c04cdcb53564d3b1b2c1 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 14:34:26 +0100 Subject: [PATCH 14/15] added loadtest workflow --- .github/ISSUE_TEMPLATE/load_test_report.md | 9 + .github/workflows/LoadTest.yml | 52 ++ LoadTestConfig.yml | 8 + LoadTestScript.jmx | 688 +++++++++++++++++++++ 4 files changed, 757 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/load_test_report.md create mode 100644 .github/workflows/LoadTest.yml create mode 100644 LoadTestConfig.yml create mode 100644 LoadTestScript.jmx diff --git a/.github/ISSUE_TEMPLATE/load_test_report.md b/.github/ISSUE_TEMPLATE/load_test_report.md new file mode 100644 index 00000000..d09d7c57 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/load_test_report.md @@ -0,0 +1,9 @@ + +- +title: Load test failure! +assignees: + - DennisvdLaar +labels: + - bug +- +A load test failure has occurred. Please access the Azure Load Test portal to learn more about this latest run. \ No newline at end of file diff --git a/.github/workflows/LoadTest.yml b/.github/workflows/LoadTest.yml new file mode 100644 index 00000000..74593338 --- /dev/null +++ b/.github/workflows/LoadTest.yml @@ -0,0 +1,52 @@ +name: Load Test Trigger + +on: + push: + branches: + - main + workflow_dispatch: + +env: + AZURE_WEBAPP_NAME: "yjgubz5iu6gby-dev" # set this to your application's name + LOAD_TEST_RESOURCE: "LoadTestDvdL" # set this to your Azure Load Test resource's name + LOAD_TEST_RESOURCE_GROUP: "RG-Deploy" # set this to the resource group you've used for this training + +jobs: + loadTest: + name: Load Test + runs-on: ubuntu-latest + steps: + - name: Checkout GitHub Actions + uses: actions/checkout@v2 + + - name: Login to Azure + uses: azure/login@v1 + continue-on-error: false + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - name: 'Azure Load Testing' + uses: azure/load-testing@v1 + with: + loadTestConfigFile: 'LoadTestConfig.yaml' + loadTestResource: ${{ env.LOAD_TEST_RESOURCE }} + resourceGroup: ${{ env.LOAD_TEST_RESOURCE_GROUP }} + env: | + [ + { + "name": "webapp", + "value": "${{ env.AZURE_WEBAPP_NAME }}.azurewebsites.net" + } + ] + + - uses: JasonEtco/create-an-issue@v2.9.1 + if: ${{ failure() }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: .github/ISSUE_TEMPLATE/load_test_report.md + + - uses: actions/upload-artifact@v2 + with: + name: loadTestResults + path: ${{ github.workspace }}/loadTest \ No newline at end of file diff --git a/LoadTestConfig.yml b/LoadTestConfig.yml new file mode 100644 index 00000000..f98f16cd --- /dev/null +++ b/LoadTestConfig.yml @@ -0,0 +1,8 @@ +version: v0.1 +testName: mpnploadtest +testPlan: LoadTestScript.jmx +description: 'CI/CD Test Run for MP&P load test' +engineInstances: 1 +failureCriteria: + - avg(response_time_ms) > 600 + - percentage(error) > 10 \ No newline at end of file diff --git a/LoadTestScript.jmx b/LoadTestScript.jmx new file mode 100644 index 00000000..6a693c18 --- /dev/null +++ b/LoadTestScript.jmx @@ -0,0 +1,688 @@ + + + + + false + false + false + + + + site + ${__BeanShell( System.getenv("webapp") )} + = + + + numUsers + ${__BeanShell( System.getenv("numUsers") )} + = + + + + + + + continue + + 20 + false + + 30 + 30 + false + false + + + true + + + + + + + ${site} + 80 + https + + + + + + false + + + + 443 + / + GET + true + false + true + false + false + false + false + 6 + false + 0 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + token + input[name=__RequestVerificationToken] + value + + false + + + + + + + false + + + + true + Message.Text + This is a test message! + = + true + text/plain + + + false + __RequestVerificationToken + ${token} + = + true + + + + 443 + utf-8 + /?handler=AddMessage + POST + true + false + true + false + false + false + false + 6 + false + 0 + Detected the start of a redirect chain + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Origin + https://${site} + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + false + + + + 443 + utf-8 + / + GET + true + false + true + false + false + false + false + 6 + false + 0 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + false + + + + false + __RequestVerificationToken + ${token} + = + + + + 443 + utf-8 + /?id=8&handler=DeleteMessage + POST + true + false + true + false + false + false + false + 6 + false + 0 + Detected the start of a redirect chain + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Origin + https://${site} + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + false + + + + 443 + utf-8 + / + GET + true + false + true + false + false + false + false + 6 + false + 0 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + false + + + + false + __RequestVerificationToken + ${token} + = + + + + 443 + utf-8 + /?handler=AnalyzeMessages + POST + true + false + true + false + false + false + false + 6 + false + 0 + Detected the start of a redirect chain + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Origin + https://${site} + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Content-Type + application/x-www-form-urlencoded + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + false + + + + 443 + utf-8 + / + GET + true + false + true + false + false + false + false + 6 + false + 0 + + + + + + Sec-Fetch-Mode + navigate + + + Referer + https://${site}/ + + + Sec-Fetch-Site + same-origin + + + Accept-Language + en-US,en;q=0.5 + + + Sec-Fetch-User + ?1 + + + Accept + text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 + + + Upgrade-Insecure-Requests + 1 + + + Accept-Encoding + gzip, deflate, br + + + User-Agent + Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 + + + Sec-Fetch-Dest + document + + + + + + + + + false + false + + + + + 8888 + + + true + 0 + false + + false + true + true + true + false + 0 + + singlepage + + false + false + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + \ No newline at end of file From 1f741a111a7fda6e711a43383e04b428b6544119 Mon Sep 17 00:00:00 2001 From: DennisvdLaar Date: Thu, 29 Feb 2024 14:41:15 +0100 Subject: [PATCH 15/15] changed loadtest workflow --- .github/ISSUE_TEMPLATE/load_test_report.md | 5 ++--- .github/workflows/LoadTest.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/load_test_report.md b/.github/ISSUE_TEMPLATE/load_test_report.md index d09d7c57..f538257c 100644 --- a/.github/ISSUE_TEMPLATE/load_test_report.md +++ b/.github/ISSUE_TEMPLATE/load_test_report.md @@ -1,9 +1,8 @@ - -- +--- title: Load test failure! assignees: - DennisvdLaar labels: - bug -- +--- A load test failure has occurred. Please access the Azure Load Test portal to learn more about this latest run. \ No newline at end of file diff --git a/.github/workflows/LoadTest.yml b/.github/workflows/LoadTest.yml index 74593338..26c9cfc8 100644 --- a/.github/workflows/LoadTest.yml +++ b/.github/workflows/LoadTest.yml @@ -28,7 +28,7 @@ jobs: - name: 'Azure Load Testing' uses: azure/load-testing@v1 with: - loadTestConfigFile: 'LoadTestConfig.yaml' + loadTestConfigFile: 'LoadTestConfig.yml' loadTestResource: ${{ env.LOAD_TEST_RESOURCE }} resourceGroup: ${{ env.LOAD_TEST_RESOURCE_GROUP }} env: |