Skip to content

Commit eaa7990

Browse files
authored
refactor: upgrade the Gatling load test (#1050)
1 parent 0dfed50 commit eaa7990

File tree

13 files changed

+750
-8
lines changed

13 files changed

+750
-8
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ updates:
66
interval: weekly
77
commit-message:
88
prefix: ci
9+
- package-ecosystem: maven
10+
directory: /gatling
11+
schedule:
12+
interval: weekly
13+
commit-message:
14+
prefix: ci

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ jobs:
2525
- name: Lint Code Base
2626
uses: super-linter/super-linter/slim@v6
2727
env:
28-
DEFAULT_BRANCH: main
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
VALIDATE_ALL_CODEBASE: true
29+
FILTER_REGEX_EXCLUDE: .*gatling/mvnw.*
3130
VALIDATE_CHECKOV: false
3231
VALIDATE_GITLEAKS: false
3332
VALIDATE_GO: false

docs/hub/load-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ To test your own infrastructure, we provide a [Gatling](https://gatling.io)-base
77

88
## Running the Load Test
99

10-
1. Download [Gatling version 3](https://gatling.io/open-source/)
11-
2. Clone the Mercure repository: `git clone https://github.com/dunglas/mercure`
12-
3. Run `path/to/gatling/bin/gatling.sh --simulations-folder mercure/gatling/`
10+
1. Clone the Mercure repository: `git clone https://github.com/dunglas/mercure`
11+
2. Go to the `gatling` directory: `cd gatling`
12+
3. Run `./mvnw gatling:test`
1313

1414
## Configuration
1515

gatling/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[**]
2+
ignore = true

gatling/.gatling/package.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# See https://github.com/gatling/gatling-maven-plugin-demo-scala/blob/main/.gatling/example.package.conf for a full deployment configuration file example
2+
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code

gatling/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
/.mvn/wrapper/*.jar
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar

gatling/mvnw

Lines changed: 308 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)