Bug 7725: AAP with prefix 0.0.0.0/0 not supported in ACL
[netvirt.git] / vpnservice / aclservice / impl / src / test / java / org / opendaylight / netvirt / aclservice / tests / AclServiceStatefulTestIPv6.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.Rule;
11 import org.junit.rules.MethodRule;
12 import org.opendaylight.genius.datastoreutils.testutils.TestableDataTreeChangeListenerModule;
13 import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig.SecurityGroupMode;
15
16
17 public class AclServiceStatefulTestIPv6 extends AclServiceTestBaseIPv6 {
18
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         // TODO Auto-generated method stub
69     }
70 }