From: wr148d Date: Mon, 27 Jun 2022 13:32:27 +0000 (-0400) Subject: [AAI] Update the gatling scripts to have proper structure, pom, and readme X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Ftest-config.git;a=commitdiff_plain;h=8263637ec9d7d5928c56f76817f91940d460a7da [AAI] Update the gatling scripts to have proper structure, pom, and readme Issue-ID: AAI-3505 Signed-off-by: wr148d Change-Id: I031dd436c1fc10d92640937c4a777e653e961926 --- diff --git a/gatling/README.md b/gatling/README.md new file mode 100644 index 0000000..1328131 --- /dev/null +++ b/gatling/README.md @@ -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 index 0000000..1877262 --- /dev/null +++ b/gatling/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + + spring-boot-starter-parent + org.springframework.boot + 1.5.3.RELEASE + + + + com.mycompany.myapp + gatling + 1.0.0-SNAPSHOT + war + Myapp + + + -Djava.security.egd=file:/dev/./urandom -Xmx256m + 2.3.0 + 2.2.4 + + + + + + io.gatling.highcharts + gatling-charts-highcharts + ${gatling.version} + test + + + + gatling:execute + + + io.gatling + gatling-maven-plugin + ${gatling-maven-plugin.version} + + src/test/gatling/conf + src/test/gatling/data + target/gatling/results + src/test/gatling/bodies + src/test/gatling/simulations + + true + + + + + + + diff --git a/gatling/newtenant_valid.json b/gatling/src/test/gatling/bodies/newtenant_valid.json similarity index 100% rename from gatling/newtenant_valid.json rename to gatling/src/test/gatling/bodies/newtenant_valid.json diff --git a/gatling/newvf-module_valid.json b/gatling/src/test/gatling/bodies/newvf-module_valid.json similarity index 100% rename from gatling/newvf-module_valid.json rename to gatling/src/test/gatling/bodies/newvf-module_valid.json diff --git a/gatling/onap-CQ-genericVnfs-fromPserver.json b/gatling/src/test/gatling/bodies/onap-CQ-genericVnfs-fromPserver.json similarity index 100% rename from gatling/onap-CQ-genericVnfs-fromPserver.json rename to gatling/src/test/gatling/bodies/onap-CQ-genericVnfs-fromPserver.json diff --git a/gatling/onap-CQ-getClfiRoadmTailSummary.json b/gatling/src/test/gatling/bodies/onap-CQ-getClfiRoadmTailSummary.json similarity index 100% rename from gatling/onap-CQ-getClfiRoadmTailSummary.json rename to gatling/src/test/gatling/bodies/onap-CQ-getClfiRoadmTailSummary.json diff --git a/gatling/onap-CQ-pserver-zdevice.json b/gatling/src/test/gatling/bodies/onap-CQ-pserver-zdevice.json similarity index 100% rename from gatling/onap-CQ-pserver-zdevice.json rename to gatling/src/test/gatling/bodies/onap-CQ-pserver-zdevice.json diff --git a/gatling/onap-CQ-vlanrange-fromVlantag.json b/gatling/src/test/gatling/bodies/onap-CQ-vlanrange-fromVlantag.json similarity index 100% rename from gatling/onap-CQ-vlanrange-fromVlantag.json rename to gatling/src/test/gatling/bodies/onap-CQ-vlanrange-fromVlantag.json diff --git a/gatling/onap-CQ-vrfs-fromVlantag.json b/gatling/src/test/gatling/bodies/onap-CQ-vrfs-fromVlantag.json similarity index 100% rename from gatling/onap-CQ-vrfs-fromVlantag.json rename to gatling/src/test/gatling/bodies/onap-CQ-vrfs-fromVlantag.json diff --git a/gatling/onap-CQ-zPnfs-fromPnf.json b/gatling/src/test/gatling/bodies/onap-CQ-zPnfs-fromPnf.json similarity index 100% rename from gatling/onap-CQ-zPnfs-fromPnf.json rename to gatling/src/test/gatling/bodies/onap-CQ-zPnfs-fromPnf.json diff --git a/gatling/onap-DSL1.json b/gatling/src/test/gatling/bodies/onap-DSL1.json similarity index 100% rename from gatling/onap-DSL1.json rename to gatling/src/test/gatling/bodies/onap-DSL1.json diff --git a/gatling/onap-DSL10.json b/gatling/src/test/gatling/bodies/onap-DSL10.json similarity index 100% rename from gatling/onap-DSL10.json rename to gatling/src/test/gatling/bodies/onap-DSL10.json diff --git a/gatling/onap-DSL2.json b/gatling/src/test/gatling/bodies/onap-DSL2.json similarity index 100% rename from gatling/onap-DSL2.json rename to gatling/src/test/gatling/bodies/onap-DSL2.json diff --git a/gatling/onap-DSL3.json b/gatling/src/test/gatling/bodies/onap-DSL3.json similarity index 100% rename from gatling/onap-DSL3.json rename to gatling/src/test/gatling/bodies/onap-DSL3.json diff --git a/gatling/onap-DSL4.json b/gatling/src/test/gatling/bodies/onap-DSL4.json similarity index 100% rename from gatling/onap-DSL4.json rename to gatling/src/test/gatling/bodies/onap-DSL4.json diff --git a/gatling/onap-DSL5.json b/gatling/src/test/gatling/bodies/onap-DSL5.json similarity index 100% rename from gatling/onap-DSL5.json rename to gatling/src/test/gatling/bodies/onap-DSL5.json diff --git a/gatling/onap-DSL6.json b/gatling/src/test/gatling/bodies/onap-DSL6.json similarity index 100% rename from gatling/onap-DSL6.json rename to gatling/src/test/gatling/bodies/onap-DSL6.json diff --git a/gatling/onap-DSL7.json b/gatling/src/test/gatling/bodies/onap-DSL7.json similarity index 100% rename from gatling/onap-DSL7.json rename to gatling/src/test/gatling/bodies/onap-DSL7.json diff --git a/gatling/onap-DSL8.json b/gatling/src/test/gatling/bodies/onap-DSL8.json similarity index 100% rename from gatling/onap-DSL8.json rename to gatling/src/test/gatling/bodies/onap-DSL8.json diff --git a/gatling/onap-DSL9.json b/gatling/src/test/gatling/bodies/onap-DSL9.json similarity index 100% rename from gatling/onap-DSL9.json rename to gatling/src/test/gatling/bodies/onap-DSL9.json diff --git a/gatling/onap-patch-bulk-single-tx.json b/gatling/src/test/gatling/bodies/onap-patch-bulk-single-tx.json similarity index 100% rename from gatling/onap-patch-bulk-single-tx.json rename to gatling/src/test/gatling/bodies/onap-patch-bulk-single-tx.json diff --git a/gatling/onapLOB.csv b/gatling/src/test/gatling/bodies/onapLOB.csv similarity index 100% rename from gatling/onapLOB.csv rename to gatling/src/test/gatling/bodies/onapLOB.csv diff --git a/gatling/onapbulk-single-tx_putPServerVServer.json b/gatling/src/test/gatling/bodies/onapbulk-single-tx_putPServerVServer.json similarity index 100% rename from gatling/onapbulk-single-tx_putPServerVServer.json rename to gatling/src/test/gatling/bodies/onapbulk-single-tx_putPServerVServer.json diff --git a/gatling/onapcloudregions.csv b/gatling/src/test/gatling/bodies/onapcloudregions.csv similarity index 100% rename from gatling/onapcloudregions.csv rename to gatling/src/test/gatling/bodies/onapcloudregions.csv diff --git a/gatling/onapcomplexes.csv b/gatling/src/test/gatling/bodies/onapcomplexes.csv similarity index 100% rename from gatling/onapcomplexes.csv rename to gatling/src/test/gatling/bodies/onapcomplexes.csv diff --git a/gatling/onapconfigurations.csv b/gatling/src/test/gatling/bodies/onapconfigurations.csv similarity index 100% rename from gatling/onapconfigurations.csv rename to gatling/src/test/gatling/bodies/onapconfigurations.csv diff --git a/gatling/onapcustomers.csv b/gatling/src/test/gatling/bodies/onapcustomers.csv similarity index 100% rename from gatling/onapcustomers.csv rename to gatling/src/test/gatling/bodies/onapcustomers.csv diff --git a/gatling/onaploglinks.csv b/gatling/src/test/gatling/bodies/onaploglinks.csv similarity index 100% rename from gatling/onaploglinks.csv rename to gatling/src/test/gatling/bodies/onaploglinks.csv diff --git a/gatling/onapowning_entity.csv b/gatling/src/test/gatling/bodies/onapowning_entity.csv similarity index 100% rename from gatling/onapowning_entity.csv rename to gatling/src/test/gatling/bodies/onapowning_entity.csv diff --git a/gatling/onapplatform.csv b/gatling/src/test/gatling/bodies/onapplatform.csv similarity index 100% rename from gatling/onapplatform.csv rename to gatling/src/test/gatling/bodies/onapplatform.csv diff --git a/gatling/onappnfs.csv b/gatling/src/test/gatling/bodies/onappnfs.csv similarity index 100% rename from gatling/onappnfs.csv rename to gatling/src/test/gatling/bodies/onappnfs.csv diff --git a/gatling/onapproject.csv b/gatling/src/test/gatling/bodies/onapproject.csv similarity index 100% rename from gatling/onapproject.csv rename to gatling/src/test/gatling/bodies/onapproject.csv diff --git a/gatling/onappservers.csv b/gatling/src/test/gatling/bodies/onappservers.csv similarity index 100% rename from gatling/onappservers.csv rename to gatling/src/test/gatling/bodies/onappservers.csv diff --git a/gatling/onapserviceinstance.csv b/gatling/src/test/gatling/bodies/onapserviceinstance.csv similarity index 100% rename from gatling/onapserviceinstance.csv rename to gatling/src/test/gatling/bodies/onapserviceinstance.csv diff --git a/gatling/onaptenants.csv b/gatling/src/test/gatling/bodies/onaptenants.csv similarity index 100% rename from gatling/onaptenants.csv rename to gatling/src/test/gatling/bodies/onaptenants.csv diff --git a/gatling/onapvf-modules.csv b/gatling/src/test/gatling/bodies/onapvf-modules.csv similarity index 100% rename from gatling/onapvf-modules.csv rename to gatling/src/test/gatling/bodies/onapvf-modules.csv diff --git a/gatling/onapvnfcs.csv b/gatling/src/test/gatling/bodies/onapvnfcs.csv similarity index 100% rename from gatling/onapvnfcs.csv rename to gatling/src/test/gatling/bodies/onapvnfcs.csv diff --git a/gatling/onapvnfs.csv b/gatling/src/test/gatling/bodies/onapvnfs.csv similarity index 100% rename from gatling/onapvnfs.csv rename to gatling/src/test/gatling/bodies/onapvnfs.csv diff --git a/gatling/patch-tenant.json b/gatling/src/test/gatling/bodies/patch-tenant.json similarity index 100% rename from gatling/patch-tenant.json rename to gatling/src/test/gatling/bodies/patch-tenant.json diff --git a/gatling/patch-vf-module.json b/gatling/src/test/gatling/bodies/patch-vf-module.json similarity index 100% rename from gatling/patch-vf-module.json rename to gatling/src/test/gatling/bodies/patch-vf-module.json diff --git a/gatling/Gatling_conf_file b/gatling/src/test/gatling/conf/Gatling_conf_file similarity index 99% rename from gatling/Gatling_conf_file rename to gatling/src/test/gatling/conf/Gatling_conf_file index bd32c32..a5c1533 100644 --- a/gatling/Gatling_conf_file +++ b/gatling/src/test/gatling/conf/Gatling_conf_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) diff --git a/gatling/ONAP Baseline.sh b/gatling/src/test/gatling/scripts/ONAP Baseline.sh similarity index 100% rename from gatling/ONAP Baseline.sh rename to gatling/src/test/gatling/scripts/ONAP Baseline.sh diff --git a/gatling/ONAP Single API.sh b/gatling/src/test/gatling/scripts/ONAP Single API.sh similarity index 100% rename from gatling/ONAP Single API.sh rename to gatling/src/test/gatling/scripts/ONAP Single API.sh diff --git a/gatling/ONAP Stress.sh b/gatling/src/test/gatling/scripts/ONAP Stress.sh similarity index 100% rename from gatling/ONAP Stress.sh rename to gatling/src/test/gatling/scripts/ONAP Stress.sh diff --git a/gatling/ONAP Baseline 2022.scala b/gatling/src/test/gatling/simulations/ONAP Baseline 2022.scala similarity index 100% rename from gatling/ONAP Baseline 2022.scala rename to gatling/src/test/gatling/simulations/ONAP Baseline 2022.scala diff --git a/gatling/ONAP Stress 2022.scala b/gatling/src/test/gatling/simulations/ONAP Stress 2022.scala similarity index 100% rename from gatling/ONAP Stress 2022.scala rename to gatling/src/test/gatling/simulations/ONAP Stress 2022.scala diff --git a/gatling/ONAP single API 2022.scala b/gatling/src/test/gatling/simulations/ONAP single API 2022.scala similarity index 100% rename from gatling/ONAP single API 2022.scala rename to gatling/src/test/gatling/simulations/ONAP single API 2022.scala