Browse Source
Change endpoint in hack test script, these should be moved to unit testsrefactor_future_hack
10 changed files with 106 additions and 20 deletions
@ -1,4 +1,4 @@
|
||||
#!/bin/bash |
||||
|
||||
curl -H 'Content-Type: application/json' -d '@sample-pssaas.json' localhost:8080/Scan/PSSaaS -vv |
||||
curl -H 'Content-Type: application/json' -d '@sample-pssaas-bad.json' localhost:8080/Scan/PSSaaS -vv |
||||
curl -H 'Content-Type: application/json' -d '@sample-pssaas.json' localhost:8080/api/v1a/Scan/PSSaaS -vv |
||||
curl -H 'Content-Type: application/json' -d '@sample-pssaas-bad.json' localhost:8080/api/v1a/Scan/PSSaaS -vv |
||||
|
||||
@ -0,0 +1,17 @@
|
||||
package com.redhat.pctsec.model.api.request; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
||||
|
||||
import java.net.URI; |
||||
|
||||
@JsonDeserialize(using = ComponentJsonDeserializer.class) |
||||
public interface Component { |
||||
|
||||
public String getType(); |
||||
|
||||
public String getBuildId(); |
||||
|
||||
public URI getRepo(); |
||||
|
||||
public String getRef(); |
||||
} |
||||
Loading…
Reference in new issue