def clear_cache(self): ucr_load() self._license_type_cache = None self._ratings_cache = None self._app_categories_cache = None for app_cache in self.get_app_caches(): app_cache.clear_cache()
def test_install(self, apps): if any(app.notify_vendor for app in apps): license = ucr_get('uuid/license') if license is None: ucr_load() license = ucr_get('uuid/license') return license is not None
def clear_cache(self): ucr_load() self._license_type_cache = None self._ratings_cache = None for fname in glob(self.get_cache_dir()): if os.path.isdir(fname): ucs_version = os.path.basename(fname) app_cache = self._build_app_cache(ucs_version) app_cache.clear_cache()
def clear_cache(self): ucr_load() self._cache[:] = [] self._cache_modified_mtime = None self._invalidate_cache_files()
test.click_button("Install") test.wait_for_text("Installing Self Service on this host") test.wait_until_all_standby_animations_disappeared() # Werden README_INSTALL und README_POST_INSTALL korrekt vor bzw. nach der Installation angezeigt? test.wait_for_text( "Congratulations, the Self Service Modules have been installed!") test.click_button("Continue") test.wait_until_all_standby_animations_disappeared() test.wait_for_text("Self Service modules allow users to take care") test.save_screenshot("app_installed") # Erfolgreich? test.wait_for_text("Manage local installation") subprocess.call(['univention-check-join-status']) ucr_load() for key, value in [('appcenter/installed', 'ME'), ('appcenter/apps/self-service/status', 'installed'), ('appcenter/apps/self-service/version', '4.0')]: if ucr_get(key) != value: raise ValueError('%s: %r' % (key, ucr_get(key))) lo, pos = get_machine_connection() app_obj = search_objects('appcenter/app', lo, pos)[0] app_obj.dn == 'univentionAppID=self-service_4.0,cn=self-service,cn=apps,cn=univention,%s' % ucr_get( 'ldap/base') # Können Apps mit NotifyVendor=Yes installiert werden (sollte nicht so sein) ? test.click_button("Back to overview") test.click_element( '//div[contains(concat(" ", normalize-space(@class), " "), " umcGalleryWrapperItem ")][@moduleid="nextcloud"]' )