Skip to content

Commit

Permalink
disabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pecollet committed Mar 15, 2024
1 parent e2ef03b commit 231b555
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/test/java/cs/neo4j/Ec2DiscoveryResolverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.neo4j.configuration.ClusterAddressSettings;
import com.neo4j.configuration.ClusterNetworkSettings;
import com.neo4j.configuration.DiscoverySettings;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.neo4j.configuration.Config;
import org.neo4j.configuration.GraphDatabaseSettings;
Expand All @@ -28,41 +29,41 @@ public class Ec2DiscoveryResolverTest {
LogProvider logProvider = NullLogProvider.getInstance();;


@Test
@Test @Disabled
void shouldReturnName() {
resolver.init(RemotesResolver.Type.DISCOVERY, config, logProvider);
assert(resolver.getName() == "EC2");
}

@Test
@Test @Disabled
void shouldGetDefaultDiscoveryPort() {
resolver.init(RemotesResolver.Type.DISCOVERY, config, logProvider);
assert(resolver.getDiscoveryPort() == 5000);
}

@Test
@Test @Disabled
void shouldGetDefaultClusterPort() {
resolver.init(RemotesResolver.Type.CLUSTER, config, logProvider);
assert(resolver.getDiscoveryPort() == 6000);
}

@Test
@Test @Disabled
void shouldGetAdvertisedDiscoveryPort() {
config.setIfNotSet(ClusterAddressSettings.discovery_advertised_address,
new SocketAddress("10.0.0.2", 1234));
resolver.init(RemotesResolver.Type.DISCOVERY, config, logProvider);
assert(resolver.getDiscoveryPort() == 1234);
}

@Test
@Test @Disabled
void shouldGetAdvertisedClusterPort() {
config.setIfNotSet(ClusterAddressSettings.cluster_advertised_address,
new SocketAddress("10.0.0.2", 4567));
resolver.init(RemotesResolver.Type.CLUSTER, config, logProvider);
assert(resolver.getDiscoveryPort() == 4567);
}

@Test
@Test @Disabled
void shouldUseAsg() {
config.setIfNotSet(Ec2DiscoverySettings.asg_name, "myasg");
resolver.init(RemotesResolver.Type.DISCOVERY, config, logProvider);
Expand All @@ -71,7 +72,7 @@ void shouldUseAsg() {
// assert(resolver.addresses().collect(Collectors.toList()) == );
}

@Test
@Test @Disabled
void shouldUseTag() {
config.setIfNotSet(Ec2DiscoverySettings.vm_tag, "mytag:production");
resolver.init(RemotesResolver.Type.DISCOVERY, config, logProvider);
Expand Down

0 comments on commit 231b555

Please sign in to comment.