testing docker jenkins
This commit is contained in:
78
.idea/workspace.xml
generated
78
.idea/workspace.xml
generated
@@ -23,9 +23,10 @@
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_09_09_2020_11_06__Default_Changelist_.xml" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/logback.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/logback.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/docker/Dockerfile" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/docker-compose.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/docker/docker-compose.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/generated-sources/annotations/com/release11/klaus/mappers/MockedMessageMapperImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/target/generated-sources/annotations/com/release11/klaus/mappers/MockedMessageMapperImpl.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -54,6 +55,7 @@
|
||||
<option name="generalSettings">
|
||||
<MavenGeneralSettings>
|
||||
<option name="mavenHome" value="C:\Users\rafzu\.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3" />
|
||||
<option name="usePluginRegistry" value="true" />
|
||||
</MavenGeneralSettings>
|
||||
</option>
|
||||
</component>
|
||||
@@ -75,7 +77,7 @@
|
||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="restartRequiresConfirmation" value="false" />
|
||||
<property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.annotationProcessors" />
|
||||
<property name="settings.editor.selected.configurable" value="MavenSettings" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="MoveFile.RECENT_KEYS">
|
||||
@@ -492,21 +494,28 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1600702429235</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00043" summary="- finishing etrack - new buttons for main page - swagger">
|
||||
<created>1600761911381</created>
|
||||
<task id="LOCAL-00043" summary="KT in README.md">
|
||||
<created>1600781467635</created>
|
||||
<option name="number" value="00043" />
|
||||
<option name="presentableId" value="LOCAL-00043" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1600761911381</updated>
|
||||
<updated>1600781467635</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00044" summary="typo">
|
||||
<created>1600761961915</created>
|
||||
<task id="LOCAL-00044" summary="fabric8">
|
||||
<created>1600868918127</created>
|
||||
<option name="number" value="00044" />
|
||||
<option name="presentableId" value="LOCAL-00044" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1600761961915</updated>
|
||||
<updated>1600868918127</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="45" />
|
||||
<task id="LOCAL-00045" summary="updating Dockerfile, adding fabric8">
|
||||
<created>1601021813429</created>
|
||||
<option name="number" value="00045" />
|
||||
<option name="presentableId" value="LOCAL-00045" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1601021813429</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="46" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="UnknownFeatures">
|
||||
@@ -526,7 +535,6 @@
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
||||
<MESSAGE value="Refactoring: - add new headers form - global Model Attributes" />
|
||||
<MESSAGE value="adding remove button for httpHeaders form" />
|
||||
<MESSAGE value="fix for null headers" />
|
||||
<MESSAGE value="Refactoring: - splitting and renaming MockedResponseDto.class into MockedMessageDto and MockedMessage - cleaning pom - adding mapStruct - adding new operation; getAllMockedMessages" />
|
||||
@@ -549,11 +557,16 @@
|
||||
<MESSAGE value="js fix sort paggination, show body for etrack" />
|
||||
<MESSAGE value="changing events describtion" />
|
||||
<MESSAGE value="swagger" />
|
||||
<MESSAGE value="- finishing etrack - new buttons for main page - swagger" />
|
||||
<MESSAGE value="typo" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="typo" />
|
||||
<MESSAGE value="KT in README.md" />
|
||||
<MESSAGE value="fabric8" />
|
||||
<MESSAGE value="updating Dockerfile, adding fabric8" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="updating Dockerfile, adding fabric8" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="904" y="236" key="#Notifications" timestamp="1600868491636">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="904" y="236" key="#Notifications/0.0.1536.824@0.0.1536.824" timestamp="1600868491636" />
|
||||
<state x="574" y="128" key="#com.intellij.ide.util.MemberChooser" timestamp="1599641773245">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
@@ -576,38 +589,38 @@
|
||||
</state>
|
||||
<state x="499" y="159" key="#com.intellij.refactoring.typeMigration.ui.FailedConversionsDialog/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1599721825830" />
|
||||
<state x="499" y="159" key="#com.intellij.refactoring.typeMigration.ui.FailedConversionsDialog/0.0.1536.824@0.0.1536.824" timestamp="1598966629552" />
|
||||
<state x="549" y="167" key="FileChooserDialogImpl" timestamp="1599811504031">
|
||||
<state x="549" y="167" key="FileChooserDialogImpl" timestamp="1600863323741">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="549" y="167" key="FileChooserDialogImpl/0.0.1536.824@0.0.1536.824" timestamp="1599811504031" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.bottom" timestamp="1600711795274">
|
||||
<state x="549" y="167" key="FileChooserDialogImpl/0.0.1536.824@0.0.1536.824" timestamp="1600863323741" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.bottom" timestamp="1600936186950">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1877" height="239" key="GridCell.Tab.0.bottom/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275797041" />
|
||||
<state width="1493" height="71" key="GridCell.Tab.0.bottom/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350133448" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.bottom/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600936186950" />
|
||||
<state width="1877" height="71" key="GridCell.Tab.0.bottom/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351762712" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1600711795274" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.center" timestamp="1600711795274">
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1600868546729" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.center" timestamp="1600936186946">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1877" height="239" key="GridCell.Tab.0.center/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275797041" />
|
||||
<state width="1493" height="71" key="GridCell.Tab.0.center/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350133447" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.center/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600936186946" />
|
||||
<state width="1877" height="71" key="GridCell.Tab.0.center/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351762712" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1600711795274" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.left" timestamp="1600711795274">
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1600868546728" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.left" timestamp="1600936186907">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1877" height="239" key="GridCell.Tab.0.left/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275797041" />
|
||||
<state width="1493" height="71" key="GridCell.Tab.0.left/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350133447" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.left/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600936186907" />
|
||||
<state width="1877" height="71" key="GridCell.Tab.0.left/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351762711" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1600711795274" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.right" timestamp="1600711795274">
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1600868546728" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.right" timestamp="1600936186947">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state width="1877" height="239" key="GridCell.Tab.0.right/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275797041" />
|
||||
<state width="1493" height="71" key="GridCell.Tab.0.right/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350133448" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.right/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600936186947" />
|
||||
<state width="1877" height="71" key="GridCell.Tab.0.right/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351762712" />
|
||||
<state width="724" height="36" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1600711795274" />
|
||||
<state width="1493" height="36" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1600868546729" />
|
||||
<state width="1493" height="261" key="GridCell.Tab.1.bottom" timestamp="1600697207730">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
@@ -640,17 +653,18 @@
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="591" y="115" key="RollbackChangesDialog/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600352883672" />
|
||||
<state x="277" y="57" key="SettingsEditor" timestamp="1600691411296">
|
||||
<state x="277" y="57" key="SettingsEditor" timestamp="1600935670743">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1600691411296" />
|
||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1600761963534">
|
||||
<state x="277" y="57" key="SettingsEditor/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600935670743" />
|
||||
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1600868466042" />
|
||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1601021815603">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
<state x="451" y="183" key="Vcs.Push.Dialog.v2/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275760386" />
|
||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350277680" />
|
||||
<state x="2371" y="183" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351824385" />
|
||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1600761963534" />
|
||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1601021815603" />
|
||||
<state x="478" y="145" width="579" height="592" key="find.popup" timestamp="1599656923861">
|
||||
<screen x="0" y="0" width="1536" height="824" />
|
||||
</state>
|
||||
|
||||
10
Klaus.iml
10
Klaus.iml
@@ -49,6 +49,11 @@
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-configuration-processor:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.glassfish:jakarta.el:3.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.1.5.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.3.1.Final" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.3.1.RELEASE" level="project" />
|
||||
@@ -83,11 +88,6 @@
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.2.7.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.16.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.glassfish:jakarta.el:3.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.1.5.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.3.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.3.1.RELEASE" level="project" />
|
||||
|
||||
21
README.md
21
README.md
@@ -5,10 +5,27 @@ Mockup service for middleware testing
|
||||
|
||||
Available scripts:
|
||||
|
||||
### docker-compose up -d --build
|
||||
|
||||
#### docker-compose up -d --build
|
||||
Builds and launches Redis service and the application. Performs unit testing on the code and run the application.
|
||||
|
||||
#### docker exec -it mockedservices_redis-server redis-cli
|
||||
Attach to the running local redis server and open a redis client.
|
||||
|
||||
Useful redis-cli commands:
|
||||
###### KEYS *
|
||||
Show all keys in the db.
|
||||
###### TYPE key
|
||||
Show key type.
|
||||
###### LRANGE key start stop
|
||||
Display elements from the list.
|
||||
###### LLEN key
|
||||
Display list length.
|
||||
###### SMEMBERS key
|
||||
Display elements from hashSet.
|
||||
Logs can be found in lists with names logstash_yyyy-mm-dd.
|
||||
|
||||
Plugins:
|
||||
|
||||
settings -> plugins -> install lombok plugin
|
||||
|
||||
settings -> annotation processors -> enable annotation processing
|
||||
46
pom.xml
46
pom.xml
@@ -20,6 +20,10 @@
|
||||
<logback-redis-appender.version>1.1.6</logback-redis-appender.version>
|
||||
<assertj.version>3.16.1</assertj.version>
|
||||
<mapstruct.version>1.3.1.Final</mapstruct.version>
|
||||
<docker.image.prefix>Release11</docker.image.prefix>
|
||||
<docker.image.name>${project.artifactId}</docker.image.name>
|
||||
<springfox-swagger2.version>2.7.0</springfox-swagger2.version>
|
||||
<springfox-swagger-ui.version>2.7.0</springfox-swagger-ui.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -46,6 +50,10 @@
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
@@ -67,10 +75,6 @@
|
||||
<version>${assertj.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
@@ -88,12 +92,12 @@
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
<version>2.7.0</version>
|
||||
<version>${springfox-swagger2.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>2.7.0</version>
|
||||
<version>${springfox-swagger-ui.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
@@ -102,6 +106,12 @@
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<layers>
|
||||
<enabled>true</enabled>
|
||||
<includeLayerTools>true</includeLayerTools>
|
||||
</layers>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@@ -124,6 +134,30 @@
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>0.34.0</version>
|
||||
<configuration>
|
||||
<verbose>true</verbose>
|
||||
<images>
|
||||
<image>
|
||||
<name>${docker.image.prefix}/${docker.image.name}</name>
|
||||
<alias>${project.artifactId}</alias>
|
||||
<build>
|
||||
<assembly>
|
||||
<descriptorRef>artifact</descriptorRef>
|
||||
</assembly>
|
||||
<dockerfile>Dockerfile</dockerfile>
|
||||
<tags>
|
||||
<tag>latest</tag>
|
||||
<tag>${project.version}</tag>
|
||||
</tags>
|
||||
</build>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
17
src/main/docker/Dockerfile
Normal file
17
src/main/docker/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM openjdk:14-jre-slim as builder
|
||||
WORKDIR application
|
||||
ADD maven/${project.build.finalName}.jar ${project.build.finalName}.jar
|
||||
RUN java -Djarmode=layertools -jar ${project.build.finalName}.jar extract
|
||||
|
||||
FROM openjdk:14-jre-slim
|
||||
LABEL PROJECT_NAME=${project.artifactId} \
|
||||
PROJECT=${project.id}
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
WORKDIR application
|
||||
COPY --from=builder application/dependencies/ ./
|
||||
COPY --from=builder application/spring-boot-loader/ ./
|
||||
COPY --from=builder application/snapshot-dependencies/ ./
|
||||
COPY --from=builder application/application/ ./
|
||||
ENTRYPOINT["java", "-Djava.security.cgd=file:/dev/./urandom", "org.springframework.boot.loader.JarLauncher"]
|
||||
14
src/main/docker/docker-compose.yml
Normal file
14
src/main/docker/docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: '3'
|
||||
services:
|
||||
redis-server:
|
||||
image: 'redis'
|
||||
restart: "no"
|
||||
klaus:
|
||||
restart: "no"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8097:8097"
|
||||
depends_on:
|
||||
- redis-server
|
||||
@@ -1,2 +1,2 @@
|
||||
redis.host = redis-server
|
||||
redis.host = localhost
|
||||
redis.port = 6379
|
||||
@@ -3,7 +3,8 @@
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||
<!--https://github.com/kmtong/logback-redis-appender-->
|
||||
<appender name="LOGSTASH" class="com.release11.klaus.utilis.RedisAppender">
|
||||
<host>redis-server</host>
|
||||
<host>localhost
|
||||
</host>
|
||||
<port>6379</port>
|
||||
<key>logstash</key>
|
||||
<layout class="ch.qos.logback.classic.PatternLayout">
|
||||
|
||||
@@ -1,22 +1,11 @@
|
||||
package com.release11.klaus.config;
|
||||
|
||||
import com.release11.klaus.mappers.MockedMessageMapper;
|
||||
import com.release11.klaus.model.MockedMessage;
|
||||
import com.release11.klaus.model.MockedMessageDto;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import redis.clients.jedis.JedisPool;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
@SpringBootTest
|
||||
class RedisConfigTest {
|
||||
|
||||
@Autowired
|
||||
MockedMessageMapper mockedMessageMapper;
|
||||
|
||||
@Test
|
||||
void jedisPool() {
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ class MockedResponseRedisRepositoryTest {
|
||||
@Autowired
|
||||
ObjectMapper objectMapper;
|
||||
|
||||
|
||||
@Test
|
||||
void getMockedResponse() throws JsonProcessingException {
|
||||
|
||||
|
||||
BIN
target/Klaus-0.0.1-SNAPSHOT.jar
Normal file
BIN
target/Klaus-0.0.1-SNAPSHOT.jar
Normal file
Binary file not shown.
BIN
target/Klaus-0.0.1-SNAPSHOT.jar.original
Normal file
BIN
target/Klaus-0.0.1-SNAPSHOT.jar.original
Normal file
Binary file not shown.
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2020-09-21T16:25:27+0200",
|
||||
date = "2020-09-25T16:20:03+0200",
|
||||
comments = "version: 1.3.1.Final, compiler: javac, environment: Java 14.0.1 (Oracle Corporation)"
|
||||
)
|
||||
@Component
|
||||
|
||||
3
target/maven-archiver/pom.properties
Normal file
3
target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
artifactId=Klaus
|
||||
groupId=com.release11.klaus
|
||||
version=0.0.1-SNAPSHOT
|
||||
@@ -15,7 +15,9 @@ com\release11\klaus\controller\EventController.class
|
||||
com\release11\klaus\repository\EventRepositoryImpl.class
|
||||
com\release11\klaus\mappers\MockedMessageMapper.class
|
||||
com\release11\klaus\utilis\TrackingClient.class
|
||||
com\release11\klaus\config\SwaggerConfig.class
|
||||
com\release11\klaus\service\EtrackServiceImpl.class
|
||||
com\release11\klaus\controller\MainController.class
|
||||
com\release11\klaus\controller\KlausMvcController.class
|
||||
com\release11\klaus\repository\EventRepository.class
|
||||
com\release11\klaus\service\KlausService.class
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\constraints\HttpCodeValidation.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\config\SwaggerConfig.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\MockedMessageDto.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\EtrackServiceImpl.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\KlausService.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\MainController.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\repository\MockedResponseRepository.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\mappers\MockedMessageMapper.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\MvcExceptionHandler.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\repository\EventRepository.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\MockedMessage.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\constraints\HttpCode.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\Event.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\utilis\TrackingClient.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\config\RedisConfig.java
|
||||
@@ -5,19 +17,9 @@ D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\KlausCon
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\repository\EventRepositoryImpl.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\EventController.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\KlausApplication.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\constraints\HttpCodeValidation.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\EtrackService.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\utilis\BusinessKey.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\MockedMessageDto.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\EtrackServiceImpl.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\KlausMvcController.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\KlausService.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\repository\MockedResponseRepository.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\EventRequestDto.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\utilis\RedisAppender.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\mappers\MockedMessageMapper.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\service\KlausServiceImpl.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\controller\MvcExceptionHandler.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\repository\EventRepository.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\MockedMessage.java
|
||||
D:\git\Szakalakamaka\Klaus\src\main\java\com\release11\klaus\model\constraints\HttpCode.java
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
com\release11\klaus\repository\MockedResponseRedisRepositoryTest.class
|
||||
com\release11\klaus\KlausApplicationTests.class
|
||||
com\release11\klaus\config\RedisConfigTest.class
|
||||
com\release11\klaus\controller\KlausMvcControllerTest.class
|
||||
com\release11\klaus\service\KlausServiceImplTest.class
|
||||
com\release11\klaus\controller\KlausControllerTest.class
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\repository\MockedResponseRepositoryTest.java
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\KlausApplicationTests.java
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\controller\KlausMvcControllerTest.java
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\service\KlausServiceImplTest.java
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\controller\KlausControllerTest.java
|
||||
D:\git\Szakalakamaka\R11-Klaus\src\test\java\com\release11\klaus\config\RedisConfigTest.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\service\KlausServiceImplTest.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\KlausApplicationTests.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\controller\KlausMvcControllerTest.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\controller\KlausControllerTest.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\config\RedisConfigTest.java
|
||||
D:\git\Szakalakamaka\Klaus\src\test\java\com\release11\klaus\repository\MockedResponseRedisRepositoryTest.java
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.release11.klaus.KlausApplicationTests
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 s - in com.release11.klaus.KlausApplicationTests
|
||||
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.release11.klaus.config.RedisConfigTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.717 s - in com.release11.klaus.config.RedisConfigTest
|
||||
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.release11.klaus.controller.KlausControllerTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 s - in com.release11.klaus.controller.KlausControllerTest
|
||||
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.release11.klaus.controller.KlausMvcControllerTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s - in com.release11.klaus.controller.KlausMvcControllerTest
|
||||
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.release11.klaus.repository.MockedResponseRedisRepositoryTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.384 s - in com.release11.klaus.repository.MockedResponseRedisRepositoryTest
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user