juju: github.com/wallyworld/juju/core/network/testing Index | Files

package testing

import "github.com/wallyworld/juju/core/network/testing"

Index

Package Files

network.go

type FirewallHelper Uses

type FirewallHelper struct {
}

FirewallHelper can be used as a mixin to provide firewall-related assertions for test suites.

func (FirewallHelper) AssertCloseUnitPort Uses

func (fw FirewallHelper) AssertCloseUnitPort(c *gc.C, u Unit, subnet, protocol string, port int)

AssertCloseUnitPort attempts to open a port on the specified subnet.

func (FirewallHelper) AssertCloseUnitPorts Uses

func (FirewallHelper) AssertCloseUnitPorts(c *gc.C, u Unit, subnet, protocol string, from, to int)

AssertCloseUnitPorts attempts to close a port range on the specified subnet.

func (FirewallHelper) AssertOpenUnitPort Uses

func (fw FirewallHelper) AssertOpenUnitPort(c *gc.C, u Unit, subnet, protocol string, port int)

AssertOpenUnitPort attempts to open a port on the specified subnet.

func (FirewallHelper) AssertOpenUnitPorts Uses

func (FirewallHelper) AssertOpenUnitPorts(c *gc.C, u Unit, subnet, protocol string, from, to int)

AssertOpenUnitPorts attempts to open a port range on the specified subnet.

type Unit Uses

type Unit interface {
    Name() string
    OpenClosePortsInSubnet(subnetID string, openPortRanges, closePortRanges []network.PortRange) error
}

Unit describes the minimum set of methods required for interacting with the assertions provided by FirewallHelper.

Package testing imports 3 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.