Open Liberty is a lightweight open framework for building fast and efficient cloud-native Java microservices. Find out more at openliberty.io.
+
+
Eclipse MicroProfile
+
+ The Eclipse MicroProfile project is an open community with the aim of optimizing enterprise Java for a microservices architecture.
+ MicroProfile evolves with guidance from the community.
+
+
+ If you want to share your thoughts, you can post straight to the
+ MicroProfile Google group.
+
+
+ For more information about the features used in this application, see the Open Liberty documentation:
+
+
+
+
+
diff --git a/src/test/resources/dev-test/dev-container/src/test/java/it/io/openliberty/guides/rest/EndpointIT.java b/src/test/resources/dev-test/dev-container/src/test/java/it/io/openliberty/guides/rest/EndpointIT.java
new file mode 100644
index 00000000..c8e98ece
--- /dev/null
+++ b/src/test/resources/dev-test/dev-container/src/test/java/it/io/openliberty/guides/rest/EndpointIT.java
@@ -0,0 +1,49 @@
+// tag::copyright[]
+/*******************************************************************************
+ * Copyright (c) 2017, 2022 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - Initial implementation
+ *******************************************************************************/
+// end::copyright[]
+package it.io.openliberty.guides.rest;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
+
+import jakarta.json.JsonObject;
+
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Response;
+
+
+public class EndpointIT {
+
+ @Test
+ public void testGetProperties() {
+ String port = System.getProperty("liberty.test.port");
+ String url = "http://localhost:" + port + "/";
+
+ Client client = ClientBuilder.newClient();
+
+ WebTarget target = client.target(url + "system/properties-new");
+ Response response = target.request().get();
+ JsonObject obj = response.readEntity(JsonObject.class);
+
+ assertEquals(200, response.getStatus(), "Incorrect response code from " + url);
+
+ assertEquals("/opt/ol/wlp/output/defaultServer/",
+ obj.getString("server.output.dir"),
+ "The system property for the server output directory should match "
+ + "the Open Liberty container image.");
+
+ response.close();
+ }
+}