Browse Source

Fix typo add swagger-ui

refactor_future_hack
Jonathan Christison 3 years ago
parent
commit
5149a807f3
  1. 4
      pom.xml
  2. 2
      src/main/java/com/redhat/pctsec/model/ScanRequest.java
  3. 3
      src/main/resources/application.properties

4
pom.xml

@ -70,6 +70,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-orm-panache</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>

2
src/main/java/com/redhat/pctsec/model/ScanRequest.java

@ -32,7 +32,7 @@ public class ScanRequest {
{
this.scmurl = new HashMap<>();
this.scmurl.put("repo", repo);
this.scmurl.put("ref", repo);
this.scmurl.put("ref", ref);
}
public void executeScan(){
if(this.brewBuild != null && !this.brewBuild.trim().isEmpty()){

3
src/main/resources/application.properties

@ -21,6 +21,9 @@
#%dev.quarkus.kerberos.keytab-path= HTTP_osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com@IPA.REDHAT.COM.keytab
#%dev.quarkus.kerberos.service-principal-name= HTTP/osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com@IPA.REDHAT.COM
#Always provide swagger ui
quarkus.swagger-ui.always-include=true
%stage.quarkus.openshift.name=osh
%stage.quarkus.openshift.service-account=osh-wrapper-client-sa
%stage.quarkus.openshift.labels.env=stage

Loading…
Cancel
Save