b78466f7e8f22de4b28b8e4e5600f144763aa623
[netvirt.git] / vpnservice / aclservice / impl / src / test / java / org / opendaylight / netvirt / aclservice / tests / AclServiceStatefulIPv6Test.java
1 /*
2  * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netvirt.aclservice.tests;
9
10 import org.junit.Ignore;
11 import org.junit.Rule;
12 import org.junit.rules.MethodRule;
13 import org.opendaylight.genius.datastoreutils.testutils.TestableDataTreeChangeListenerModule;
14 import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig.SecurityGroupMode;
16
17 @Ignore
18 public class AclServiceStatefulIPv6Test extends AclServiceTestBaseIPv6 {
19
20     public @Rule MethodRule guice = new GuiceRule(new AclServiceModule(),
21             new AclServiceTestModule(SecurityGroupMode.Stateful),
22             new TestableDataTreeChangeListenerModule());
23
24     private final FlowEntryObjectsStatefulIPv6 ipv6statefulentries = new FlowEntryObjectsStatefulIPv6();
25
26     @Override
27     void newInterfaceCheck() {
28         assertFlowsInAnyOrder(ipv6statefulentries.expectedFlows(PORT_MAC_1));
29     }
30
31     @Override
32     void newInterfaceWithEtherTypeAclCheck() {
33         assertFlowsInAnyOrder(ipv6statefulentries.etherFlows());
34     }
35
36     @Override
37     public void newInterfaceWithTcpDstAclCheck() {
38         assertFlowsInAnyOrder(ipv6statefulentries.tcpFlows());
39     }
40
41     @Override
42     public void newInterfaceWithUdpDstAclCheck() {
43         assertFlowsInAnyOrder(ipv6statefulentries.udpFlows());
44     }
45
46     @Override
47     public void newInterfaceWithIcmpAclCheck() {
48         assertFlowsInAnyOrder(ipv6statefulentries.icmpFlows());
49     }
50
51     @Override
52     public void newInterfaceWithDstPortRangeCheck() {
53         assertFlowsInAnyOrder(ipv6statefulentries.dstRangeFlows());
54     }
55
56     @Override
57     public void newInterfaceWithDstAllPortsCheck() {
58         assertFlowsInAnyOrder(ipv6statefulentries.dstAllFlows());
59     }
60
61     @Override
62     void newInterfaceWithTwoAclsHavingSameRulesCheck() {
63         assertFlowsInAnyOrder(ipv6statefulentries.icmpFlowsForTwoAclsHavingSameRules());
64     }
65
66     @Override
67     void newInterfaceWithAapIpv4AllCheck() {
68         // Not applicable as it is specific to IPv4 testing
69     }
70
71     @Override
72     void newInterfaceWithAapCheck() {
73         // TODO: To be handled
74
75     }
76
77     @Override
78     void newInterfaceWithMultipleAclCheck() {
79      // Not applicable as it is handled in IPv4 testing
80     }
81 }