Search in sources :

Example 1 with Property

use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.

the class PropertyTopologyBuilderTest method testBuildFailedForWrongTopologyProperty.

@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongTopologyProperty() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty(new Property("topology.miss_prop", "value"));
    propertyTopologyBuilder.build();
}
Also used : Property(org.apache.knox.gateway.topology.builder.property.Property) Test(org.junit.Test)

Example 2 with Property

use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.

the class PropertyTopologyBuilderTest method testBuildFailedForWrongProviderToken1.

@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProviderToken1() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty(new Property("topology.gateway.provider", "value"));
    propertyTopologyBuilder.build();
}
Also used : Property(org.apache.knox.gateway.topology.builder.property.Property) Test(org.junit.Test)

Example 3 with Property

use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.

the class PropertyTopologyBuilderTest method testBuildFailedForWrongProperty.

@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProperty() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty(new Property("miss_prop", "value"));
    propertyTopologyBuilder.build();
}
Also used : Property(org.apache.knox.gateway.topology.builder.property.Property) Test(org.junit.Test)

Example 4 with Property

use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.

the class PropertyTopologyBuilderTest method testBuildFailedForWrongGatewayToken.

@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongGatewayToken() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty(new Property("topology.gateway.miss_prop", "value"));
    propertyTopologyBuilder.build();
}
Also used : Property(org.apache.knox.gateway.topology.builder.property.Property) Test(org.junit.Test)

Example 5 with Property

use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.

the class PropertyTopologyBuilderTest method testBuildFailedForWrongServiceProperty.

@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongServiceProperty() {
    PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
    propertyTopologyBuilder.addProperty(new Property("topology.gateway.service.WEBHDFS..miss_prop", "value"));
    propertyTopologyBuilder.build();
}
Also used : Property(org.apache.knox.gateway.topology.builder.property.Property) Test(org.junit.Test)

Aggregations

Property (org.apache.knox.gateway.topology.builder.property.Property)18 Test (org.junit.Test)17 Topology (org.apache.knox.gateway.topology.Topology)4 InterpretException (org.apache.knox.gateway.topology.builder.property.interpreter.InterpretException)1 PropertyInterpreter (org.apache.knox.gateway.topology.builder.property.interpreter.PropertyInterpreter)1