Tempest: add auto-discovery test
Add test, which delete pre-created baremetal vms, and discovers it
via 'enroll' not_found_hook with default configuration.
Note, test contains workaround for working on infra, as infra 'tempest'
user doesn't have access to virsh, for running node and whitelisting
firewall rules on existing node, inspector's inspect api is used.
Change-Id: Ib0ec63295a496229b27552cd1bcf7e763c0c3e03
diff --git a/ironic_tempest_plugin/config.py b/ironic_tempest_plugin/config.py
index 7b09e90..00540cf 100644
--- a/ironic_tempest_plugin/config.py
+++ b/ironic_tempest_plugin/config.py
@@ -61,4 +61,13 @@
default=80,
help="Time it might take for Ironic--Inspector "
"sync to happen"),
+ cfg.IntOpt('discovery_timeout',
+ default=300,
+ help="Time to wait until new node would enrolled in "
+ "ironic"),
+ cfg.BoolOpt('auto_discovery_feature',
+ default=False,
+ help="Is the auto-discovery feature enabled. Enroll hook "
+ "should be specified in node_not_found_hook - processing "
+ "section of inspector.conf"),
]