Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/featureBranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
push:
branches-ignore:
- 'master'
pull_request:
branches-ignore:
- 'master'
types: [opened, synchronize, reopened]

jobs:
build:
Expand Down Expand Up @@ -37,6 +33,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube --info
run: ./gradlew build jacocoTestReport sonarqube --info


2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.gradle/*
.idea/*
gradle/*
build/*
logs/*
52 changes: 39 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,51 @@
group 'com.shortandprecise.loadgenerator'
version '1.0-SNAPSHOT'
plugins {
id 'java'
id 'jacoco'
id 'org.sonarqube' version '3.0'
}

apply plugin: 'java'
apply plugin: 'application'
group 'com.shortandprecise'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8
sourceCompatibility = '11'
targetCompatibility = '11'

repositories {
mavenCentral()
}

dependencies {
compile 'org.asynchttpclient:async-http-client:2.0.32'
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation 'org.asynchttpclient:async-http-client:2.12.1'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'net.logstash.logback:logstash-logback-encoder:6.4'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3'
implementation 'org.apache.commons:commons-lang3:3.11'

testImplementation 'org.mockito:mockito-core:3.5.15'
testCompile 'org.junit.jupiter:junit-jupiter:5.7.0'
testCompile 'org.eclipse.jetty:jetty-server:9.4.33.v20201020'
}

test {
useJUnitPlatform()
}

run {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
csv.enabled false
xml.destination file("$buildDir/jacoco/test/jacocoTestReport.xml")
}
}

sonarqube {
properties {
property "sonar.projectKey", "rejuan_LoadGenerator"
property "sonar.organization", "rejuan"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.jacoco.reportPath", "$buildDir/jacoco/test.exec"
property "sonar.coverage.jacoco.xmlReportPaths", "$buildDir/jacoco/test/jacocoTestReport.xml"
}
}

Expand All @@ -27,6 +55,4 @@ jar {
'Main-Class': 'com.shortandprecise.App'
)
}
}

mainClassName = 'com.shortandprecise.App'
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
57 changes: 34 additions & 23 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"baseUrl": "http://localhost:8081/",
"requests": [
{
"url": "mockGet",
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Cache-Control": "no-cache"
}
},
{
"url": "mockPost",
"method": "POST",
"body": "{\"key\":\"value\"}",
"headers": {
"Content-Type": "application/json",
"Cache-Control": "no-cache"
}
}
]
}
26 changes: 0 additions & 26 deletions src/main/java/com/shortandprecise/App.java

This file was deleted.

66 changes: 0 additions & 66 deletions src/main/java/com/shortandprecise/ClientGenerator.java

This file was deleted.

Loading