[AAI] Update the gatling scripts to have proper structure, pom, and readme 93/129693/1
authorwr148d <wr148d@att.com>
Mon, 27 Jun 2022 13:32:27 +0000 (09:32 -0400)
committerwr148d <wr148d@att.com>
Mon, 27 Jun 2022 13:32:27 +0000 (09:32 -0400)
Issue-ID: AAI-3505
Signed-off-by: wr148d <wr148d@att.com>
Change-Id: I031dd436c1fc10d92640937c4a777e653e961926

47 files changed:
gatling/README.md [new file with mode: 0644]
gatling/pom.xml [new file with mode: 0644]
gatling/src/test/gatling/bodies/newtenant_valid.json [moved from gatling/newtenant_valid.json with 100% similarity]
gatling/src/test/gatling/bodies/newvf-module_valid.json [moved from gatling/newvf-module_valid.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-genericVnfs-fromPserver.json [moved from gatling/onap-CQ-genericVnfs-fromPserver.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-getClfiRoadmTailSummary.json [moved from gatling/onap-CQ-getClfiRoadmTailSummary.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-pserver-zdevice.json [moved from gatling/onap-CQ-pserver-zdevice.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-vlanrange-fromVlantag.json [moved from gatling/onap-CQ-vlanrange-fromVlantag.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-vrfs-fromVlantag.json [moved from gatling/onap-CQ-vrfs-fromVlantag.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-CQ-zPnfs-fromPnf.json [moved from gatling/onap-CQ-zPnfs-fromPnf.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL1.json [moved from gatling/onap-DSL1.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL10.json [moved from gatling/onap-DSL10.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL2.json [moved from gatling/onap-DSL2.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL3.json [moved from gatling/onap-DSL3.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL4.json [moved from gatling/onap-DSL4.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL5.json [moved from gatling/onap-DSL5.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL6.json [moved from gatling/onap-DSL6.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL7.json [moved from gatling/onap-DSL7.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL8.json [moved from gatling/onap-DSL8.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-DSL9.json [moved from gatling/onap-DSL9.json with 100% similarity]
gatling/src/test/gatling/bodies/onap-patch-bulk-single-tx.json [moved from gatling/onap-patch-bulk-single-tx.json with 100% similarity]
gatling/src/test/gatling/bodies/onapLOB.csv [moved from gatling/onapLOB.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapbulk-single-tx_putPServerVServer.json [moved from gatling/onapbulk-single-tx_putPServerVServer.json with 100% similarity]
gatling/src/test/gatling/bodies/onapcloudregions.csv [moved from gatling/onapcloudregions.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapcomplexes.csv [moved from gatling/onapcomplexes.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapconfigurations.csv [moved from gatling/onapconfigurations.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapcustomers.csv [moved from gatling/onapcustomers.csv with 100% similarity]
gatling/src/test/gatling/bodies/onaploglinks.csv [moved from gatling/onaploglinks.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapowning_entity.csv [moved from gatling/onapowning_entity.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapplatform.csv [moved from gatling/onapplatform.csv with 100% similarity]
gatling/src/test/gatling/bodies/onappnfs.csv [moved from gatling/onappnfs.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapproject.csv [moved from gatling/onapproject.csv with 100% similarity]
gatling/src/test/gatling/bodies/onappservers.csv [moved from gatling/onappservers.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapserviceinstance.csv [moved from gatling/onapserviceinstance.csv with 100% similarity]
gatling/src/test/gatling/bodies/onaptenants.csv [moved from gatling/onaptenants.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapvf-modules.csv [moved from gatling/onapvf-modules.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapvnfcs.csv [moved from gatling/onapvnfcs.csv with 100% similarity]
gatling/src/test/gatling/bodies/onapvnfs.csv [moved from gatling/onapvnfs.csv with 100% similarity]
gatling/src/test/gatling/bodies/patch-tenant.json [moved from gatling/patch-tenant.json with 100% similarity]
gatling/src/test/gatling/bodies/patch-vf-module.json [moved from gatling/patch-vf-module.json with 100% similarity]
gatling/src/test/gatling/conf/Gatling_conf_file [moved from gatling/Gatling_conf_file with 99% similarity]
gatling/src/test/gatling/scripts/ONAP Baseline.sh [moved from gatling/ONAP Baseline.sh with 100% similarity]
gatling/src/test/gatling/scripts/ONAP Single API.sh [moved from gatling/ONAP Single API.sh with 100% similarity]
gatling/src/test/gatling/scripts/ONAP Stress.sh [moved from gatling/ONAP Stress.sh with 100% similarity]
gatling/src/test/gatling/simulations/ONAP Baseline 2022.scala [moved from gatling/ONAP Baseline 2022.scala with 100% similarity]
gatling/src/test/gatling/simulations/ONAP Stress 2022.scala [moved from gatling/ONAP Stress 2022.scala with 100% similarity]
gatling/src/test/gatling/simulations/ONAP single API 2022.scala [moved from gatling/ONAP single API 2022.scala with 100% similarity]

diff --git a/gatling/README.md b/gatling/README.md
new file mode 100644 (file)
index 0000000..1328131
--- /dev/null
@@ -0,0 +1,114 @@
+# myapp
+This application was generated using JHipster 4.4.1, you can find documentation and help at [https://jhipster.github.io/documentation-archive/v4.4.1](https://jhipster.github.io/documentation-archive/v4.4.1).
+
+## Development
+
+Before you can build this project, you must install and configure the following dependencies on your machine:
+
+1. [Node.js][]: We use Node to run a development web server and build the project.
+   Depending on your system, you can install Node either from source or as a pre-packaged bundle.
+
+After installing Node, you should be able to run the following command to install development tools.
+You will only need to run this command when dependencies change in [package.json](package.json).
+
+    npm install
+
+We use [Gulp][] as our build system. Install the Gulp command-line tool globally with:
+
+    npm install -g gulp-cli
+
+Run the following commands in two separate terminals to create a blissful development experience where your browser
+auto-refreshes when files change on your hard drive.
+
+    ./mvnw
+    gulp
+
+[Bower][] is used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
+specifying a newer version in [bower.json](bower.json). You can also run `bower update` and `bower install` to manage dependencies.
+Add the `-h` flag on any command to see how you can use it. For example, `bower update -h`.
+
+For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
+
+
+## Building for production
+
+To optimize the myapp application for production, run:
+
+    ./mvnw -Pprod clean package
+
+This will concatenate and minify the client CSS and JavaScript files. It will also modify `index.html` so it references these new files.
+To ensure everything worked, run:
+
+    java -jar target/*.war
+
+Then navigate to [http://localhost:8080](http://localhost:8080) in your browser.
+
+Refer to [Using JHipster in production][] for more details.
+
+## Testing
+
+To launch your application's tests, run:
+
+    ./mvnw clean test
+
+### Client tests
+
+Unit tests are run by [Karma][] and written with [Jasmine][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:
+
+    gulp test
+
+
+### Other tests
+
+Performance tests are run by [Gatling][] and written in Scala. They're located in [src/test/gatling](src/test/gatling) and can be run with:
+
+    ./mvnw gatling:execute
+
+For more information, refer to the [Running tests page][].
+
+## Using Docker to simplify development (optional)
+
+You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the [src/main/docker](src/main/docker) folder to launch required third party services.
+For example, to start a mysql database in a docker container, run:
+
+    docker-compose -f src/main/docker/mysql.yml up -d
+
+To stop it and remove the container, run:
+
+    docker-compose -f src/main/docker/mysql.yml down
+
+You can also fully dockerize your application and all the services that it depends on.
+To achieve this, first build a docker image of your app by running:
+
+    ./mvnw package -Pprod docker:build
+
+Then run:
+
+    docker-compose -f src/main/docker/app.yml up -d
+
+For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`yo jhipster:docker-compose`), which is able to generate docker configurations for one or several JHipster applications.
+
+## Continuous Integration (optional)
+
+To configure CI for your project, run the ci-cd sub-generator (`yo jhipster:ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.
+
+[JHipster Homepage and latest documentation]: https://jhipster.github.io
+[JHipster 4.4.1 archive]: https://jhipster.github.io/documentation-archive/v4.4.1
+
+[Using JHipster in development]: https://jhipster.github.io/documentation-archive/v4.4.1/development/
+[Using Docker and Docker-Compose]: https://jhipster.github.io/documentation-archive/v4.4.1/docker-compose
+[Using JHipster in production]: https://jhipster.github.io/documentation-archive/v4.4.1/production/
+[Running tests page]: https://jhipster.github.io/documentation-archive/v4.4.1/running-tests/
+[Setting up Continuous Integration]: https://jhipster.github.io/documentation-archive/v4.4.1/setting-up-ci/
+
+[Gatling]: http://gatling.io/
+[Node.js]: https://nodejs.org/
+[Yarn]: https://yarnpkg.org/
+[Bower]: http://bower.io/
+[Gulp]: http://gulpjs.com/
+[BrowserSync]: http://www.browsersync.io/
+[Karma]: http://karma-runner.github.io/
+[Jasmine]: http://jasmine.github.io/2.0/introduction.html
+[Protractor]: https://angular.github.io/protractor/
+[Leaflet]: http://leafletjs.com/
+[DefinitelyTyped]: http://definitelytyped.org/
\ No newline at end of file
diff --git a/gatling/pom.xml b/gatling/pom.xml
new file mode 100644 (file)
index 0000000..1877262
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <groupId>org.springframework.boot</groupId>
+        <version>1.5.3.RELEASE</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>com.mycompany.myapp</groupId>
+    <artifactId>gatling</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+    <name>Myapp</name>
+
+    <properties>
+        <argLine>-Djava.security.egd=file:/dev/./urandom -Xmx256m</argLine>
+        <gatling.version>2.3.0</gatling.version>
+        <gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version>
+    </properties>
+
+
+    <dependencies>
+        <dependency>
+            <groupId>io.gatling.highcharts</groupId>
+            <artifactId>gatling-charts-highcharts</artifactId>
+            <version>${gatling.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <defaultGoal>gatling:execute</defaultGoal>
+        <plugins>
+            <plugin>
+                <groupId>io.gatling</groupId>
+                <artifactId>gatling-maven-plugin</artifactId>
+                <version>${gatling-maven-plugin.version}</version>
+                <configuration>
+                    <configFolder>src/test/gatling/conf</configFolder>
+                    <dataFolder>src/test/gatling/data</dataFolder>
+                    <resultsFolder>target/gatling/results</resultsFolder>
+                    <bodiesFolder>src/test/gatling/bodies</bodiesFolder>
+                    <simulationsFolder>src/test/gatling/simulations</simulationsFolder>
+                    <!--
+                    This will run multiple simulations one by one. Useful when doing Gatling
+                    tests in CI.
+                    -->
+                    <runMultipleSimulations>true</runMultipleSimulations>
+                    <!--
+                    To run only one simulation, you need to disable the "runMultipleSimulations"
+                    above, and write the name of your simulation below.
+                    -->
+                    <!--<simulationClass>WriteTheNameOfYourGatlingSimulation</simulationClass>-->
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
similarity index 99%
rename from gatling/Gatling_conf_file
rename to gatling/src/test/gatling/conf/Gatling_conf_file
index bd32c32..a5c1533 100644 (file)
@@ -106,7 +106,7 @@ gatling {
         }
 
         #proxy {
-            #host = "http://sub.proxy.att.com"                # proxy host (blank means no proxy)
+            #host = ""                # proxy host (blank means no proxy)
             #port = 8080                                      # HTTP port
             #securedPort = -1                                 # HTTPS port (-1 means no HTTPS proxy)
             #username = ""                                   # proxy username (blank means no credentials)