package cz.moneta.test.system.wso2;

import cz.moneta.test.dsl.Harness;
import cz.moneta.test.harness.annotations.Environment;
import cz.moneta.test.harness.annotations.TestCase;
import cz.moneta.test.harness.annotations.TestScenario;
import cz.moneta.test.harness.endpoints.wso2.Wso2GatewayEndpoint;
import org.junit.jupiter.api.Assertions;

@TestScenario(name = "retrieve client secret from vault")
public class ClientSecretTest {

    @TestCase(name = "retrieve client secret from vault", environments = { Environment.TST1, Environment.PPE } )
    public void getClientSecret(Harness harness) {
        String secret = harness.getEndpoint(Wso2GatewayEndpoint.class).getClientSecret("CID_UFO");
        Assertions.assertNotNull(secret);
    }
}
