]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add a fullstack fake VM, basic connectivity test
authorAssaf Muller <amuller@redhat.com>
Fri, 12 Jun 2015 19:07:17 +0000 (15:07 -0400)
committerJohn Schwarz <jschwarz@redhat.com>
Wed, 19 Aug 2015 17:09:55 +0000 (20:09 +0300)
commit53fe9ddd6cc6943774fae609586a0adf9b2989f2
tree68b71150dca4df36c31de30bb4b43bd040d2af18
parenta5b0e6eaf9a9b4e8b274a3f3e124c27bba40116e
Add a fullstack fake VM, basic connectivity test

* Full stack tests' fake VMs are represented via a namespace,
  MAC, IP address and default gateway. They're plugged to an OVS
  bridge via an OVS internal port. As opposed to the current
  fake machine class used in functional testing, this new fake
  machine also creates a Neutron port via the API and sets the
  IP and MAC according to it. It also sets additional attributes
  on the OVS port to allow the OVS agent to do its magic.
* The functional fake machine and the full stack fake machine
  should continue to share commonalities.
* The fullstack fake machine currently takes the IP address
  from the port and statically assigns it to the namespace
  device. Later when I'll add support for the DHCP agent
  in full stack testing this assignment will look for the dhcp
  attribute of the subnet and either assign the IP address
  via 'ip' or call a dhcp client.
* Added a basic L2 connectivity test between two such machines
  on the same Neutron network.
* OVSPortFixture now uses OVSInterfaceDriver to plug the port
  instead of replicate a lot of the code. I had to make a
  small change to _setup_arp_spoof_for_port since all OVS ports
  are now created with their external-ids set.

Change-Id: Ib985b7e742f58f1a6eb6fc598df3cbac31046951
doc/source/devref/fullstack_testing.rst
neutron/tests/common/machine_fixtures.py
neutron/tests/common/net_helpers.py
neutron/tests/fullstack/resources/client.py
neutron/tests/fullstack/resources/environment.py
neutron/tests/fullstack/resources/machine.py [new file with mode: 0644]
neutron/tests/fullstack/test_connectivity.py [new file with mode: 0644]
neutron/tests/fullstack/test_l3_agent.py
neutron/tests/functional/agent/linux/test_ovsdb_monitor.py
neutron/tests/functional/agent/test_ovs_flows.py