Update idrange search facet after trust creation

Adding a trust creates a range -> range search facet should be marked as expired.

https://fedorahosted.org/freeipa/ticket/3874
This commit is contained in:
Petr Vobornik 2013-08-20 13:44:59 +02:00 committed by Petr Viktorin
parent bea533c69a
commit 92569b712c
3 changed files with 10 additions and 6 deletions

View File

@ -38,6 +38,16 @@ return {
enable_test: function() {
return IPA.trust_enabled;
},
policies: [
IPA.search_facet_update_policy,
IPA.details_facet_update_policy,
{
$factory: IPA.adder_facet_update_policy,
source_facet: 'search',
dest_entity: 'idrange',
dest_facet: 'search'
}
],
facets: [
{
$type: 'search',

View File

@ -67,8 +67,6 @@ class test_range(range_tasks):
sid = self.get_sid()
self.navigate_to_entity(ENTITY)
self.facet_button_click('refresh')
self.wait_for_request(n=2)
add = self.get_add_data(pkey_ad, range_type='ipa-ad-trust', sid=sid)
data = self.get_data(pkey_ad, add_data=add)

View File

@ -132,8 +132,6 @@ class test_trust(trust_tasks):
data = self.get_data(add_data=add)
self.add_record(ENTITY, data, delete=True)
self.navigate_to_entity('idrange')
self.facet_button_click('refresh')
self.wait_for_request(n=2)
self.assert_record_value('Active Directory domain range', range_pkey, column)
self.delete_record(range_pkey)
@ -141,8 +139,6 @@ class test_trust(trust_tasks):
data = self.get_data(add_data=add)
self.add_record(ENTITY, data, delete=True)
self.navigate_to_entity('idrange')
self.facet_button_click('refresh')
self.wait_for_request(n=2)
self.assert_record_value('Active Directory trust range with POSIX attributes', range_pkey, column)
self.delete_record(range_pkey)