Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATAGO-84853: cema config push resiliency #211

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
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
96 changes: 91 additions & 5 deletions service/application/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.solace.maas</groupId>
Expand All @@ -21,6 +22,7 @@
<jackson.version>2.16.1</jackson.version>
<awaitility.version>4.2.0</awaitility.version>
<dockerfile-maven.version>1.4.13</dockerfile-maven.version>
<swagger-codegen-maven-plugin.version>2.4.43</swagger-codegen-maven-plugin.version>
</properties>
<repositories>
<repository>
Expand Down Expand Up @@ -224,7 +226,7 @@
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>8.0.1.Final</version>
</dependency>
Expand Down Expand Up @@ -304,7 +306,6 @@
<scope>test</scope>
</dependency>


<dependency>
<groupId>com.solacesystems</groupId>
<artifactId>solclientj</artifactId>
Expand All @@ -330,6 +331,32 @@
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>
<!-- Swagger dependencies for compatibility -->
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>2.0.5</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.6.12</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>logging-interceptor</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>io.gsonfire</groupId>
<artifactId>gson-fire</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand All @@ -356,8 +383,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<source>14</source>
<target>14</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
Expand Down Expand Up @@ -387,6 +414,65 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/swagger/src/main/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/swagger/src/test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>${swagger-codegen-maven-plugin.version}</version>
<executions>
<execution>
<id>sempv2-vmr-9.12</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/oas/semp-v2-swagger-config.json</inputSpec>
<language>java</language>
<output>${project.build.directory}/generated-sources/swagger</output>
<invokerPackage>com.solace.client.sempv2</invokerPackage>
<apiPackage>com.solace.client.sempv2.api</apiPackage>
<modelPackage>com.solace.client.sempv2.model</modelPackage>
<configOptions>
<dateLibrary>java8</dateLibrary>
<hideGenerationTimestamp>true</hideGenerationTimestamp>
<sourceFolder>src/main/java</sourceFolder>
<testSourceFolder>src/test/java</testSourceFolder>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add some exclusions on jacoco reports on ep-core PR as well. Please make sure we will pass the line coverage requirements before merging this PR.

</plugins>
</build>
<profiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempAclProfileDeletionRequest {
private String msgVpn;
private String aclProfileName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempAclPublishTopicExceptionDeletionRequest {
private String msgVpn;
private String aclProfileName;
/**
* The topic string to be deleted from the ACL exception list - may include wild cards
*/
private String publishTopic;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempAclSubscribeTopicExceptionDeletionRequest {

private String msgVpn;
private String aclProfileName;
/**
* The topic string to be deleted from the ACL exception list - may include wild cards
*/
private String subscribeTopic;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempAuthorizationGroupDeletionRequest {
private String msgVpn;
private String authorizationGroupName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempClientUsernameDeletionRequest {

private String msgVpn;
private String clientUsername;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.solace.maas.ep.common.model;

public enum SempEntityType {
solaceQueue,
solaceAclProfile,
solaceAclSubscribeTopicException,
solaceAclPublishTopicException,
solaceClientUsername,
solaceAuthorizationGroup,
solaceQueueSubscriptionTopic
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SempQueueDeletionRequest {
private String msgVpn;
private String queueName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.solace.maas.ep.common.model;

import lombok.Builder;
import lombok.Data;

@Builder
@Data
public class SempQueueTopicSubscriptionDeletionRequest {
private String topicName;
private String queueName;
private String msgVpn;
}
Loading
Loading