Skip to content

Commit

Permalink
Configure page
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanow committed Sep 12, 2024
1 parent 8e6812b commit 3ebbcaa
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 41 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,10 @@ curl --location --request POST 'https://romanowalex.eu.auth0.com/oauth/token' \
```shell
$ brew install k6

$ $ docker compose \
$ docker compose \
-f docker-compose.yml \
-f docker-compose.tracing.yml \
-f docker-compose.monitoring.yml \
-f docker-compose.load-testing.yml \
up -d --wait

$ K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT=report.html \
Expand Down
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
plugins {
id "idea"
id "java-library"
id "org.jetbrains.kotlin.jvm" version "1.9.22"
id "org.jetbrains.kotlin.kapt" version "1.9.22" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.9.22" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.9.22" apply false
id "org.jetbrains.kotlin.jvm" version "1.9.25"
id "org.jetbrains.kotlin.kapt" version "1.9.25" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.9.25" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.9.25" apply false
id "org.jlleitschuh.gradle.ktlint" version "12.1.1" apply false
id "org.springframework.boot" version "3.2.8" apply false
id "com.gorylenko.gradle-git-properties" version "2.4.1" apply false
id "com.adarshr.test-logger" version "4.0.0" apply false
id "io.spring.dependency-management" version "1.1.3"
id "io.spring.dependency-management" version "1.1.6"
}

ext {
kotlinVersion = "1.9.22"
kotlinVersion = "1.9.25"
springBootVersion = "3.2.8"
springCircuitBreakerVersion = "3.1.1"
validationApiVersion = "2.0.1.Final"
gsonVersion = "2.8.5"
jwtVersion = "4.4.0"
openApiVersion = "2.1.0"
openApiVersion = "2.6.0"
logbookVersion = "2.16.0"
logstashEncoderVersion = "7.3"
logstashEncoderVersion = "7.4"
postgresContainerVersion = "1.19.0"
}

Expand Down
19 changes: 0 additions & 19 deletions docker-compose.load-testing.yml

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.logging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
elastic:
image: elasticsearch:8.12.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
prometheus:
image: prom/prometheus:v2.52.0
Expand Down
1 change: 0 additions & 1 deletion docker-compose.tracing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
jaeger:
image: "jaegertracing/all-in-one:1.57"
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
postgres:
image: postgres:15
Expand Down
24 changes: 16 additions & 8 deletions tests/postman/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,16 +457,18 @@
"type": "text/javascript",
"exec": [
"const moment = require(\"moment\")",
"const crypto = require(\"crypto-js\")",
"const lodash = require(\"lodash\")",
"const token = pm.environment.get(\"token\")",
"",
"var expire = true",
"if (token) {",
" const payload = token.split(\".\")[1]",
" const json = JSON.parse(CryptoJS.enc.Base64.parse(payload).toString(CryptoJS.enc.Utf8))",
" const json = JSON.parse(crypto.enc.Base64.parse(payload).toString(crypto.enc.Utf8))",
" expire = moment.unix(json.exp).isBefore(moment())",
"}",
"",
"if (_.isEmpty(token) || expire) {",
"if (lodash.isEmpty(token) || expire) {",
"",
" pm.sendRequest({",
" url: 'https://romanowalex.eu.auth0.com/oauth/token',",
Expand Down Expand Up @@ -948,16 +950,18 @@
"type": "text/javascript",
"exec": [
"const moment = require(\"moment\")",
"const crypto = require(\"crypto-js\")",
"const lodash = require(\"lodash\")",
"const token = pm.environment.get(\"token\")",
"",
"var expire = true",
"if (token) {",
" const payload = token.split(\".\")[1]",
" const json = JSON.parse(CryptoJS.enc.Base64.parse(payload).toString(CryptoJS.enc.Utf8))",
" const json = JSON.parse(crypto.enc.Base64.parse(payload).toString(crypto.enc.Utf8))",
" expire = moment.unix(json.exp).isBefore(moment())",
"}",
"",
"if (_.isEmpty(token) || expire) {",
"if (lodash.isEmpty(token) || expire) {",
"",
" pm.sendRequest({",
" url: 'https://romanowalex.eu.auth0.com/oauth/token',",
Expand Down Expand Up @@ -1406,16 +1410,18 @@
"type": "text/javascript",
"exec": [
"const moment = require(\"moment\")",
"const crypto = require(\"crypto-js\")",
"const lodash = require(\"lodash\")",
"const token = pm.environment.get(\"token\")",
"",
"var expire = true",
"if (token) {",
" const payload = token.split(\".\")[1]",
" const json = JSON.parse(CryptoJS.enc.Base64.parse(payload).toString(CryptoJS.enc.Utf8))",
" const json = JSON.parse(crypto.enc.Base64.parse(payload).toString(crypto.enc.Utf8))",
" expire = moment.unix(json.exp).isBefore(moment())",
"}",
"",
"if (_.isEmpty(token) || expire) {",
"if (lodash.isEmpty(token) || expire) {",
"",
" pm.sendRequest({",
" url: 'https://romanowalex.eu.auth0.com/oauth/token',",
Expand Down Expand Up @@ -1787,16 +1793,18 @@
"type": "text/javascript",
"exec": [
"const moment = require(\"moment\")",
"const crypto = require(\"crypto-js\")",
"const lodash = require(\"lodash\")",
"const token = pm.environment.get(\"token\")",
"",
"var expire = true",
"if (token) {",
" const payload = token.split(\".\")[1]",
" const json = JSON.parse(CryptoJS.enc.Base64.parse(payload).toString(CryptoJS.enc.Utf8))",
" const json = JSON.parse(crypto.enc.Base64.parse(payload).toString(crypto.enc.Utf8))",
" expire = moment.unix(json.exp).isBefore(moment())",
"}",
"",
"if (_.isEmpty(token) || expire) {",
"if (lodash.isEmpty(token) || expire) {",
"",
" pm.sendRequest({",
" url: 'https://romanowalex.eu.auth0.com/oauth/token',",
Expand Down

0 comments on commit 3ebbcaa

Please sign in to comment.