openstack-nova: setup user syntax for implicit keypair option, adding missing unit test

This commit is contained in:
Adam Lowe 2012-03-21 12:47:50 +00:00
parent e6a949005b
commit e81ac99daa
1 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,12 @@ public class NovaTemplateOptionsTest {
assert options.shouldAutoAssignFloatingIp();
}
@Test
public void testGenerateKeyPairDefault() {
NovaTemplateOptions options = new NovaTemplateOptions();
assert !options.shouldGenerateKeyPair();
}
@Test
public void testGenerateKeyPair() {
NovaTemplateOptions options = new NovaTemplateOptions().generateKeyPair(true);