]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
api_test.py: Remove workarounds for API bugs
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Sep 2012 14:31:24 +0000 (10:31 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 12 Nov 2012 18:18:32 +0000 (13:18 -0500)
The script used to contain a workaround for back when create()
wouldn't properly flush the config and reload it.
As these issues have now been fixed, these workarounds can be removed.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/python-lxc/examples/api_test.py

index 1a9f2e785ad72815d831867ce4af3c3ba5a0bff9..14236c795313f1a976391cdea7a31a04b8e17eed 100644 (file)
@@ -53,7 +53,6 @@ assert(container.state == "STOPPED")
 ## Create a rootfs
 print("Creating rootfs using '%s'" % LXC_TEMPLATE)
 container.create(LXC_TEMPLATE)
-container.load_config()  # FIXME: workaround for get_config_item segfault
 
 assert(container.defined == True)
 assert(container.name == CONTAINER_NAME
@@ -74,7 +73,6 @@ assert(capdrop == container.get_config_item("lxc.cap.drop"))
 
 ## Test the networking
 print("Testing the networking")
-container.network.remove(0)  # FIXME: workaround for get_config_item segfault
 
 # A few basic checks of the current state
 assert("name" in container.get_keys("lxc.network.0"))
@@ -142,8 +140,6 @@ assert(container.state == "STOPPED")
 print("Cloning the container")
 clone = lxc.Container(CLONE_NAME)
 clone.clone(container)
-clone.load_config()  # FIXME: workaround for get_config_item segfault
-clone.network.remove(0)  # FIXME: workaround for get_config_item segfault
 clone.start()
 clone.stop()
 clone.destroy()