2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netvirt.aclservice.tests;
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;
17 public class AclServiceStatefulTestIPv6 extends AclServiceTestBaseIPv6 {
20 public @Rule MethodRule guice = new GuiceRule(new AclServiceModule(),
21 new AclServiceTestModule(SecurityGroupMode.Stateful),
22 new TestableDataTreeChangeListenerModule());
24 private final FlowEntryObjectsStatefulIPv6 ipv6statefulentries = new FlowEntryObjectsStatefulIPv6();
27 void newInterfaceCheck() {
28 assertFlowsInAnyOrder(ipv6statefulentries.expectedFlows(PORT_MAC_1));
32 void newInterfaceWithEtherTypeAclCheck() {
33 assertFlowsInAnyOrder(ipv6statefulentries.etherFlows());
37 public void newInterfaceWithTcpDstAclCheck() {
38 assertFlowsInAnyOrder(ipv6statefulentries.tcpFlows());
42 public void newInterfaceWithUdpDstAclCheck() {
43 assertFlowsInAnyOrder(ipv6statefulentries.udpFlows());
47 public void newInterfaceWithIcmpAclCheck() {
48 assertFlowsInAnyOrder(ipv6statefulentries.icmpFlows());
52 public void newInterfaceWithDstPortRangeCheck() {
53 assertFlowsInAnyOrder(ipv6statefulentries.dstRangeFlows());
57 public void newInterfaceWithDstAllPortsCheck() {
58 assertFlowsInAnyOrder(ipv6statefulentries.dstAllFlows());
62 void newInterfaceWithTwoAclsHavingSameRulesCheck() {
63 assertFlowsInAnyOrder(ipv6statefulentries.icmpFlowsForTwoAclsHavingSameRules());
67 void newInterfaceWithAapIpv4AllCheck() {
68 // TODO Auto-generated method stub