Skip to content

Commit

Permalink
SpringBoot IT Test reproducible when modifying build time jars. (#3579)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Jul 26, 2024
1 parent 8613c8e commit 8b5a93f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,20 @@

import org.kie.kogito.serverless.workflow.parser.ParserContext;
import org.kie.kogito.serverless.workflow.utils.OpenAPIFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.serverlessworkflow.api.Workflow;
import io.serverlessworkflow.api.functions.FunctionDefinition;

public class SpecWorkflowOperationIdFactory extends AbstractWorkflowOperationIdFactory {
public static final String SPEC_PROP_VALUE = "SPEC_TITLE";

private static final Logger logger = LoggerFactory.getLogger(SpecWorkflowOperationIdFactory.class);

@Override
public String getFileName(Workflow workflow, FunctionDefinition function, Optional<ParserContext> context, URI uri, String operation, String service) {
logger.debug("Testing reproducible");
return OpenAPIFactory.getOpenAPI(uri, workflow, function, context).getInfo()
.getTitle();
}
Expand Down
4 changes: 4 additions & 0 deletions springboot/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-serverless-workflow-openapi-common</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-maven-plugin</artifactId>
Expand Down

0 comments on commit 8b5a93f

Please sign in to comment.