Skip to content

Commit

Permalink
chore: add deployment descriptor example files
Browse files Browse the repository at this point in the history
  • Loading branch information
notdryft committed Jul 16, 2024
1 parent 5742eb5 commit d571ab5
Show file tree
Hide file tree
Showing 10 changed files with 280 additions and 0 deletions.
54 changes: 54 additions & 0 deletions java/gradle/.gatling/example.package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
# This file is full deployment configuration file example.
# Please note all these configuration fields, or even this file, are optional.

gatling.enterprise.package {
# Consistent deployment using an existing package ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000000"
name = "My package name"
team = "Default team" # or ID with team = "00000000-0000-0000-0000-000000000000"
default {
simulation {
locations = [
{
name: "Europe - Paris",
size: 2,
weight: 30
},
{
name: "AP Pacific - Mumbai",
size: 2,
weight: 70
}
]
parameters {
ignoreDefaults = false
systemProperties {
# System properties names should be surrounded by quotes
# Otherwise, it would be interpreted as HOCON keys
"com.example.prop.1" = "default value from system prop 1"
"com.example.prop.2" = "default value from system prop 2"
}
environmentVariables {
MY_SIMULATION_ENV_VAR_1 = "default value from environment 1"
MY_SIMULATION_ENV_VAR_2 = "default value from environment 2"
}
}
timeWindow {
rampUp = 10 # in seconds
rampDown = 10 # in seconds
}
}
}
simulations = [
{
# Consistent deployment using an existing simulation ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000001"
name = "My simulation name"
# Name of the simulation (i.e.: prefix of the simulation file src/*.gatling.ts)
simulation = "io.gatling.grpc.demo.GreetingSimulation"
}
]
}
2 changes: 2 additions & 0 deletions java/gradle/.gatling/package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See `example.package.conf` for a full deployment configuration file example
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
54 changes: 54 additions & 0 deletions java/maven/.gatling/example.package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
# This file is full deployment configuration file example.
# Please note all these configuration fields, or even this file, are optional.

gatling.enterprise.package {
# Consistent deployment using an existing package ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000000"
name = "My package name"
team = "Default team" # or ID with team = "00000000-0000-0000-0000-000000000000"
default {
simulation {
locations = [
{
name: "Europe - Paris",
size: 2,
weight: 30
},
{
name: "AP Pacific - Mumbai",
size: 2,
weight: 70
}
]
parameters {
ignoreDefaults = false
systemProperties {
# System properties names should be surrounded by quotes
# Otherwise, it would be interpreted as HOCON keys
"com.example.prop.1" = "default value from system prop 1"
"com.example.prop.2" = "default value from system prop 2"
}
environmentVariables {
MY_SIMULATION_ENV_VAR_1 = "default value from environment 1"
MY_SIMULATION_ENV_VAR_2 = "default value from environment 2"
}
}
timeWindow {
rampUp = 10 # in seconds
rampDown = 10 # in seconds
}
}
}
simulations = [
{
# Consistent deployment using an existing simulation ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000001"
name = "My simulation name"
# Name of the simulation (i.e.: prefix of the simulation file src/*.gatling.ts)
simulation = "io.gatling.grpc.demo.GreetingSimulation"
}
]
}
2 changes: 2 additions & 0 deletions java/maven/.gatling/package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See `example.package.conf` for a full deployment configuration file example
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
54 changes: 54 additions & 0 deletions kotlin/gradle/.gatling/example.package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
# This file is full deployment configuration file example.
# Please note all these configuration fields, or even this file, are optional.

