Commit 9f01d12b authored by Matija Obreza's avatar Matija Obreza

GLIS target update also returns "msg"

parent 880f9763
......@@ -20,6 +20,8 @@ import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import java.util.List;
......@@ -60,6 +62,10 @@ public class GenesysGlisTest extends TestEnvironmentAPITest {
// test that all OK targets have the link
for (UpdatedTarget updatedTarget : updatedTargets) {
if ("KO".equals(updatedTarget.getResult())) {
assertThat(updatedTarget.getMsg(), not(nullValue()));
}
List<PGRFA> lookups = api.search(0, 1, null, updatedTarget.getDoi(), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null);
assertThat(lookups, hasSize(1));
......
......@@ -1033,12 +1033,14 @@ definitions:
# GLIS response to updating targets
UpdatedTarget:
type: object
type: object
properties:
doi:
type: string
type: string
result:
type: string
type: string
msg:
type: string
# Model for PGRFA update
GLISUpdate:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment