https://bugzilla.redhat.com/show_bug.cgi?id=785217
Bug was produced when "Provider added." was changed to "Cloud Resource
Provider added."
This text is internationalized so to simplify the check, we instead,
look at the alt text of the image that is included in the flash message.
The alt text has the value 'Notices' if there are no errors and
has the value 'Warnings' if there are errors.
---
recipes/aeolus/manifests/conductor.pp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/aeolus/manifests/conductor.pp
b/recipes/aeolus/manifests/conductor.pp
index ff68ff5..27a3ca1 100644
--- a/recipes/aeolus/manifests/conductor.pp
+++ b/recipes/aeolus/manifests/conductor.pp
@@ -236,7 +236,7 @@ define
aeolus::conductor::provider($deltacloud_driver="",$url="",
$deltacloud_pr
'provider[deltacloud_provider]' => $deltacloud_provider
},
returns => '200',
follow => true,
- contains => "//html/body//li[text() = 'Provider added.']",
+ contains => "//img[@alt='Notices']", # in the case of an
error, @alt='Warnings'
use_cookies_at => '/tmp/aeolus-admin',
log_to => '/tmp/configure-provider-request.log',
only_log_errors => true,
--
1.7.6.5