gatling.enterprise.package {
# Consistent deployment using an existing package ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000000"
name = "My package name"
team = "Default team" # or ID with team = "00000000-0000-0000-0000-000000000000"
default {
simulation {
locations = [
{
name: "Europe - Paris",
size: 2,
weight: 30
},
{
name: "AP Pacific - Mumbai",
size: 2,
weight: 70
}
]
parameters {
ignoreDefaults = false
systemProperties {
# System properties names should be surrounded by quotes
# Otherwise, it would be interpreted as HOCON keys
"com.example.prop.1" = "default value from system prop 1"
"com.example.prop.2" = "default value from system prop 2"
}
environmentVariables {
MY_SIMULATION_ENV_VAR_1 = "default value from environment 1"
MY_SIMULATION_ENV_VAR_2 = "default value from environment 2"
}
}
timeWindow {
rampUp = 10 # in seconds
rampDown = 10 # in seconds
}
}
}
simulations = [
{
# Consistent deployment using an existing simulation ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000001"
name = "My simulation name"
# Name of the simulation (i.e.: prefix of the simulation file src/*.gatling.ts)
simulation = "io.gatling.grpc.demo.GreetingSimulation"
}
]
}
2 changes: 2 additions & 0 deletions kotlin/gradle/.gatling/package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See `example.package.conf` for a full deployment configuration file example
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
54 changes: 54 additions & 0 deletions kotlin/maven/.gatling/example.package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
# This file is full deployment configuration file example.
# Please note all these configuration fields, or even this file, are optional.

gatling.enterprise.package {
# Consistent deployment using an existing package ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000000"
name = "My package name"
team = "Default team" # or ID with team = "00000000-0000-0000-0000-000000000000"
default {
simulation {
locations = [
{
name: "Europe - Paris",
size: 2,
weight: 30
},
{
name: "AP Pacific - Mumbai",
size: 2,
weight: 70
}
]
parameters {
ignoreDefaults = false
systemProperties {
# System properties names should be surrounded by quotes
# Otherwise, it would be interpreted as HOCON keys
"com.example.prop.1" = "default value from system prop 1"
"com.example.prop.2" = "default value from system prop 2"
}
environmentVariables {
MY_SIMULATION_ENV_VAR_1 = "default value from environment 1"
MY_SIMULATION_ENV_VAR_2 = "default value from environment 2"
}
}
timeWindow {
rampUp = 10 # in seconds
rampDown = 10 # in seconds
}
}
}
simulations = [
{
# Consistent deployment using an existing simulation ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000001"
name = "My simulation name"
# Name of the simulation (i.e.: prefix of the simulation file src/*.gatling.ts)
simulation = "io.gatling.grpc.demo.GreetingSimulation"
}
]
}
2 changes: 2 additions & 0 deletions kotlin/maven/.gatling/package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See `example.package.conf` for a full deployment configuration file example
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
54 changes: 54 additions & 0 deletions scala/sbt/.gatling/example.package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code
# This file is full deployment configuration file example.
# Please note all these configuration fields, or even this file, are optional.

gatling.enterprise.package {
# Consistent deployment using an existing package ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000000"
name = "My package name"
team = "Default team" # or ID with team = "00000000-0000-0000-0000-000000000000"
default {
simulation {
locations = [
{
name: "Europe - Paris",
size: 2,
weight: 30
},
{
name: "AP Pacific - Mumbai",
size: 2,
weight: 70
}
]
parameters {
ignoreDefaults = false
systemProperties {
# System properties names should be surrounded by quotes
# Otherwise, it would be interpreted as HOCON keys
"com.example.prop.1" = "default value from system prop 1"
"com.example.prop.2" = "default value from system prop 2"
}
environmentVariables {
MY_SIMULATION_ENV_VAR_1 = "default value from environment 1"
MY_SIMULATION_ENV_VAR_2 = "default value from environment 2"
}
}
timeWindow {
rampUp = 10 # in seconds
rampDown = 10 # in seconds
}
}
}
simulations = [
{
# Consistent deployment using an existing simulation ID
# https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code/#consistent-deployment-with-id
# id = "00000000-0000-0000-0000-000000000001"
name = "My simulation name"
# Name of the simulation (i.e.: prefix of the simulation file src/*.gatling.ts)
simulation = "io.gatling.grpc.demo.GreetingSimulation"
}
]
}
2 changes: 2 additions & 0 deletions scala/sbt/.gatling/package.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See `example.package.conf` for a full deployment configuration file example
# Learn more about Configuration as Code: https://docs.gatling.io/reference/execute/cloud/user/configuration-as-code

0 comments on commit d571ab5

Please sign in to comment.