package io.quarkus.it.smallrye.config;

import static io.restassured.RestAssured.given;
import static javax.ws.rs.core.Response.Status.OK;
import static org.hamcrest.Matchers.equalTo;

import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
public class ConfigurableSourceTest {
    @Test
    void configurableSource() {
        given()
                .get("/config/{name}", "database.user.naruto")
                .then()
                .statusCode(OK.getStatusCode())
                .body("value", equalTo("uzumaki"));
    }
}
