diff --git a/.claude/settings.local.json b/.claude/settings.local.json
new file mode 100644
index 0000000..b8b67dd
--- /dev/null
+++ b/.claude/settings.local.json
@@ -0,0 +1,12 @@
+{
+ "permissions": {
+ "allow": [
+ "Bash(gradle wrapper:*)",
+ "Bash(curl -sL \"https://raw.githubusercontent.com/gradle/gradle/v8.13.0/gradle/wrapper/gradle-wrapper.jar\" -o \"C:\\\\AIN-Festplatte\\\\Softwarearchitekturen\\\\Gatlin\\\\gradle\\\\wrapper\\\\gradle-wrapper.jar\")",
+ "WebFetch(domain:raw.githubusercontent.com)",
+ "WebFetch(domain:api.github.com)",
+ "WebFetch(domain:github.com)",
+ "Bash(xargs grep:*)"
+ ]
+ }
+}
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..3a749e4
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+gatlin
\ No newline at end of file
diff --git a/.idea/Gatlin.iml b/.idea/Gatlin.iml
new file mode 100644
index 0000000..5a90513
--- /dev/null
+++ b/.idea/Gatlin.iml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..a55e7a1
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..e5114f9
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..ce1c62c
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__scala_sdk_2_13_16.xml b/.idea/libraries/Gradle__scala_sdk_2_13_16.xml
new file mode 100644
index 0000000..ebde7f6
--- /dev/null
+++ b/.idea/libraries/Gradle__scala_sdk_2_13_16.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..e0fb94d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/scala_compiler.xml b/.idea/scala_compiler.xml
new file mode 100644
index 0000000..4990833
--- /dev/null
+++ b/.idea/scala_compiler.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/scala_settings.xml b/.idea/scala_settings.xml
new file mode 100644
index 0000000..4608fe0
--- /dev/null
+++ b/.idea/scala_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..7ddfc9e
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 944b659..2fcfa0f 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,76 @@
# Gatlin
+Load and integration tests for the Kubernetes cluster, built with [Gatling](https://gatling.io/) (Scala DSL).
+
+## Prerequisites
+
+- A JVM (21+) — required to run the Gradle wrapper
+- No local Gradle or Scala installation required — the wrapper downloads both automatically
+
+## Running simulations
+
+```bash
+./gradlew gatlingRun \
+ -PbaseUrl=http:// \
+ -PauthToken=
+```
+
+On Windows:
+```bat
+gradlew.bat gatlingRun -PbaseUrl=http:// -PauthToken=
+```
+
+The bearer token can also be supplied via the environment variable `GATLING_AUTH_TOKEN` instead of `-PauthToken`.
+
+## Running a specific simulation
+
+```bash
+./gradlew gatlingRun --simulation simulations.SmokeTestSimulation \
+ -PbaseUrl=http:// \
+ -PauthToken=
+```
+
+## Reports
+
+HTML reports are generated under `build/reports/gatling/` after each run.
+
+## Adding a new simulation
+
+1. Create a class in `src/gatling/scala/simulations/` that extends `BaseSimulation`.
+2. Define your scenario and call `setUp(...).protocols(httpProtocol)` — the bearer token and base URL are inherited automatically.
+
+```scala
+package simulations
+
+import base.BaseSimulation
+import io.gatling.core.Predef._
+import io.gatling.http.Predef._
+
+class MyServiceSimulation extends BaseSimulation {
+
+ private val scn = scenario("My Service")
+ .exec(
+ http("GET /api/resource")
+ .get("/api/resource")
+ .check(status.is(200))
+ )
+
+ setUp(
+ scn.inject(rampUsers(10).during(30))
+ ).protocols(httpProtocol)
+}
+```
+
+## Project structure
+
+```
+src/
+ gatling/
+ scala/
+ base/ - BaseSimulation (shared protocol, auth)
+ simulations/ - one class per scenario group
+ resources/
+ gatling.conf - Gatling configuration overrides
+ data/ - CSV feeders
+ bodies/ - request body templates
+```
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..2df553a
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,32 @@
+plugins {
+ id 'scala'
+ id 'io.gatling.gradle' version '3.15.0.1'
+}
+
+gatling {
+ enterprise {
+ // Enterprise Cloud configuration reference: https://docs.gatling.io/reference/integrations/build-tools/gradle-plugin/#running-your-simulations-on-gatling-enterprise-cloud
+ }
+}
+
+tasks.withType(ScalaCompile) {
+ scalaCompileOptions.forkOptions.with {
+ jvmArgs = ['-Xss100m'] // Scala compiler may require a larger stack size when compiling Gatling simulations
+ }
+}
+
+tasks.withType(io.gatling.gradle.GatlingRunTask) {
+ jvmArgs = [
+ '--add-opens=java.base/java.lang=ALL-UNNAMED',
+ "-Dtarget.baseUrl=${findProperty('baseUrl') ?: 'http://localhost:8080'}",
+ "-Dgatling.authToken=${findProperty('authToken') ?: System.getenv('GATLING_AUTH_TOKEN') ?: ''}"
+ ]
+}
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ implementation 'org.scala-lang:scala-library:2.13.16'
+}
diff --git a/docs/2026-04-30-gatling-setup-plan.md b/docs/2026-04-30-gatling-setup-plan.md
new file mode 100644
index 0000000..a0d2f84
--- /dev/null
+++ b/docs/2026-04-30-gatling-setup-plan.md
@@ -0,0 +1,145 @@
+# Implementation Plan: Gatling Setup for Kubernetes Cluster Testing
+
+**Date:** 2026-04-30
+**Branch:** `feat/NCS-57`
+**Stack:** Scala 3.5.1, Gradle, Gatling 3.x (Scala DSL)
+
+---
+
+## Decisions
+
+| Concern | Decision |
+|---|---|
+| Build tool | Gradle |
+| Language | Scala 3.5.1 |
+| Gatling API | Scala DSL (Gatling 3.x) |
+| Authentication | Bearer token via env var `GATLING_AUTH_TOKEN` |
+| Target base URL | Injected at runtime via Gradle project property `-PbaseUrl=...` |
+
+---
+
+## Steps
+
+### Step 1 — `build.gradle` + `settings.gradle`
+
+Create `settings.gradle`:
+- Set root project name to `gatlin`
+
+Create `build.gradle`:
+- Apply `io.gatling.gradle` plugin (3.x)
+- Set `scalaVersion = '3.5.1'`
+- Configure `gatlingRun` task to pass `baseUrl` and `authToken` as JVM system properties so simulations can read them via `sys.props`
+
+Run command:
+```bash
+./gradlew gatlingRun -PbaseUrl=http:// -PauthToken=
+```
+
+---
+
+### Step 2 — Gradle wrapper
+
+Generate `gradlew` / `gradlew.bat` and `gradle/wrapper/gradle-wrapper.properties` (Gradle 8.x).
+This ensures reproducible builds without a local Gradle installation.
+
+---
+
+### Step 3 — Source layout
+
+Create the standard Gatling + Gradle directory structure:
+
+```
+src/
+ gatling/
+ scala/
+ simulations/ ← concrete simulation classes
+ base/ ← BaseSimulation.scala (shared protocol + auth)
+ resources/
+ gatling.conf ← timeout / connection overrides
+ data/ ← CSV feeders (added per test as needed)
+ bodies/ ← request body templates (added per test as needed)
+```
+
+Update `.idea/Gatlin.iml` source roots to include `src/gatling/scala`.
+
+---
+
+### Step 4 — `BaseSimulation.scala`
+
+`src/gatling/scala/base/BaseSimulation.scala`:
+
+- Reads `target.baseUrl` from `sys.props` (set by Gradle from `-PbaseUrl`)
+- Reads `gatling.authToken` from `sys.props` (set by Gradle from `-PauthToken` or env `GATLING_AUTH_TOKEN`)
+- Defines a shared `HttpProtocolBuilder`:
+ - base URL
+ - `Authorization: Bearer ` header on every request
+ - `Accept: application/json`
+ - connection keep-alive
+- Abstract class — concrete simulations extend it and inherit the protocol
+
+---
+
+### Step 5 — `SmokeTestSimulation.scala`
+
+`src/gatling/scala/simulations/SmokeTestSimulation.scala`:
+
+- Extends `BaseSimulation`
+- Single virtual user, one `GET /healthz` request
+- Asserts: HTTP 200, response time < 2 000 ms
+- Purpose: verify end-to-end connectivity and auth before writing heavier tests
+
+This serves as the reference example for future simulations.
+
+---
+
+### Step 6 — `gatling.conf`
+
+`src/gatling/resources/gatling.conf`:
+
+```
+gatling {
+ http {
+ enableGA = false
+ }
+}
+```
+
+Keeps telemetry off. Other defaults (timeouts, max connections) are left to Gatling's built-in values and can be overridden per-simulation in code.
+
+---
+
+### Step 7 — `.gitignore` updates
+
+Add to `.gitignore`:
+```
+build/
+.gradle/
+results/
+```
+
+---
+
+### Step 8 — `README.md` update
+
+Document:
+1. Prerequisites (Gradle wrapper handles everything — no local installs needed beyond a JVM)
+2. How to run: `./gradlew gatlingRun -PbaseUrl=... -PauthToken=...`
+3. How to add a new simulation (extend `BaseSimulation`, place in `simulations/`)
+4. Where reports are generated (`build/reports/gatling/`)
+
+---
+
+## File Checklist
+
+| File | Action |
+|---|---|
+| `settings.gradle` | Create |
+| `build.gradle` | Create |
+| `gradle/wrapper/gradle-wrapper.properties` | Generate |
+| `gradlew` / `gradlew.bat` | Generate |
+| `src/gatling/scala/base/BaseSimulation.scala` | Create |
+| `src/gatling/scala/simulations/SmokeTestSimulation.scala` | Create |
+| `src/gatling/resources/gatling.conf` | Create |
+| `.gitignore` | Update |
+| `README.md` | Update |
+| `.idea/Gatlin.iml` | Update source roots |
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..5ad6974
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1 @@
+org.gradle.configuration-cache=true
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..9bbc975
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..c61a118
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..0e6c009
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,213 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by "Gradle".
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other POSIX-compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the normally
+# positional parameters. For example:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for users:
+#
+# (2) This script is auto-generated by the Gradle build system.
+# It is not intended to be modified by users. Run ./gradlew --version to
+# verify the Gradle version of the wrapper.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #( absolute
+ *) app_path=$APP_HOME$link ;; #( relative
+ esac
+done
+
+# This is reliable for symlinks on Linux and macOS.
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ ;;
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # temporary variables. (e.g., single temporary variable) to print
+ # something that can later be joined together to form a single variable.
+ set -- "$@" "$arg"
+ shift
+ done
+fi
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# temporary variable character.
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^a-zA-Z0-9/=@_-]~\\&~g; ' |
+ tr '\n' ' '
+ ) $@"
+
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..25da30d
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,92 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..a753867
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'gatlin'
diff --git a/src/gatling/resources/gatling.conf b/src/gatling/resources/gatling.conf
new file mode 100644
index 0000000..5328856
--- /dev/null
+++ b/src/gatling/resources/gatling.conf
@@ -0,0 +1,6 @@
+gatling {
+ http {
+ # Disable Google Analytics telemetry
+ enableGA = false
+ }
+}
diff --git a/src/gatling/resources/logback-test.xml b/src/gatling/resources/logback-test.xml
new file mode 100644
index 0000000..df6084e
--- /dev/null
+++ b/src/gatling/resources/logback-test.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ %d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx
+
+ false
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/gatling/scala/base/BaseSimulation.scala b/src/gatling/scala/base/BaseSimulation.scala
new file mode 100644
index 0000000..1011f40
--- /dev/null
+++ b/src/gatling/scala/base/BaseSimulation.scala
@@ -0,0 +1,26 @@
+package base
+
+import io.gatling.core.Predef._
+import io.gatling.http.Predef._
+import io.gatling.http.protocol.HttpProtocolBuilder
+
+/**
+ * Base class for all simulations.
+ *
+ * Reads runtime configuration from JVM system properties set by Gradle:
+ * -Dtarget.baseUrl=... (via -PbaseUrl=... on the Gradle command line)
+ * -Dgatling.authToken=... (via -PauthToken=... or env GATLING_AUTH_TOKEN)
+ */
+abstract class BaseSimulation extends Simulation {
+
+ protected val baseUrl: String =
+ sys.props.getOrElse("target.baseUrl", "http://localhost:8080")
+
+ private val authToken: String =
+ sys.props.getOrElse("gatling.authToken", "")
+
+ protected val httpProtocol: HttpProtocolBuilder = http
+ .baseUrl(baseUrl)
+ .header("Authorization", s"Bearer $authToken")
+ .header("Accept", "application/json")
+}
diff --git a/src/gatling/scala/simulations/SmokeTestSimulation.scala b/src/gatling/scala/simulations/SmokeTestSimulation.scala
new file mode 100644
index 0000000..e37ad42
--- /dev/null
+++ b/src/gatling/scala/simulations/SmokeTestSimulation.scala
@@ -0,0 +1,35 @@
+package simulations
+
+import base.BaseSimulation
+import io.gatling.core.Predef._
+import io.gatling.http.Predef._
+
+/**
+ * Smoke test: verifies the cluster is reachable and the bearer token is accepted.
+ *
+ * Runs a single virtual user that hits GET /healthz and asserts:
+ * - HTTP 200
+ * - Response time under 2 000 ms
+ *
+ * Use this as a reference when writing new simulations.
+ *
+ * Run:
+ * ./gradlew gatlingRun -PbaseUrl=http:// -PauthToken=
+ */
+class SmokeTestSimulation extends BaseSimulation {
+
+ private val healthzPath: String =
+ sys.props.getOrElse("healthz.path", "/healthz")
+
+ private val scn = scenario("Smoke Test")
+ .exec(
+ http(s"GET $healthzPath")
+ .get(healthzPath)
+ .check(status.is(200))
+ .check(responseTimeInMillis.lte(2000))
+ )
+
+ setUp(
+ scn.inject(atOnceUsers(1))
+ ).protocols(httpProtocol)
+}