1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

feature #192: Extra checks for host tests.

This commit is contained in:
Carlos Martín 2010-07-29 17:14:25 +02:00 committed by Ruben S. Montero
parent d0ccf2b962
commit f812cce782

View File

@ -486,8 +486,10 @@ public:
// Allocate a host
oid = allocate(0);
CPPUNIT_ASSERT(oid >= 0);
host = hp->get(0, false);
CPPUNIT_ASSERT(host != 0);
rc = hp->allocate_cluster(&clid, "cluster_a");
CPPUNIT_ASSERT( rc == 1 );
@ -518,8 +520,10 @@ public:
// Allocate a host
oid = allocate(0);
CPPUNIT_ASSERT(oid >= 0);
host = hp->get(0, false);
CPPUNIT_ASSERT(host != 0);
rc = hp->allocate_cluster(&clid, "cluster_a");
CPPUNIT_ASSERT( rc == 1 );