Added configuration test

This commit is contained in:
luca.frosini 2023-07-19 14:04:58 +02:00
parent 2d7c8b5307
commit 9b43719b63
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package org.gcube.grsf.publisher.configuration;
import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
import org.gcube.grsf.publisher.ContextTest;
import org.gcube.grsf.publisher.configuration.isproxies.impl.GRSFFacetBasedISConfigurationProxy;
import org.gcube.grsf.publisher.configuration.isproxies.impl.GRSFFacetBasedISConfigurationProxyFactory;
import org.junit.Test;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ConfigurationTest extends ContextTest {
@Test
public void testFacetBasedConf() throws Exception {
String context = SecretManagerProvider.instance.get().getContext();
GRSFFacetBasedISConfigurationProxyFactory fbigcpf = new GRSFFacetBasedISConfigurationProxyFactory();
GRSFFacetBasedISConfigurationProxy facetBasedISConfigurationProxy = fbigcpf.getInstance(context);
facetBasedISConfigurationProxy.installQueryTemplate();
}
}