]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Define FakeMachine helper for functional/fullstack tests
authorCedric Brandily <zzelle@gmail.com>
Sun, 1 Mar 2015 22:08:58 +0000 (22:08 +0000)
committerCedric Brandily <zzelle@gmail.com>
Mon, 20 Apr 2015 17:58:39 +0000 (19:58 +0200)
commit7f7343b1afc0b1b953e5c36a753397a6d37316cb
tree265ff1d82574e089c598c2c7fe309c7ea625dbf0
parent29effc67fc78186206061b06a0e8f9795e8189b0
Define FakeMachine helper for functional/fullstack tests

The change defines the FakeMachine fixture/helper which emulates a
machine through a namespace with:
* a port bound to a bridge,
* an ip on the port,
* a gateway (if requested).

The FakeMachine class can be used to emulate:
* a VM for testing network features (ex: metadata service),
* an external machine for testing "external" network features (ex:
  routing/natting),
* a server for low level tests of network features (ex: iptables).

The change also defines PeerMachines fixture/helper to create some fake
machines bound to a bridge.

Change-Id: I4fde1a03badd9adfd14b9124b5602331b69dda9d
neutron/tests/common/machine_fixtures.py [new file with mode: 0644]
neutron/tests/common/net_helpers.py
neutron/tests/functional/agent/linux/base.py
neutron/tests/functional/agent/linux/test_iptables_firewall.py
neutron/tests/functional/agent/test_l3_agent.py