<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>3.0.2</version>
+ <version>3.0.3</version>
<relativePath />
</parent>
<groupId>org.o-ran-sc.nonrtric.plt</groupId>
<system>JIRA</system>
<url>https://jira.o-ran-sc.org/</url>
</issueManagement>
-</project>
\ No newline at end of file
+</project>
@Schema(name = "job_result_uri", description = "The target URI of the subscribed information", required = true)
@SerializedName("job_result_uri")
- @JsonProperty(value = "job_result_uri", required = true)
+ @JsonProperty(value = "job_result_uri", required = false)
public String jobResultUri = "";
@Schema(
package org.oransc.ics;
import org.junit.jupiter.api.Test;
+import org.oransc.ics.repository.InfoJobs;
+import org.oransc.ics.repository.InfoTypes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.boot.test.web.server.LocalServerPort;
@LocalServerPort
private int port;
+ @Autowired
+ InfoTypes infoTypes;
+
+ @Autowired
+ InfoJobs infoJobs;
+
@Test
@SuppressWarnings("squid:S2699")
void runMock() throws Exception {
logger.warn("**************** Keeping server alive! " + this.port);
synchronized (this) {
- this.wait();
+ while (true) {
+ System.out.println("**** Types *** ");
+ this.infoTypes.getAllInfoTypes().forEach(type -> System.out.println(" " + type.getId()));
+ System.out.println("**** Jobs *** ");
+ this.infoJobs.getJobs()
+ .forEach(job -> System.out.println(" id: " + job.getId() + ", type:" + job.getType().getId()));
+ Thread.sleep(1000 * 60);
+
+ }
}
}
}