From 3c23b47ecfc3b5b764d7d2c83dcb6088a7694522 Mon Sep 17 00:00:00 2001 From: jpsider Date: Sun, 24 Sep 2017 16:55:10 -0400 Subject: [PATCH] Issue #183 - Adding new vCenter Advanced Setting tests --- ...C-AgentUpgradeautoUpgradeAgents.Vester.ps1 | 27 +++++++++++++++++++ ...-AgentUpgradecheckPeriodSeconds.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-DBProcLogBuffer.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsPurge1.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsPurge2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsPurge3.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsRollup1.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsRollup2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelStatsRollup3.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnCalc1.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnCalc2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnCalc3.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnCalc4.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnPurge1.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnPurge2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnPurge3.Vester.ps1 | 27 +++++++++++++++++++ .../VC-DBProcLogLevelTopnPurge4.Vester.ps1 | 27 +++++++++++++++++++ ...eServermatchHostToVirtualCenter.Vester.ps1 | 27 +++++++++++++++++++ ...VC-MiscvCenterServerUpdateLevel.Vester.ps1 | 27 +++++++++++++++++++ ...C-PerfStatsMaxCollectionThreads.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-SSLVersion.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-TOPN_LOGING_MODE.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-TOPN_LOG_BUFFER.Vester.ps1 | 27 +++++++++++++++++++ .../VC-TOPN_STATS_DELAY_MINS_1.Vester.ps1 | 27 +++++++++++++++++++ .../VC-TOPN_STATS_DELAY_MINS_2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-TOPN_STATS_DELAY_MINS_3.Vester.ps1 | 27 +++++++++++++++++++ .../VC-TOPN_STATS_DELAY_MINS_4.Vester.ps1 | 27 +++++++++++++++++++ ...VC-VirtualCenterAutoManagedIPV4.Vester.ps1 | 27 +++++++++++++++++++ .../VC-VirtualCenterCacheSize.Vester.ps1 | 27 +++++++++++++++++++ ...lCenterDataCollectorConsentData.Vester.ps1 | 27 +++++++++++++++++++ ...tualCenterDataCollectorSchedule.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-VirtualCenterFQDN.Vester.ps1 | 27 +++++++++++++++++++ .../VC-VirtualCenterHostBiosUuid.Vester.ps1 | 27 +++++++++++++++++++ .../VC-VirtualCenterInstanceName.Vester.ps1 | 27 +++++++++++++++++++ ...VC-VirtualCenterMaxDBConnection.Vester.ps1 | 27 +++++++++++++++++++ .../VC-VirtualCenterVimApiUrl.Vester.ps1 | 27 +++++++++++++++++++ ...nterVimPasswordExpirationInDays.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-WebServicePortshttp.Vester.ps1 | 27 +++++++++++++++++++ .../VC-WebServicePortshttps.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-adscheckInterval.Vester.ps1 | 27 +++++++++++++++++++ .../VC-adscheckIntervalEnabled.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-adsmaxFetch.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-adsmaxFetchEnabled.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-adstimeout.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-alarmsversion.Vester.ps1 | 27 +++++++++++++++++++ .../VC-clientVerifySSLCertificates.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-clienttimeoutlong.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-clienttimeoutnormal.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configalarmsvimversion.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configalertlogenabled.Vester.ps1 | 27 +++++++++++++++++++ ...C-configalertlogoutputToConsole.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configalertlogoutputToFiles.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configalertlogoutputToSyslog.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configalertlogsyslogfacility.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configalertlogsyslogident.Vester.ps1 | 27 +++++++++++++++++++ ...nfigalertlogsysloglogHeaderFile.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configdrskvstorelocal.Vester.ps1 | 27 +++++++++++++++++++ ...lientlsNotificationsSyncSeconds.Vester.ps1 | 27 +++++++++++++++++++ ...erverLsNotificationsSyncSeconds.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogcompressOnRoll.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configloglevel.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configlogmaxFileNum.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogmaxFileSize.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogoutputToConsole.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogoutputToFiles.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogoutputToSyslog.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogsyslogfacility.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configlogsyslogident.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configlogsysloglogHeaderFile.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configregistryDBkey_2.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configregistryDBkey_3.Vester.ps1 | 27 +++++++++++++++++++ ...egistrykey_EvaluationExpiryDate.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configregistrykey_VCVmId.Vester.ps1 | 27 +++++++++++++++++++ ...-configtaskminCompletedLifetime.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configvmacorecacheProperties.Vester.ps1 | 27 +++++++++++++++++++ ...-configvmacorethreadPoolTaskMax.Vester.ps1 | 27 +++++++++++++++++++ ...acorethreadPoolthreadNamePrefix.Vester.ps1 | 27 +++++++++++++++++++ ...onfigvpxdcertprefixsolutionUser.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdcertprefixssl.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdenableDebugBrowse.Vester.ps1 | 27 +++++++++++++++++++ ...igvpxdfilterOverheadLimitIssues.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdheartbeatudpport.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configvpxdhostGatewayenabled.Vester.ps1 | 27 +++++++++++++++++++ ...figvpxdhostGatewaygatewaySource.Vester.ps1 | 27 +++++++++++++++++++ ...ostProfilesdisableSecureManager.Vester.ps1 | 27 +++++++++++++++++++ ...hostProfilesdrsReservedCapacity.Vester.ps1 | 27 +++++++++++++++++++ ...gvpxdhostProfilesenterMMTimeout.Vester.ps1 | 27 +++++++++++++++++++ ...ostProfilesmetadataCacheEnabled.Vester.ps1 | 27 +++++++++++++++++++ ...igvpxdhostProfilesrebootTimeout.Vester.ps1 | 27 +++++++++++++++++++ ...ProfilesstatefulCollectHostSpec.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdhostnameUrl.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdinstanceName.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdlicenseEdition.Vester.ps1 | 27 +++++++++++++++++++ ...configvpxdmemCheckermemStopInMB.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdnetworkrollback.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdodbcdbtype.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configvpxdodbcdsn.Vester.ps1 | 27 +++++++++++++++++++ ...VC-configvpxdrhttpproxyhttpport.Vester.ps1 | 27 +++++++++++++++++++ ...C-configvpxdrhttpproxyhttpsport.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdsecureSoapPort.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configvpxdsoapPort.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configvpxdsslCAPath.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdssoadminuri.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdssodefaultadmin.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdssodefaultisGroup.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdssoenabled.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdssogroupcheckuri.Vester.ps1 | 27 +++++++++++++++++++ ...gvpxdssosolutionUsercertificate.Vester.ps1 | 27 +++++++++++++++++++ ...C-configvpxdssosolutionUsername.Vester.ps1 | 27 +++++++++++++++++++ ...igvpxdssosolutionUserprivateKey.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configvpxdssostsuri.Vester.ps1 | 27 +++++++++++++++++++ ...onfigvpxdsupportscriptDirectory.Vester.ps1 | 27 +++++++++++++++++++ ...C-configvpxdvchadrsAntiAffinity.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdvecsstoreName.Vester.ps1 | 27 +++++++++++++++++++ .../VC-configvpxdvsandynmgrenable.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-configworkflowport.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-etcissue.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-eventbatchsize.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-instanceid.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerAlarm.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerAlarmXAction.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerAlert.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerApp.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerAssetPropertiesUpdater.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerAttestation.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerAuth_win32.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerAuthorize.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerAuthorizeManager.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerAuthzStorageProvider.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerBackupRestore.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerCallbackServiceManager.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerCertificateClientLogin.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerClientAdapterBase.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerClientPreload.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerClientUpgrader.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerComputeResEventMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerComputeResLock.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerConfigIssue.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerCpuFeatures.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerCryptHelper.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerCryptUtil.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerCrypter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerCryptoManager.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerCryptoManagerKmipWrapper.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerDAS.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDaemon.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDatastore.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbBulkLoader.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbDelete.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbHelper.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDbLoad.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbMonitoring.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerDbParallelLoader.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDbSave.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbSchemaHash.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDbUpdate.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDbUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDebugBrowser.Vester.ps1 | 27 +++++++++++++++++++ ...C-loggerDebugBrowserHTTPService.Vester.ps1 | 27 +++++++++++++++++++ ...rowserHTTPServiceHttpConnection.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDefault.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDvpgSender.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDvsCore.Vester.ps1 | 27 +++++++++++++++++++ ...C-loggerDvsHostMethodDispatcher.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerDvsLock.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerDvsUtils.Vester.ps1 | 27 +++++++++++++++++++ ...erEventLsNotificationsProcessor.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerEventTaskCleanup.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerExternalStatsManager.Vester.ps1 | 27 +++++++++++++++++++ ...ggerFailoverClusterConfigurator.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerFailoverClusterManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerFairScheduler.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerGuestName.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHTTPserver.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerHTTPsessionmap.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerHealth.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHeartbeat.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHostAccess.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerHostCnx.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHostGateway.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerHostLocaleUpdater.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHostPicker.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHostRecover.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerHostSyncLockHelper.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHostUpgrader.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000000.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000001.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000004.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000006.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000007.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000010.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000011.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000012.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000013.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000015.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000017.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000019.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerHttpConnectionPool000023.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerHttpNfcBridgeHandler.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerHttpNfcTicket.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerHttpSvc.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerHttpSvcHTTPService.Vester.ps1 | 27 +++++++++++++++++++ ...ttpSvcHTTPServiceHttpConnection.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerIO.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInternalSvc.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerInvt.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtCache.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerInvtDVPortGroup.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerInvtDVS.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerInvtDatacenter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtDomain.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtGroup.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtHost.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtHostCnx.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtHostDb.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerInvtId.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtListener.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtNetwork.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtResGroup.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerInvtStoragePod.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerInvtVm.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerInvtVmDb.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerIofilter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerIpAllocator.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerLSClient.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerLdapBackup_win32.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerLdap_linux.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerLdap_win32.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerLicenseManager.Vester.ps1 | 27 +++++++++++++++++++ ...rLicenseServiceClientCachedImpl.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerLicenseServiceClientImpl.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerLocale.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerLock.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerLogBundler.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerLsNotificationsRetriever.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMail_win32.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerMain.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMethodValidator.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoAlarmMonitor.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoAuthMagr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoBase.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoCbrcManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoCluster.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoComputeRes.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoCustSpecMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoDVPortGroup.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoDVSwitch.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoDatacenter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoDatastore.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoDatastoreBrowser.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoDiagnosticMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoDvs.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoDvsManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoEnvBrowser.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoEsxAgentConfigMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoEvent.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoExtensionMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoFields.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoFileMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoHost.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoHostConfig.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoHttpNfcLease.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoIpPoolMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoLicenseDataMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoLicenseMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoLocMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoLock.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoNetworkManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoOptionMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoOvfMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoPerfManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoResGroup.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoReverseProxy.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoScheduledTask.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoSearchIndex.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoServiceInstance.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoSessionMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoSnapshot.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoStoragePod.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoSystemDebugMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoTask.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoTransEVCMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerMoVApp.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerMoVAppPowerOp.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoVStorageObjectMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoVirtualDiskMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerMoVmciAccessMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerNfcMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerNfcServiceProxy.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerOCM.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerOMM.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerOMMHCC.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerOMMHSC.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOMMHostInfo.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerOMMOutputCache.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOMMVmInfo.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOpaqueChannel.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOsLayer_linux.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOsLayer_win32.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerOvfConsumers.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerOvfEnv.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPauseManager.Vester.ps1 | 27 +++++++++++++++++++ ...oggerPcLsNotificationsProcessor.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPerfCluster.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPerfProvider.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPerfVmOps.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPortSender.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerPriorityInfo16.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPriorityInfo4.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerPriorityInfo8.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerPropertyCollector.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerPropertyJournal.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerPropertyProvider.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerQuickStats.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerResMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerResPoolTree.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerResourceMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerResourcePlanningMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP1.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP10.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP11.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP12.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP13.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP14.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP15.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP16.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP17.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP18.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP19.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP2.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP20.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP21.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP22.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP23.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP24.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP25.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP26.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP27.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP28.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP29.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP3.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP30.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP31.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP32.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP33.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP34.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP35.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP36.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP37.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP38.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP39.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP4.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP40.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP41.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP42.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP5.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP6.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP7.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP8.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerSOAP9.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerSSLSoapAdapter.Vester.ps1 | 27 +++++++++++++++++++ ...loggerSSLSoapAdapterHTTPService.Vester.ps1 | 27 +++++++++++++++++++ ...dapterHTTPServiceHttpConnection.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerSSPI.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerSSPIClientLogin.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerServerAccess.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerService.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerServiceMgrImpl.Vester.ps1 | 27 +++++++++++++++++++ ...C-loggerSessionPropertiesFilter.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerSimpleCommandImpl.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerSnmp.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerSoapAdapter.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerSoapAdapterHTTPService.Vester.ps1 | 27 +++++++++++++++++++ ...dapterHTTPServiceHttpConnection.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerSsoClient.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerStateLock.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerStats.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerStatsAggregator.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerStatsCollector.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerStatsFilter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerStatsMetadata.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerSupportMgr.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerTask.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerTaskInfo.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerThreadPool.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerTopnMetadata.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerTranslator.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerTxnMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerUrl_win32.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerUser.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerUtilEx.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppConfig.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppExport.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppImport.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppLocker.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVAppProperties.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVAppVmConfig.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVcChangeDataCapture.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVcQueryService.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerVchaServiceClientAdapter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVdbOpJournal.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerViewManager.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerVmCheck.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVmCustomizer.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVmScreenShot.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerVmomi.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVmprovUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVmprovXaction.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerVod.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVpxMutex.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVpxProfiler.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVpxdAuthClient.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVpxdCache.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVpxdHostConnection.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerVpxdMemChecker.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerVsan.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVvolInfoMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerVvolVasaMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerWebserver.Vester.ps1 | 27 +++++++++++++++++++ ...vmacoreDefaultIOCompletionQueue.Vester.ps1 | 27 +++++++++++++++++++ ...rWorkQueuevmacoreDefaultIOQueue.Vester.ps1 | 27 +++++++++++++++++++ ...ueuevmacoreDefaultLongTaskQueue.Vester.ps1 | 27 +++++++++++++++++++ ...ueuevpxdalarmsnotificationqueue.Vester.ps1 | 27 +++++++++++++++++++ ...orkQueuevpxdstatspersisterqueue.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggeralarmMo.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerbufferedClientRequest.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercdrsPlmt.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggercertRequestHandler.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercertUtils.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercertmgrLogger.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerchangeTag.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggercheckswapPlacementInfo.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerclusterCache.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerclusterChecker.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercnxmgrLogger.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggercomponentManagerUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercopySpecUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercoreanchor.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercoredvsSync.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggercorehostCapsule.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercorehostSync.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercorestress.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercoreunitTest.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggercorevalidate.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerdasVm.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerdbDvs.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerdbHost.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerdbPort.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerdbPortgroup.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerdbQuery.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerdbuHelper.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerdoImpersonate.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerdrmLogger.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerdvsKeeper.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerdynamicMethodValidator.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerfeatureiorm.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerfeatureldp.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerftUtils.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerguestops.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerhalhost.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhalservices.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerhbr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhealthCheck.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostInvtOps.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostMethod.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerhostOp.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostPropertyTracker.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostStateSyncer.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdVMotion.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdcnx.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdcompRes.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerhostdds.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostddvs.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdevent.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdhost.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostdhostConfig.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostdlicenseMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostdlocalizationMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhostdstats.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerhostdstorageSystem.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerhostdvm.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerhttpUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerinfraUpdateHa.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggeripfix.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerlacp.Vester.ps1 | 27 +++++++++++++++++++ ...licenseAssignmentChangeNotifier.Vester.ps1 | 27 +++++++++++++++++++ ...-loggerlicenseAssignmentCleaner.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerlicenseClient.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerlicenseClientCached.Vester.ps1 | 27 +++++++++++++++++++ ...ggerlicenseClientFaultTolerance.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerlicenseClientStarter.Vester.ps1 | 27 +++++++++++++++++++ ...C-loggerlicenseServiceDiscovery.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerlicenseServiceProxy.Vester.ps1 | 27 +++++++++++++++++++ ...oggerlicenseViolationRemediator.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerlocalizationMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerlunUtil.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggermergeOp.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggermoClusterProfile.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggermoClusterProfileMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggermoComplianceManager.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggermoHostProfile.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggermoHostProfileMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggermoProfile.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggermoProfileMgr.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggermoveOp.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggeroverheadMemory.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggerpbm.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerprofileExtract.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerprofileUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerprovisioning.Vester.ps1 | 27 +++++++++++++++++++ ...VC-loggerproxyManagedObjectImpl.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggerpvlan.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggersdrsLogger.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggersecondaryVmCreator.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggersessionpool.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggersms.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggerssoCertificate.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggerstressOption.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggersvcUtils.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggersysCommandAdapter.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggertagMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervcUpgradeMgr.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervirtualDiskMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmMonitor.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervmProvCheckUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmSpaceUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmStateSyncer.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmTestSet.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmconfig.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loggervmft.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervmguest.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervmmoVm.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervmsnapshot.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxCertificate.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxCommon.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxCrypt.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxDas.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxDebugTimer.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxFileCopier.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxFileInfo.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxJournalEntry.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxLdap.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxLro.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxNfcClient.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxNfcServer.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxPowerExec.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxResultFilter.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxTaskInfo.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxUrl.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxUrlHelper.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxUtil.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaAuthorize.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaDaemon.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaDatastore.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaDatastoreContext.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaInvtHost.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaInvtHostCnx.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaInvtVm.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaLegacyHost.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaMain.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaMoHostConfig.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaMoLicenseMgr.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaMoService.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaMoVMotion.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaMoVm.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaNameReserve.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaSessionManager.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaStatsMetadata.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaTaskInfo.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaVmConfigInfo.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaVmomi.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxaVmprov.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxaVmprovUtil.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxahttpHandler.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-loggervpxdUtil.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervpxdVdb.Vester.ps1 | 27 +++++++++++++++++++ .../VC-loggervpxdvpxdSignal.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervspan.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-loggervumOp.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-loglevel.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-mailsmtpport.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-schemaversionmajor.Vester.ps1 | 27 +++++++++++++++++++ .../VC-snmpreceiver1community.Vester.ps1 | 27 +++++++++++++++++++ .../VC-snmpreceiver1enabled.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-snmpreceiver1name.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-snmpreceiver1port.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-snmpreceiver2port.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-snmpreceiver3port.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-snmpreceiver4port.Vester.ps1 | 27 +++++++++++++++++++ .../Tests/vCenter/VC-taskbatchsize.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdcertmgmtcertscncountry.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdcertmgmtcertscnemail.Vester.ps1 | 27 +++++++++++++++++++ ...vpxdcertmgmtcertscnlocalityName.Vester.ps1 | 27 +++++++++++++++++++ ...certmgmtcertscnorganizationName.Vester.ps1 | 27 +++++++++++++++++++ ...mtcertscnorganizationalUnitName.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdcertmgmtcertscnstate.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdcertmgmtcertsdaysValid.Vester.ps1 | 27 +++++++++++++++++++ ...-vpxdcertmgmtcertshardThreshold.Vester.ps1 | 27 +++++++++++++++++++ ...-vpxdcertmgmtcertsminutesBefore.Vester.ps1 | 27 +++++++++++++++++++ ...xdcertmgmtcertspollIntervalDays.Vester.ps1 | 27 +++++++++++++++++++ ...-vpxdcertmgmtcertssoftThreshold.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-vpxdcertmgmtmode.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-vpxdcertthreshold.Vester.ps1 | 27 +++++++++++++++++++ ...ventfeaturesVC_Events_Retention.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdeventsyslogenabled.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdhttpClientIdleTimeout.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-vpxdlicensedata.Vester.ps1 | 27 +++++++++++++++++++ ...dnpivWwnGenerationportWwnNumber.Vester.ps1 | 27 +++++++++++++++++++ ...dnpivWwnGenerationsingleNodeWwn.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdusageStatsduration.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdusageStatspersist.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdvdbspaceerrorPercent.Vester.ps1 | 27 +++++++++++++++++++ .../VC-vpxdvdbspacewarningPercent.Vester.ps1 | 27 +++++++++++++++++++ .../vCenter/VC-vpxdvodpersist.Vester.ps1 | 27 +++++++++++++++++++ ...VC-vpxdwebscriptLauncherenabled.Vester.ps1 | 27 +++++++++++++++++++ Vester/Tests/vCenter/VC-vrdmauuid.Vester.ps1 | 27 +++++++++++++++++++ 617 files changed, 16659 insertions(+) create mode 100644 Vester/Tests/vCenter/VC-AgentUpgradeautoUpgradeAgents.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-AgentUpgradecheckPeriodSeconds.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogBuffer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-LicenseServermatchHostToVirtualCenter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-MiscvCenterServerUpdateLevel.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-PerfStatsMaxCollectionThreads.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-SSLVersion.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_LOGING_MODE.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_LOG_BUFFER.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterAutoManagedIPV4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterCacheSize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterDataCollectorConsentData.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterDataCollectorSchedule.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterFQDN.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterHostBiosUuid.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterInstanceName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterMaxDBConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterVimApiUrl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-VirtualCenterVimPasswordExpirationInDays.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-WebServicePortshttp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-WebServicePortshttps.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-adscheckInterval.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-adscheckIntervalEnabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-adsmaxFetch.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-adsmaxFetchEnabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-adstimeout.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-alarmsversion.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-clientVerifySSLCertificates.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-clienttimeoutlong.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-clienttimeoutnormal.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalarmsvimversion.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogenabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogoutputToConsole.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogoutputToFiles.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogoutputToSyslog.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogsyslogfacility.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogsyslogident.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configalertlogsysloglogHeaderFile.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configdrskvstorelocal.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlicenseclientlsNotificationsSyncSeconds.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlicenseclientoldServerLsNotificationsSyncSeconds.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogcompressOnRoll.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configloglevel.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogmaxFileNum.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogmaxFileSize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogoutputToConsole.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogoutputToFiles.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogoutputToSyslog.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogsyslogfacility.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogsyslogident.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configlogsysloglogHeaderFile.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configregistryDBkey_2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configregistryDBkey_3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configregistrykey_EvaluationExpiryDate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configregistrykey_VCVmId.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configtaskminCompletedLifetime.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvmacorecacheProperties.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvmacorethreadPoolTaskMax.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvmacorethreadPoolthreadNamePrefix.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdcertprefixsolutionUser.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdcertprefixssl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdenableDebugBrowse.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdfilterOverheadLimitIssues.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdheartbeatudpport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostGatewayenabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostGatewaygatewaySource.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesdisableSecureManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesdrsReservedCapacity.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesenterMMTimeout.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesmetadataCacheEnabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesrebootTimeout.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostProfilesstatefulCollectHostSpec.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdhostnameUrl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdinstanceName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdlicenseEdition.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdmemCheckermemStopInMB.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdnetworkrollback.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdodbcdbtype.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdodbcdsn.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpsport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdsecureSoapPort.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdsoapPort.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdsslCAPath.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssoadminuri.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssodefaultadmin.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssodefaultisGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssoenabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssogroupcheckuri.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssosolutionUsercertificate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssosolutionUsername.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssosolutionUserprivateKey.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdssostsuri.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdsupportscriptDirectory.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdvchadrsAntiAffinity.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdvecsstoreName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configvpxdvsandynmgrenable.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-configworkflowport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-etcissue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-eventbatchsize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-instanceid.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAlarm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAlarmXAction.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAlert.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerApp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAssetPropertiesUpdater.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAttestation.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAuth_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAuthorize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAuthorizeManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerAuthzStorageProvider.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerBackupRestore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCallbackServiceManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCertificateClientLogin.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerClientAdapterBase.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerClientPreload.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerClientUpgrader.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerComputeResEventMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerComputeResLock.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerConfigIssue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCpuFeatures.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCryptHelper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCryptUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCrypter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCryptoManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerCryptoManagerKmipWrapper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDAS.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDaemon.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDatastore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbBulkLoader.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbDelete.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbHelper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbLoad.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbMonitoring.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbParallelLoader.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbSave.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbSchemaHash.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbUpdate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDbUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDebugBrowser.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPServiceHttpConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDefault.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDvpgSender.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDvsCore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDvsHostMethodDispatcher.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDvsLock.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerDvsUtils.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerEventLsNotificationsProcessor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerEventTaskCleanup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerExternalStatsManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerFailoverClusterConfigurator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerFailoverClusterManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerFairScheduler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerGuestName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHTTPserver.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHTTPsessionmap.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHealth.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHeartbeat.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostAccess.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostCnx.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostGateway.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostLocaleUpdater.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostPicker.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostRecover.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostSyncLockHelper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHostUpgrader.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000000.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000001.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000004.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000006.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000007.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000010.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000011.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000012.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000013.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000015.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000017.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000019.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpConnectionPool000023.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpNfcBridgeHandler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpNfcTicket.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpSvc.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpSvcHTTPService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerHttpSvcHTTPServiceHttpConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerIO.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInternalSvc.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvt.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtCache.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtDVPortGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtDVS.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtDatacenter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtDomain.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtHost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtHostCnx.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtHostDb.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtId.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtListener.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtNetwork.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtResGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtStoragePod.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtVm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerInvtVmDb.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerIofilter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerIpAllocator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLSClient.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLdapBackup_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLdap_linux.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLdap_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLicenseManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLicenseServiceClientCachedImpl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLicenseServiceClientImpl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLocale.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLock.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLogBundler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerLsNotificationsRetriever.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMail_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMain.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMethodValidator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoAlarmMonitor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoAuthMagr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoBase.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoCbrcManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoCluster.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoComputeRes.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoCustSpecMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDVPortGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDVSwitch.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDatacenter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDatastore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDatastoreBrowser.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDiagnosticMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDvs.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoDvsManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoEnvBrowser.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoEsxAgentConfigMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoEvent.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoExtensionMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoFields.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoFileMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoHost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoHostConfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoHttpNfcLease.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoIpPoolMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoLicenseDataMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoLicenseMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoLocMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoLock.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoNetworkManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoOptionMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoOvfMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoPerfManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoResGroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoReverseProxy.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoScheduledTask.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoSearchIndex.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoServiceInstance.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoSessionMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoSnapshot.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoStoragePod.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoSystemDebugMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoTask.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoTransEVCMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoVApp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoVAppPowerOp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoVStorageObjectMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoVirtualDiskMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerMoVmciAccessMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerNfcMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerNfcServiceProxy.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOCM.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMM.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMMHCC.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMMHSC.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMMHostInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMMOutputCache.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOMMVmInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOpaqueChannel.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOsLayer_linux.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOsLayer_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOvfConsumers.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerOvfEnv.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPauseManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPcLsNotificationsProcessor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPerfCluster.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPerfProvider.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPerfVmOps.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPortSender.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPriorityInfo16.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPriorityInfo4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPriorityInfo8.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPropertyCollector.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPropertyJournal.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerPropertyProvider.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerQuickStats.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerResMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerResPoolTree.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerResourceMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerResourcePlanningMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP1.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP10.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP11.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP12.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP13.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP14.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP15.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP16.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP17.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP18.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP19.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP2.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP20.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP21.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP22.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP23.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP24.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP25.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP26.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP27.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP28.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP29.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP3.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP30.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP31.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP33.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP34.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP35.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP36.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP37.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP38.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP39.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP4.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP40.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP41.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP42.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP5.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP6.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP7.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP8.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSOAP9.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSSLSoapAdapter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPServiceHttpConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSSPI.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSSPIClientLogin.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerServerAccess.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerServiceMgrImpl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSessionPropertiesFilter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSimpleCommandImpl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSnmp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSoapAdapter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPServiceHttpConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSsoClient.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStateLock.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStats.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStatsAggregator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStatsCollector.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStatsFilter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerStatsMetadata.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerSupportMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerTask.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerTaskInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerThreadPool.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerTopnMetadata.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerTranslator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerTxnMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerUrl_win32.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerUser.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerUtilEx.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppConfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppExport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppImport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppLocker.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppProperties.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVAppVmConfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVcChangeDataCapture.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVcQueryService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVchaServiceClientAdapter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVdbOpJournal.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerViewManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmCheck.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmCustomizer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmScreenShot.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmomi.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmprovUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVmprovXaction.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVod.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxMutex.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxProfiler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxdAuthClient.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxdCache.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxdHostConnection.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVpxdMemChecker.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVsan.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVvolInfoMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerVvolVasaMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWebserver.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOCompletionQueue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOQueue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultLongTaskQueue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWorkQueuevpxdalarmsnotificationqueue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerWorkQueuevpxdstatspersisterqueue.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggeralarmMo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerbufferedClientRequest.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercdrsPlmt.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercertRequestHandler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercertUtils.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercertmgrLogger.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerchangeTag.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercheckswapPlacementInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerclusterCache.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerclusterChecker.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercnxmgrLogger.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercomponentManagerUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercopySpecUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercoreanchor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercoredvsSync.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercorehostCapsule.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercorehostSync.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercorestress.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercoreunitTest.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggercorevalidate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdasVm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbDvs.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbHost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbPort.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbPortgroup.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbQuery.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdbuHelper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdoImpersonate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdrmLogger.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdvsKeeper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerdynamicMethodValidator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerfeatureiorm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerfeatureldp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerftUtils.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerguestops.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhalhost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhalservices.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhbr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhealthCheck.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostInvtOps.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostMethod.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostOp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostPropertyTracker.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostStateSyncer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdVMotion.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdcnx.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdcompRes.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdds.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostddvs.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdevent.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdhost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdhostConfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdlicenseMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdlocalizationMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdstats.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdstorageSystem.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhostdvm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerhttpUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerinfraUpdateHa.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggeripfix.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlacp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseAssignmentChangeNotifier.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseAssignmentCleaner.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseClient.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseClientCached.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseClientFaultTolerance.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseClientStarter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseServiceDiscovery.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseServiceProxy.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlicenseViolationRemediator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlocalizationMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerlunUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermergeOp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoClusterProfile.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoClusterProfileMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoComplianceManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoHostProfile.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoHostProfileMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoProfile.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoProfileMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggermoveOp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggeroverheadMemory.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerpbm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerprofileExtract.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerprofileUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerprovisioning.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerproxyManagedObjectImpl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerpvlan.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersdrsLogger.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersecondaryVmCreator.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersessionpool.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersms.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerssoCertificate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggerstressOption.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersvcUtils.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggersysCommandAdapter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggertagMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervcUpgradeMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervirtualDiskMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmMonitor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmProvCheckUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmSpaceUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmStateSyncer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmTestSet.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmconfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmft.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmguest.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmmoVm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervmsnapshot.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxCertificate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxCommon.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxCrypt.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxDas.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxDebugTimer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxFileCopier.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxFileInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxJournalEntry.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxLdap.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxLro.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxNfcClient.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxNfcServer.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxPowerExec.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxResultFilter.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxTaskInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxUrl.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxUrlHelper.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaAuthorize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaDaemon.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaDatastore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaDatastoreContext.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaInvtHost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaInvtHostCnx.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaInvtVm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaLegacyHost.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMain.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMoHostConfig.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMoLicenseMgr.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMoService.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMoVMotion.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaMoVm.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaNameReserve.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaSessionManager.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaStatsMetadata.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaTaskInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaVmConfigInfo.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaVmomi.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaVmprov.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxaVmprovUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxahttpHandler.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxdUtil.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxdVdb.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervpxdvpxdSignal.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervspan.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loggervumOp.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-loglevel.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-mailsmtpport.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-schemaversionmajor.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver1community.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver1enabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver1name.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver1port.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver2port.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver3port.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-snmpreceiver4port.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-taskbatchsize.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscncountry.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnemail.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnlocalityName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationalUnitName.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnstate.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertsdaysValid.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertshardThreshold.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertsminutesBefore.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertspollIntervalDays.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtcertssoftThreshold.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertmgmtmode.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdcertthreshold.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdeventfeaturesVC_Events_Retention.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdeventsyslogenabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdhttpClientIdleTimeout.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdlicensedata.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationportWwnNumber.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationsingleNodeWwn.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdusageStatsduration.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdusageStatspersist.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdvdbspaceerrorPercent.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdvdbspacewarningPercent.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdvodpersist.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vpxdwebscriptLauncherenabled.Vester.ps1 create mode 100644 Vester/Tests/vCenter/VC-vrdmauuid.Vester.ps1 diff --git a/Vester/Tests/vCenter/VC-AgentUpgradeautoUpgradeAgents.Vester.ps1 b/Vester/Tests/vCenter/VC-AgentUpgradeautoUpgradeAgents.Vester.ps1 new file mode 100644 index 0000000..712da40 --- /dev/null +++ b/Vester/Tests/vCenter/VC-AgentUpgradeautoUpgradeAgents.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'AgentUpgrade.autoUpgradeAgents' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'vCenter Agent Upgrade' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.AgentUpgradeautoUpgradeAgents + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "AgentUpgrade.autoUpgradeAgents").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "AgentUpgrade.autoUpgradeAgents" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-AgentUpgradecheckPeriodSeconds.Vester.ps1 b/Vester/Tests/vCenter/VC-AgentUpgradecheckPeriodSeconds.Vester.ps1 new file mode 100644 index 0000000..96b0c66 --- /dev/null +++ b/Vester/Tests/vCenter/VC-AgentUpgradecheckPeriodSeconds.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'AgentUpgrade.checkPeriodSeconds' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Host upgrade check frequency' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.AgentUpgradecheckPeriodSeconds + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "AgentUpgrade.checkPeriodSeconds").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "AgentUpgrade.checkPeriodSeconds" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogBuffer.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogBuffer.Vester.ps1 new file mode 100644 index 0000000..f9dfe7c --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogBuffer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Buffer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'DB procedures log buffer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogBuffer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Buffer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Buffer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge1.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge1.Vester.ps1 new file mode 100644 index 0000000..a1d3cd6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Purge1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for daily stats purge' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsPurge1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge2.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge2.Vester.ps1 new file mode 100644 index 0000000..3fa18ec --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Purge2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for weekly stats purge' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsPurge2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge3.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge3.Vester.ps1 new file mode 100644 index 0000000..1063bd8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsPurge3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Purge3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for monthly and yearly stats purge' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsPurge3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Purge3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup1.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup1.Vester.ps1 new file mode 100644 index 0000000..4b365c1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Rollup1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for daily stats rollup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsRollup1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup2.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup2.Vester.ps1 new file mode 100644 index 0000000..9906df6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Rollup2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for weekly stats rollup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsRollup2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup3.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup3.Vester.ps1 new file mode 100644 index 0000000..f42ac10 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelStatsRollup3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Stats.Rollup3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for monthly stats rollup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelStatsRollup3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Stats.Rollup3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc1.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc1.Vester.ps1 new file mode 100644 index 0000000..cd23803 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Calc1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for topn rank of daily stats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnCalc1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc2.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc2.Vester.ps1 new file mode 100644 index 0000000..54669c0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Calc2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for topn rank of weekly stats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnCalc2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc3.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc3.Vester.ps1 new file mode 100644 index 0000000..f0a5422 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Calc3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for topn rank of monthly stats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnCalc3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc4.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc4.Vester.ps1 new file mode 100644 index 0000000..058b2d4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnCalc4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Calc4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for topn rank of yearly stats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnCalc4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Calc4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge1.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge1.Vester.ps1 new file mode 100644 index 0000000..d9b428f --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Purge1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for purge of daily topns' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnPurge1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge2.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge2.Vester.ps1 new file mode 100644 index 0000000..a912d5f --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Purge2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for purge of weekly topns' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnPurge2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge3.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge3.Vester.ps1 new file mode 100644 index 0000000..386c812 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Purge3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for purge of monthly topns' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnPurge3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge4.Vester.ps1 b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge4.Vester.ps1 new file mode 100644 index 0000000..015ce82 --- /dev/null +++ b/Vester/Tests/vCenter/VC-DBProcLogLevelTopnPurge4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'DBProc.Log.Level.Topn.Purge4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Log level for purge of yearly topns' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.DBProcLogLevelTopnPurge4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "DBProc.Log.Level.Topn.Purge4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-LicenseServermatchHostToVirtualCenter.Vester.ps1 b/Vester/Tests/vCenter/VC-LicenseServermatchHostToVirtualCenter.Vester.ps1 new file mode 100644 index 0000000..574ea97 --- /dev/null +++ b/Vester/Tests/vCenter/VC-LicenseServermatchHostToVirtualCenter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'LicenseServer.matchHostToVirtualCenter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Match host license server to vCenter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.LicenseServermatchHostToVirtualCenter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "LicenseServer.matchHostToVirtualCenter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "LicenseServer.matchHostToVirtualCenter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-MiscvCenterServerUpdateLevel.Vester.ps1 b/Vester/Tests/vCenter/VC-MiscvCenterServerUpdateLevel.Vester.ps1 new file mode 100644 index 0000000..1e45248 --- /dev/null +++ b/Vester/Tests/vCenter/VC-MiscvCenterServerUpdateLevel.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'Misc.vCenterServerUpdateLevel' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'The update level of vCenter Server' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.MiscvCenterServerUpdateLevel + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "Misc.vCenterServerUpdateLevel").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "Misc.vCenterServerUpdateLevel" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-PerfStatsMaxCollectionThreads.Vester.ps1 b/Vester/Tests/vCenter/VC-PerfStatsMaxCollectionThreads.Vester.ps1 new file mode 100644 index 0000000..618a7f6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-PerfStatsMaxCollectionThreads.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'Perf.Stats.MaxCollectionThreads' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Maximum statistics collection threads' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.PerfStatsMaxCollectionThreads + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "Perf.Stats.MaxCollectionThreads").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "Perf.Stats.MaxCollectionThreads" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-SSLVersion.Vester.ps1 b/Vester/Tests/vCenter/VC-SSLVersion.Vester.ps1 new file mode 100644 index 0000000..6f34e3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-SSLVersion.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'SSL.Version' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'SSL version' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.SSLVersion + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "SSL.Version").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "SSL.Version" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_LOGING_MODE.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_LOGING_MODE.Vester.ps1 new file mode 100644 index 0000000..8533906 --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_LOGING_MODE.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_LOGING_MODE' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations log level' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_LOGING_MODE + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_LOGING_MODE").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_LOGING_MODE" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_LOG_BUFFER.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_LOG_BUFFER.Vester.ps1 new file mode 100644 index 0000000..d5b2d4f --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_LOG_BUFFER.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_LOG_BUFFER' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations max log rows' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_LOG_BUFFER + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_LOG_BUFFER").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_LOG_BUFFER" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_1.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_1.Vester.ps1 new file mode 100644 index 0000000..31c077f --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_STATS_DELAY_MINS_1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations daily delay' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_STATS_DELAY_MINS_1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_2.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_2.Vester.ps1 new file mode 100644 index 0000000..15eacdb --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_STATS_DELAY_MINS_2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations weekly delay' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_STATS_DELAY_MINS_2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_3.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_3.Vester.ps1 new file mode 100644 index 0000000..970a57a --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_STATS_DELAY_MINS_3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations monthly delay' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_STATS_DELAY_MINS_3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_4.Vester.ps1 b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_4.Vester.ps1 new file mode 100644 index 0000000..fe5f538 --- /dev/null +++ b/Vester/Tests/vCenter/VC-TOPN_STATS_DELAY_MINS_4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'TOPN_STATS_DELAY_MINS_4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'TopN calculations yearly delay' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.TOPN_STATS_DELAY_MINS_4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "TOPN_STATS_DELAY_MINS_4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterAutoManagedIPV4.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterAutoManagedIPV4.Vester.ps1 new file mode 100644 index 0000000..994843a --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterAutoManagedIPV4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.AutoManagedIPV4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Automatically discovered vCenter management IPv4 address' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterAutoManagedIPV4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.AutoManagedIPV4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.AutoManagedIPV4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterCacheSize.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterCacheSize.Vester.ps1 new file mode 100644 index 0000000..d44c63f --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterCacheSize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.CacheSize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Cache size' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterCacheSize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int64' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.CacheSize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.CacheSize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorConsentData.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorConsentData.Vester.ps1 new file mode 100644 index 0000000..5722a15 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorConsentData.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.DataCollector.ConsentData' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Configuration of the Customer Experience Improvement Program' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterDataCollectorConsentData + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.DataCollector.ConsentData").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.DataCollector.ConsentData" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorSchedule.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorSchedule.Vester.ps1 new file mode 100644 index 0000000..fae49e4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterDataCollectorSchedule.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.DataCollector.Schedule' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Customer experience improvement program data collection schedule' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterDataCollectorSchedule + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.DataCollector.Schedule").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.DataCollector.Schedule" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterFQDN.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterFQDN.Vester.ps1 new file mode 100644 index 0000000..0ffede8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterFQDN.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.FQDN' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'vCenter FQDN' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterFQDN + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.FQDN").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.FQDN" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterHostBiosUuid.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterHostBiosUuid.Vester.ps1 new file mode 100644 index 0000000..d304a02 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterHostBiosUuid.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.HostBiosUuid' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'VirtualCenter Host Bios Uuid' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterHostBiosUuid + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.HostBiosUuid").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.HostBiosUuid" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterInstanceName.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterInstanceName.Vester.ps1 new file mode 100644 index 0000000..31c78d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterInstanceName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.InstanceName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Instance name' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterInstanceName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.InstanceName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.InstanceName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterMaxDBConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterMaxDBConnection.Vester.ps1 new file mode 100644 index 0000000..524d3a6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterMaxDBConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.MaxDBConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Maximum database connections' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterMaxDBConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.MaxDBConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.MaxDBConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterVimApiUrl.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterVimApiUrl.Vester.ps1 new file mode 100644 index 0000000..34caed8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterVimApiUrl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.VimApiUrl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'VIM API URL' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterVimApiUrl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.VimApiUrl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.VimApiUrl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-VirtualCenterVimPasswordExpirationInDays.Vester.ps1 b/Vester/Tests/vCenter/VC-VirtualCenterVimPasswordExpirationInDays.Vester.ps1 new file mode 100644 index 0000000..f10c796 --- /dev/null +++ b/Vester/Tests/vCenter/VC-VirtualCenterVimPasswordExpirationInDays.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'VirtualCenter.VimPasswordExpirationInDays' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Password expiration' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.VirtualCenterVimPasswordExpirationInDays + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.VimPasswordExpirationInDays").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "VirtualCenter.VimPasswordExpirationInDays" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-WebServicePortshttp.Vester.ps1 b/Vester/Tests/vCenter/VC-WebServicePortshttp.Vester.ps1 new file mode 100644 index 0000000..d747849 --- /dev/null +++ b/Vester/Tests/vCenter/VC-WebServicePortshttp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'WebService.Ports.http' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'HTTP port number' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.WebServicePortshttp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "WebService.Ports.http").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "WebService.Ports.http" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-WebServicePortshttps.Vester.ps1 b/Vester/Tests/vCenter/VC-WebServicePortshttps.Vester.ps1 new file mode 100644 index 0000000..5af3c02 --- /dev/null +++ b/Vester/Tests/vCenter/VC-WebServicePortshttps.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'WebService.Ports.https' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'HTTPS port number' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.WebServicePortshttps + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "WebService.Ports.https").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "WebService.Ports.https" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-adscheckInterval.Vester.ps1 b/Vester/Tests/vCenter/VC-adscheckInterval.Vester.ps1 new file mode 100644 index 0000000..4a5c328 --- /dev/null +++ b/Vester/Tests/vCenter/VC-adscheckInterval.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'ads.checkInterval' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'User validation interval' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.adscheckInterval + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "ads.checkInterval").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "ads.checkInterval" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-adscheckIntervalEnabled.Vester.ps1 b/Vester/Tests/vCenter/VC-adscheckIntervalEnabled.Vester.ps1 new file mode 100644 index 0000000..c23cc25 --- /dev/null +++ b/Vester/Tests/vCenter/VC-adscheckIntervalEnabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'ads.checkIntervalEnabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Enable user validation' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.adscheckIntervalEnabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "ads.checkIntervalEnabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "ads.checkIntervalEnabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-adsmaxFetch.Vester.ps1 b/Vester/Tests/vCenter/VC-adsmaxFetch.Vester.ps1 new file mode 100644 index 0000000..ba36f6c --- /dev/null +++ b/Vester/Tests/vCenter/VC-adsmaxFetch.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'ads.maxFetch' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Maximum users to retrieve' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.adsmaxFetch + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "ads.maxFetch").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "ads.maxFetch" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-adsmaxFetchEnabled.Vester.ps1 b/Vester/Tests/vCenter/VC-adsmaxFetchEnabled.Vester.ps1 new file mode 100644 index 0000000..4d6cfb1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-adsmaxFetchEnabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'ads.maxFetchEnabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Enable user retrieve limits' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.adsmaxFetchEnabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "ads.maxFetchEnabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "ads.maxFetchEnabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-adstimeout.Vester.ps1 b/Vester/Tests/vCenter/VC-adstimeout.Vester.ps1 new file mode 100644 index 0000000..88e8706 --- /dev/null +++ b/Vester/Tests/vCenter/VC-adstimeout.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'ads.timeout' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'User retrieve timeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.adstimeout + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "ads.timeout").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "ads.timeout" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-alarmsversion.Vester.ps1 b/Vester/Tests/vCenter/VC-alarmsversion.Vester.ps1 new file mode 100644 index 0000000..ff87057 --- /dev/null +++ b/Vester/Tests/vCenter/VC-alarmsversion.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'alarms.version' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Default alarm upgrade version' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.alarmsversion + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "alarms.version").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "alarms.version" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-clientVerifySSLCertificates.Vester.ps1 b/Vester/Tests/vCenter/VC-clientVerifySSLCertificates.Vester.ps1 new file mode 100644 index 0000000..e916438 --- /dev/null +++ b/Vester/Tests/vCenter/VC-clientVerifySSLCertificates.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'client.VerifySSLCertificates' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Verify SSL certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.clientVerifySSLCertificates + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "client.VerifySSLCertificates").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "client.VerifySSLCertificates" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-clienttimeoutlong.Vester.ps1 b/Vester/Tests/vCenter/VC-clienttimeoutlong.Vester.ps1 new file mode 100644 index 0000000..e166a98 --- /dev/null +++ b/Vester/Tests/vCenter/VC-clienttimeoutlong.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'client.timeout.long' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Long operation client timeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.clienttimeoutlong + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "client.timeout.long").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "client.timeout.long" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-clienttimeoutnormal.Vester.ps1 b/Vester/Tests/vCenter/VC-clienttimeoutnormal.Vester.ps1 new file mode 100644 index 0000000..238bbbe --- /dev/null +++ b/Vester/Tests/vCenter/VC-clienttimeoutnormal.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'client.timeout.normal' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Client timeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.clienttimeoutnormal + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "client.timeout.normal").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "client.timeout.normal" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalarmsvimversion.Vester.ps1 b/Vester/Tests/vCenter/VC-configalarmsvimversion.Vester.ps1 new file mode 100644 index 0000000..0ecfd29 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalarmsvimversion.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alarms.vim.version' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alarms.vim.version' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalarmsvimversion + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alarms.vim.version").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alarms.vim.version" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogenabled.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogenabled.Vester.ps1 new file mode 100644 index 0000000..2ab3b55 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogenabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.enabled' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogenabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogoutputToConsole.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogoutputToConsole.Vester.ps1 new file mode 100644 index 0000000..eebf588 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogoutputToConsole.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.outputToConsole' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.outputToConsole' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogoutputToConsole + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToConsole").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToConsole" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogoutputToFiles.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogoutputToFiles.Vester.ps1 new file mode 100644 index 0000000..a774611 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogoutputToFiles.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.outputToFiles' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.outputToFiles' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogoutputToFiles + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToFiles").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToFiles" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogoutputToSyslog.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogoutputToSyslog.Vester.ps1 new file mode 100644 index 0000000..9faa2d2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogoutputToSyslog.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.outputToSyslog' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.outputToSyslog' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogoutputToSyslog + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToSyslog").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.outputToSyslog" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogsyslogfacility.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogsyslogfacility.Vester.ps1 new file mode 100644 index 0000000..45a6744 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogsyslogfacility.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.syslog.facility' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.syslog.facility' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogsyslogfacility + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.facility").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.facility" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogsyslogident.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogsyslogident.Vester.ps1 new file mode 100644 index 0000000..cfcb2a6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogsyslogident.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.syslog.ident' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.syslog.ident' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogsyslogident + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.ident").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.ident" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configalertlogsysloglogHeaderFile.Vester.ps1 b/Vester/Tests/vCenter/VC-configalertlogsysloglogHeaderFile.Vester.ps1 new file mode 100644 index 0000000..52004e9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configalertlogsysloglogHeaderFile.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.alert.log.syslog.logHeaderFile' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.alert.log.syslog.logHeaderFile' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configalertlogsysloglogHeaderFile + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.logHeaderFile").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.alert.log.syslog.logHeaderFile" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configdrskvstorelocal.Vester.ps1 b/Vester/Tests/vCenter/VC-configdrskvstorelocal.Vester.ps1 new file mode 100644 index 0000000..3414dd8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configdrskvstorelocal.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.drs.kvstore.local' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.drs.kvstore.local' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configdrskvstorelocal + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.drs.kvstore.local").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.drs.kvstore.local" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlicenseclientlsNotificationsSyncSeconds.Vester.ps1 b/Vester/Tests/vCenter/VC-configlicenseclientlsNotificationsSyncSeconds.Vester.ps1 new file mode 100644 index 0000000..dc2238f --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlicenseclientlsNotificationsSyncSeconds.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.license.client.lsNotificationsSyncSeconds' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.license.client.lsNotificationsSyncSeconds' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlicenseclientlsNotificationsSyncSeconds + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.license.client.lsNotificationsSyncSeconds").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.license.client.lsNotificationsSyncSeconds" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlicenseclientoldServerLsNotificationsSyncSeconds.Vester.ps1 b/Vester/Tests/vCenter/VC-configlicenseclientoldServerLsNotificationsSyncSeconds.Vester.ps1 new file mode 100644 index 0000000..aec9ac5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlicenseclientoldServerLsNotificationsSyncSeconds.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.license.client.oldServerLsNotificationsSyncSeconds' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.license.client.oldServerLsNotificationsSyncSeconds' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlicenseclientoldServerLsNotificationsSyncSeconds + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.license.client.oldServerLsNotificationsSyncSeconds").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.license.client.oldServerLsNotificationsSyncSeconds" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogcompressOnRoll.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogcompressOnRoll.Vester.ps1 new file mode 100644 index 0000000..2cc4091 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogcompressOnRoll.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.compressOnRoll' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.compressOnRoll' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogcompressOnRoll + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.compressOnRoll").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.compressOnRoll" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configloglevel.Vester.ps1 b/Vester/Tests/vCenter/VC-configloglevel.Vester.ps1 new file mode 100644 index 0000000..0963b18 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configloglevel.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.level' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.level' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configloglevel + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.level").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.level" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogmaxFileNum.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogmaxFileNum.Vester.ps1 new file mode 100644 index 0000000..78a8fed --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogmaxFileNum.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.maxFileNum' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.maxFileNum' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogmaxFileNum + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.maxFileNum").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.maxFileNum" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogmaxFileSize.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogmaxFileSize.Vester.ps1 new file mode 100644 index 0000000..3baaf9b --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogmaxFileSize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.maxFileSize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.maxFileSize' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogmaxFileSize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.maxFileSize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.maxFileSize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogoutputToConsole.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogoutputToConsole.Vester.ps1 new file mode 100644 index 0000000..681da3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogoutputToConsole.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.outputToConsole' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.outputToConsole' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogoutputToConsole + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.outputToConsole").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.outputToConsole" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogoutputToFiles.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogoutputToFiles.Vester.ps1 new file mode 100644 index 0000000..6c7bfd5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogoutputToFiles.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.outputToFiles' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.outputToFiles' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogoutputToFiles + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.outputToFiles").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.outputToFiles" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogoutputToSyslog.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogoutputToSyslog.Vester.ps1 new file mode 100644 index 0000000..48b8915 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogoutputToSyslog.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.outputToSyslog' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.outputToSyslog' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogoutputToSyslog + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.outputToSyslog").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.outputToSyslog" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogsyslogfacility.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogsyslogfacility.Vester.ps1 new file mode 100644 index 0000000..ddc48fc --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogsyslogfacility.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.syslog.facility' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.syslog.facility' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogsyslogfacility + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.facility").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.facility" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogsyslogident.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogsyslogident.Vester.ps1 new file mode 100644 index 0000000..5cb9221 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogsyslogident.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.syslog.ident' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.syslog.ident' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogsyslogident + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.ident").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.ident" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configlogsysloglogHeaderFile.Vester.ps1 b/Vester/Tests/vCenter/VC-configlogsysloglogHeaderFile.Vester.ps1 new file mode 100644 index 0000000..a27c1b5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configlogsysloglogHeaderFile.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.log.syslog.logHeaderFile' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.log.syslog.logHeaderFile' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configlogsysloglogHeaderFile + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.logHeaderFile").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.log.syslog.logHeaderFile" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configregistryDBkey_2.Vester.ps1 b/Vester/Tests/vCenter/VC-configregistryDBkey_2.Vester.ps1 new file mode 100644 index 0000000..0e63fee --- /dev/null +++ b/Vester/Tests/vCenter/VC-configregistryDBkey_2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.registry.DB.key_2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.registry.DB.key_2' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configregistryDBkey_2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.registry.DB.key_2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.registry.DB.key_2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configregistryDBkey_3.Vester.ps1 b/Vester/Tests/vCenter/VC-configregistryDBkey_3.Vester.ps1 new file mode 100644 index 0000000..c4e4d79 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configregistryDBkey_3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.registry.DB.key_3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.registry.DB.key_3' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configregistryDBkey_3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.registry.DB.key_3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.registry.DB.key_3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configregistrykey_EvaluationExpiryDate.Vester.ps1 b/Vester/Tests/vCenter/VC-configregistrykey_EvaluationExpiryDate.Vester.ps1 new file mode 100644 index 0000000..87d3191 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configregistrykey_EvaluationExpiryDate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.registry.key_EvaluationExpiryDate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.registry.key_EvaluationExpiryDate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configregistrykey_EvaluationExpiryDate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.registry.key_EvaluationExpiryDate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.registry.key_EvaluationExpiryDate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configregistrykey_VCVmId.Vester.ps1 b/Vester/Tests/vCenter/VC-configregistrykey_VCVmId.Vester.ps1 new file mode 100644 index 0000000..08752d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configregistrykey_VCVmId.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.registry.key_VCVmId' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.registry.key_VCVmId' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configregistrykey_VCVmId + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.registry.key_VCVmId").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.registry.key_VCVmId" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configtaskminCompletedLifetime.Vester.ps1 b/Vester/Tests/vCenter/VC-configtaskminCompletedLifetime.Vester.ps1 new file mode 100644 index 0000000..738e4ea --- /dev/null +++ b/Vester/Tests/vCenter/VC-configtaskminCompletedLifetime.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.task.minCompletedLifetime' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.task.minCompletedLifetime' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configtaskminCompletedLifetime + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.task.minCompletedLifetime").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.task.minCompletedLifetime" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvmacorecacheProperties.Vester.ps1 b/Vester/Tests/vCenter/VC-configvmacorecacheProperties.Vester.ps1 new file mode 100644 index 0000000..c56def5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvmacorecacheProperties.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vmacore.cacheProperties' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vmacore.cacheProperties' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvmacorecacheProperties + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vmacore.cacheProperties").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vmacore.cacheProperties" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvmacorethreadPoolTaskMax.Vester.ps1 b/Vester/Tests/vCenter/VC-configvmacorethreadPoolTaskMax.Vester.ps1 new file mode 100644 index 0000000..1df5dfe --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvmacorethreadPoolTaskMax.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vmacore.threadPool.TaskMax' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vmacore.threadPool.TaskMax' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvmacorethreadPoolTaskMax + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vmacore.threadPool.TaskMax").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vmacore.threadPool.TaskMax" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvmacorethreadPoolthreadNamePrefix.Vester.ps1 b/Vester/Tests/vCenter/VC-configvmacorethreadPoolthreadNamePrefix.Vester.ps1 new file mode 100644 index 0000000..ac3bd27 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvmacorethreadPoolthreadNamePrefix.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vmacore.threadPool.threadNamePrefix' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vmacore.threadPool.threadNamePrefix' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvmacorethreadPoolthreadNamePrefix + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vmacore.threadPool.threadNamePrefix").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vmacore.threadPool.threadNamePrefix" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdcertprefixsolutionUser.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdcertprefixsolutionUser.Vester.ps1 new file mode 100644 index 0000000..9dc7188 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdcertprefixsolutionUser.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.cert.prefix.solutionUser' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.cert.prefix.solutionUser' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdcertprefixsolutionUser + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.cert.prefix.solutionUser").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.cert.prefix.solutionUser" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdcertprefixssl.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdcertprefixssl.Vester.ps1 new file mode 100644 index 0000000..af90e17 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdcertprefixssl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.cert.prefix.ssl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.cert.prefix.ssl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdcertprefixssl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.cert.prefix.ssl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.cert.prefix.ssl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdenableDebugBrowse.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdenableDebugBrowse.Vester.ps1 new file mode 100644 index 0000000..5f5c5b0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdenableDebugBrowse.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.enableDebugBrowse' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Debug Managed Object Browser enabled' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdenableDebugBrowse + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.enableDebugBrowse").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.enableDebugBrowse" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdfilterOverheadLimitIssues.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdfilterOverheadLimitIssues.Vester.ps1 new file mode 100644 index 0000000..378c97f --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdfilterOverheadLimitIssues.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.filterOverheadLimitIssues' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.filterOverheadLimitIssues' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdfilterOverheadLimitIssues + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.filterOverheadLimitIssues").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.filterOverheadLimitIssues" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdheartbeatudpport.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdheartbeatudpport.Vester.ps1 new file mode 100644 index 0000000..3103a35 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdheartbeatudpport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.heartbeat.udp-port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.heartbeat.udp-port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdheartbeatudpport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.heartbeat.udp-port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.heartbeat.udp-port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostGatewayenabled.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostGatewayenabled.Vester.ps1 new file mode 100644 index 0000000..88f3a44 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostGatewayenabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostGateway.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostGateway.enabled' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostGatewayenabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostGateway.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostGateway.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostGatewaygatewaySource.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostGatewaygatewaySource.Vester.ps1 new file mode 100644 index 0000000..3d6cacb --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostGatewaygatewaySource.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostGateway.gatewaySource' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostGateway.gatewaySource' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostGatewaygatewaySource + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostGateway.gatewaySource").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostGateway.gatewaySource" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesdisableSecureManager.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesdisableSecureManager.Vester.ps1 new file mode 100644 index 0000000..b64807b --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesdisableSecureManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.disableSecureManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.disableSecureManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesdisableSecureManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.disableSecureManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.disableSecureManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesdrsReservedCapacity.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesdrsReservedCapacity.Vester.ps1 new file mode 100644 index 0000000..e4a0db9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesdrsReservedCapacity.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.drsReservedCapacity' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.drsReservedCapacity' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesdrsReservedCapacity + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.drsReservedCapacity").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.drsReservedCapacity" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesenterMMTimeout.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesenterMMTimeout.Vester.ps1 new file mode 100644 index 0000000..66fd033 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesenterMMTimeout.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.enterMMTimeout' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.enterMMTimeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesenterMMTimeout + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.enterMMTimeout").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.enterMMTimeout" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesmetadataCacheEnabled.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesmetadataCacheEnabled.Vester.ps1 new file mode 100644 index 0000000..f803be1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesmetadataCacheEnabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.metadataCacheEnabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.metadataCacheEnabled' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesmetadataCacheEnabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.metadataCacheEnabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.metadataCacheEnabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesrebootTimeout.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesrebootTimeout.Vester.ps1 new file mode 100644 index 0000000..407c5a3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesrebootTimeout.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.rebootTimeout' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.rebootTimeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesrebootTimeout + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.rebootTimeout").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.rebootTimeout" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostProfilesstatefulCollectHostSpec.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostProfilesstatefulCollectHostSpec.Vester.ps1 new file mode 100644 index 0000000..4a5fe35 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostProfilesstatefulCollectHostSpec.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostProfiles.statefulCollectHostSpec' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostProfiles.statefulCollectHostSpec' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostProfilesstatefulCollectHostSpec + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.statefulCollectHostSpec").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostProfiles.statefulCollectHostSpec" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdhostnameUrl.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdhostnameUrl.Vester.ps1 new file mode 100644 index 0000000..8115621 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdhostnameUrl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.hostnameUrl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.hostnameUrl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdhostnameUrl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostnameUrl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.hostnameUrl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdinstanceName.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdinstanceName.Vester.ps1 new file mode 100644 index 0000000..5e5cf87 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdinstanceName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.instanceName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.instanceName' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdinstanceName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.instanceName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.instanceName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdlicenseEdition.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdlicenseEdition.Vester.ps1 new file mode 100644 index 0000000..608cd20 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdlicenseEdition.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.licenseEdition' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.licenseEdition' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdlicenseEdition + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.licenseEdition").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.licenseEdition" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdmemCheckermemStopInMB.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdmemCheckermemStopInMB.Vester.ps1 new file mode 100644 index 0000000..a99b048 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdmemCheckermemStopInMB.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.memChecker.memStopInMB' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.memChecker.memStopInMB' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdmemCheckermemStopInMB + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.memChecker.memStopInMB").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.memChecker.memStopInMB" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdnetworkrollback.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdnetworkrollback.Vester.ps1 new file mode 100644 index 0000000..01371d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdnetworkrollback.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.network.rollback' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.network.rollback' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdnetworkrollback + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.network.rollback").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.network.rollback" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdodbcdbtype.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdodbcdbtype.Vester.ps1 new file mode 100644 index 0000000..a9ea717 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdodbcdbtype.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.odbc.dbtype' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.odbc.dbtype' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdodbcdbtype + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.odbc.dbtype").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.odbc.dbtype" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdodbcdsn.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdodbcdsn.Vester.ps1 new file mode 100644 index 0000000..073667b --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdodbcdsn.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.odbc.dsn' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.odbc.dsn' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdodbcdsn + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.odbc.dsn").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.odbc.dsn" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpport.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpport.Vester.ps1 new file mode 100644 index 0000000..803f9ca --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.rhttpproxy.httpport' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.rhttpproxy.httpport' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdrhttpproxyhttpport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.rhttpproxy.httpport").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.rhttpproxy.httpport" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpsport.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpsport.Vester.ps1 new file mode 100644 index 0000000..eff5823 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdrhttpproxyhttpsport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.rhttpproxy.httpsport' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.rhttpproxy.httpsport' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdrhttpproxyhttpsport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.rhttpproxy.httpsport").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.rhttpproxy.httpsport" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdsecureSoapPort.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdsecureSoapPort.Vester.ps1 new file mode 100644 index 0000000..5754536 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdsecureSoapPort.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.secureSoapPort' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.secureSoapPort' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdsecureSoapPort + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.secureSoapPort").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.secureSoapPort" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdsoapPort.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdsoapPort.Vester.ps1 new file mode 100644 index 0000000..899227f --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdsoapPort.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.soapPort' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.soapPort' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdsoapPort + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.soapPort").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.soapPort" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdsslCAPath.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdsslCAPath.Vester.ps1 new file mode 100644 index 0000000..e66dcd9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdsslCAPath.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.ssl.CAPath' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.ssl.CAPath' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdsslCAPath + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.ssl.CAPath").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.ssl.CAPath" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssoadminuri.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssoadminuri.Vester.ps1 new file mode 100644 index 0000000..fe88a5b --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssoadminuri.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.admin.uri' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.admin.uri' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssoadminuri + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.admin.uri").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.admin.uri" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssodefaultadmin.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssodefaultadmin.Vester.ps1 new file mode 100644 index 0000000..dfb0f5f --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssodefaultadmin.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.default.admin' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.default.admin' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssodefaultadmin + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.default.admin").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.default.admin" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssodefaultisGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssodefaultisGroup.Vester.ps1 new file mode 100644 index 0000000..4ef263a --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssodefaultisGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.default.isGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.default.isGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssodefaultisGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.default.isGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.default.isGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssoenabled.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssoenabled.Vester.ps1 new file mode 100644 index 0000000..36760bc --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssoenabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.enabled' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssoenabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssogroupcheckuri.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssogroupcheckuri.Vester.ps1 new file mode 100644 index 0000000..9d9a8a5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssogroupcheckuri.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.groupcheck.uri' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.groupcheck.uri' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssogroupcheckuri + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.groupcheck.uri").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.groupcheck.uri" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssosolutionUsercertificate.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssosolutionUsercertificate.Vester.ps1 new file mode 100644 index 0000000..67d3cd8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssosolutionUsercertificate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.solutionUser.certificate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.solutionUser.certificate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssosolutionUsercertificate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.certificate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.certificate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssosolutionUsername.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssosolutionUsername.Vester.ps1 new file mode 100644 index 0000000..b3ce196 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssosolutionUsername.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.solutionUser.name' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.solutionUser.name' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssosolutionUsername + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.name").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.name" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssosolutionUserprivateKey.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssosolutionUserprivateKey.Vester.ps1 new file mode 100644 index 0000000..03710ef --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssosolutionUserprivateKey.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.solutionUser.privateKey' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.solutionUser.privateKey' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssosolutionUserprivateKey + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.privateKey").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.solutionUser.privateKey" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdssostsuri.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdssostsuri.Vester.ps1 new file mode 100644 index 0000000..ea65159 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdssostsuri.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.sso.sts.uri' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.sso.sts.uri' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdssostsuri + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.sts.uri").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.sso.sts.uri" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdsupportscriptDirectory.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdsupportscriptDirectory.Vester.ps1 new file mode 100644 index 0000000..c4d9526 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdsupportscriptDirectory.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.support.scriptDirectory' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.support.scriptDirectory' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdsupportscriptDirectory + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.support.scriptDirectory").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.support.scriptDirectory" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdvchadrsAntiAffinity.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdvchadrsAntiAffinity.Vester.ps1 new file mode 100644 index 0000000..f84f799 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdvchadrsAntiAffinity.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.vcha.drsAntiAffinity' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.vcha.drsAntiAffinity' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdvchadrsAntiAffinity + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vcha.drsAntiAffinity").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vcha.drsAntiAffinity" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdvecsstoreName.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdvecsstoreName.Vester.ps1 new file mode 100644 index 0000000..fca0c09 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdvecsstoreName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.vecs.storeName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.vecs.storeName' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdvecsstoreName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vecs.storeName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vecs.storeName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configvpxdvsandynmgrenable.Vester.ps1 b/Vester/Tests/vCenter/VC-configvpxdvsandynmgrenable.Vester.ps1 new file mode 100644 index 0000000..53f8861 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configvpxdvsandynmgrenable.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.vpxd.vsan.dynmgr.enable' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.vpxd.vsan.dynmgr.enable' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configvpxdvsandynmgrenable + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vsan.dynmgr.enable").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.vpxd.vsan.dynmgr.enable" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-configworkflowport.Vester.ps1 b/Vester/Tests/vCenter/VC-configworkflowport.Vester.ps1 new file mode 100644 index 0000000..b8baae9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-configworkflowport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'config.workflow.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'config.workflow.port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.configworkflowport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "config.workflow.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "config.workflow.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-etcissue.Vester.ps1 b/Vester/Tests/vCenter/VC-etcissue.Vester.ps1 new file mode 100644 index 0000000..e26fba2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-etcissue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'etc.issue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = '/etc/issue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.etcissue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "etc.issue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "etc.issue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-eventbatchsize.Vester.ps1 b/Vester/Tests/vCenter/VC-eventbatchsize.Vester.ps1 new file mode 100644 index 0000000..682a7ca --- /dev/null +++ b/Vester/Tests/vCenter/VC-eventbatchsize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'event.batchsize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Batch size in cleanup events procedure' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.eventbatchsize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "event.batchsize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "event.batchsize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-instanceid.Vester.ps1 b/Vester/Tests/vCenter/VC-instanceid.Vester.ps1 new file mode 100644 index 0000000..8f455ba --- /dev/null +++ b/Vester/Tests/vCenter/VC-instanceid.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'instance.id' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Instance ID' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.instanceid + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "instance.id").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "instance.id" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAlarm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAlarm.Vester.ps1 new file mode 100644 index 0000000..064e4a1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAlarm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Alarm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Alarm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAlarm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Alarm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Alarm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAlarmXAction.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAlarmXAction.Vester.ps1 new file mode 100644 index 0000000..a00b9b4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAlarmXAction.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.AlarmXAction' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.AlarmXAction' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAlarmXAction + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.AlarmXAction").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.AlarmXAction" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAlert.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAlert.Vester.ps1 new file mode 100644 index 0000000..ef1e72e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAlert.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Alert' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Alert' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAlert + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Alert").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Alert" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerApp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerApp.Vester.ps1 new file mode 100644 index 0000000..7bb98c7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerApp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.App' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.App' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerApp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.App").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.App" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAssetPropertiesUpdater.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAssetPropertiesUpdater.Vester.ps1 new file mode 100644 index 0000000..b25e256 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAssetPropertiesUpdater.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.AssetPropertiesUpdater' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.AssetPropertiesUpdater' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAssetPropertiesUpdater + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.AssetPropertiesUpdater").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.AssetPropertiesUpdater" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAttestation.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAttestation.Vester.ps1 new file mode 100644 index 0000000..3f7f98a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAttestation.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Attestation' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Attestation' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAttestation + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Attestation").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Attestation" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAuth_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAuth_win32.Vester.ps1 new file mode 100644 index 0000000..686dc6f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAuth_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Auth_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Auth_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAuth_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Auth_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Auth_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAuthorize.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAuthorize.Vester.ps1 new file mode 100644 index 0000000..7809baf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAuthorize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Authorize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Authorize' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAuthorize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Authorize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Authorize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAuthorizeManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAuthorizeManager.Vester.ps1 new file mode 100644 index 0000000..006481e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAuthorizeManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.AuthorizeManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.AuthorizeManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAuthorizeManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.AuthorizeManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.AuthorizeManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerAuthzStorageProvider.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerAuthzStorageProvider.Vester.ps1 new file mode 100644 index 0000000..e93562e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerAuthzStorageProvider.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.AuthzStorageProvider' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.AuthzStorageProvider' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerAuthzStorageProvider + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.AuthzStorageProvider").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.AuthzStorageProvider" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerBackupRestore.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerBackupRestore.Vester.ps1 new file mode 100644 index 0000000..98bfeba --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerBackupRestore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.BackupRestore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.BackupRestore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerBackupRestore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.BackupRestore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.BackupRestore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCallbackServiceManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCallbackServiceManager.Vester.ps1 new file mode 100644 index 0000000..ad16ffe --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCallbackServiceManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CallbackServiceManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CallbackServiceManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCallbackServiceManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CallbackServiceManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CallbackServiceManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCertificateClientLogin.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCertificateClientLogin.Vester.ps1 new file mode 100644 index 0000000..55ed918 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCertificateClientLogin.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CertificateClientLogin' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CertificateClientLogin' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCertificateClientLogin + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CertificateClientLogin").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CertificateClientLogin" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerClientAdapterBase.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerClientAdapterBase.Vester.ps1 new file mode 100644 index 0000000..926a409 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerClientAdapterBase.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ClientAdapterBase' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ClientAdapterBase' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerClientAdapterBase + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ClientAdapterBase").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ClientAdapterBase" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerClientPreload.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerClientPreload.Vester.ps1 new file mode 100644 index 0000000..f3ebc05 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerClientPreload.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ClientPreload' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ClientPreload' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerClientPreload + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ClientPreload").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ClientPreload" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerClientUpgrader.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerClientUpgrader.Vester.ps1 new file mode 100644 index 0000000..ee8572e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerClientUpgrader.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ClientUpgrader' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ClientUpgrader' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerClientUpgrader + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ClientUpgrader").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ClientUpgrader" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerComputeResEventMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerComputeResEventMgr.Vester.ps1 new file mode 100644 index 0000000..12d726b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerComputeResEventMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ComputeResEventMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ComputeResEventMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerComputeResEventMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ComputeResEventMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ComputeResEventMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerComputeResLock.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerComputeResLock.Vester.ps1 new file mode 100644 index 0000000..64044e1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerComputeResLock.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ComputeResLock' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ComputeResLock' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerComputeResLock + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ComputeResLock").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ComputeResLock" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerConfigIssue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerConfigIssue.Vester.ps1 new file mode 100644 index 0000000..7012426 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerConfigIssue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ConfigIssue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ConfigIssue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerConfigIssue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ConfigIssue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ConfigIssue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCpuFeatures.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCpuFeatures.Vester.ps1 new file mode 100644 index 0000000..c75f154 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCpuFeatures.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CpuFeatures' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CpuFeatures' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCpuFeatures + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CpuFeatures").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CpuFeatures" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCryptHelper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCryptHelper.Vester.ps1 new file mode 100644 index 0000000..322e122 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCryptHelper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CryptHelper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CryptHelper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCryptHelper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CryptHelper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CryptHelper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCryptUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCryptUtil.Vester.ps1 new file mode 100644 index 0000000..800e6cf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCryptUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CryptUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CryptUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCryptUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CryptUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CryptUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCrypter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCrypter.Vester.ps1 new file mode 100644 index 0000000..dd2efd7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCrypter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Crypter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Crypter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCrypter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Crypter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Crypter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCryptoManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCryptoManager.Vester.ps1 new file mode 100644 index 0000000..9248a37 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCryptoManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CryptoManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CryptoManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCryptoManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CryptoManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CryptoManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerCryptoManagerKmipWrapper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerCryptoManagerKmipWrapper.Vester.ps1 new file mode 100644 index 0000000..8bb0fd5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerCryptoManagerKmipWrapper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.CryptoManagerKmipWrapper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.CryptoManagerKmipWrapper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerCryptoManagerKmipWrapper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.CryptoManagerKmipWrapper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.CryptoManagerKmipWrapper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDAS.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDAS.Vester.ps1 new file mode 100644 index 0000000..f303759 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDAS.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DAS' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DAS' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDAS + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DAS").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DAS" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDaemon.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDaemon.Vester.ps1 new file mode 100644 index 0000000..b486086 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDaemon.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Daemon' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Daemon' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDaemon + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Daemon").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Daemon" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDatastore.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDatastore.Vester.ps1 new file mode 100644 index 0000000..bdf5591 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDatastore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Datastore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Datastore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDatastore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Datastore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Datastore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbBulkLoader.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbBulkLoader.Vester.ps1 new file mode 100644 index 0000000..a844a12 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbBulkLoader.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbBulkLoader' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbBulkLoader' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbBulkLoader + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbBulkLoader").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbBulkLoader" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbDelete.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbDelete.Vester.ps1 new file mode 100644 index 0000000..965f6ce --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbDelete.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbDelete' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbDelete' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbDelete + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbDelete").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbDelete" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbHelper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbHelper.Vester.ps1 new file mode 100644 index 0000000..9b1a8d0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbHelper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbHelper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbHelper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbHelper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbHelper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbHelper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbLoad.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbLoad.Vester.ps1 new file mode 100644 index 0000000..a576e8a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbLoad.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbLoad' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbLoad' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbLoad + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbLoad").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbLoad" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbMonitoring.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbMonitoring.Vester.ps1 new file mode 100644 index 0000000..600e9f0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbMonitoring.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbMonitoring' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbMonitoring' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbMonitoring + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbMonitoring").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbMonitoring" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbParallelLoader.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbParallelLoader.Vester.ps1 new file mode 100644 index 0000000..ea31314 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbParallelLoader.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbParallelLoader' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbParallelLoader' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbParallelLoader + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbParallelLoader").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbParallelLoader" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbSave.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbSave.Vester.ps1 new file mode 100644 index 0000000..b7b0b2f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbSave.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbSave' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbSave' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbSave + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbSave").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbSave" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbSchemaHash.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbSchemaHash.Vester.ps1 new file mode 100644 index 0000000..e2e8dfb --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbSchemaHash.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbSchemaHash' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbSchemaHash' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbSchemaHash + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbSchemaHash").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbSchemaHash" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbUpdate.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbUpdate.Vester.ps1 new file mode 100644 index 0000000..e3e8dce --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbUpdate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbUpdate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbUpdate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbUpdate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbUpdate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbUpdate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDbUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDbUtil.Vester.ps1 new file mode 100644 index 0000000..0ad4f6d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDbUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DbUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DbUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDbUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DbUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DbUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDebugBrowser.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDebugBrowser.Vester.ps1 new file mode 100644 index 0000000..b02357a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDebugBrowser.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DebugBrowser' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DebugBrowser' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDebugBrowser + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPService.Vester.ps1 new file mode 100644 index 0000000..a0206eb --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DebugBrowser.HTTPService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DebugBrowser.HTTPService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDebugBrowserHTTPService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser.HTTPService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser.HTTPService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPServiceHttpConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPServiceHttpConnection.Vester.ps1 new file mode 100644 index 0000000..10f34fc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDebugBrowserHTTPServiceHttpConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DebugBrowser.HTTPService.HttpConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DebugBrowser.HTTPService.HttpConnection' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDebugBrowserHTTPServiceHttpConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser.HTTPService.HttpConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DebugBrowser.HTTPService.HttpConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDefault.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDefault.Vester.ps1 new file mode 100644 index 0000000..dac96a8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDefault.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Default' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Default' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDefault + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Default").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Default" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDvpgSender.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDvpgSender.Vester.ps1 new file mode 100644 index 0000000..2ccad44 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDvpgSender.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DvpgSender' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DvpgSender' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDvpgSender + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DvpgSender").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DvpgSender" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDvsCore.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDvsCore.Vester.ps1 new file mode 100644 index 0000000..fc27107 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDvsCore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DvsCore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DvsCore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDvsCore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DvsCore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DvsCore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDvsHostMethodDispatcher.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDvsHostMethodDispatcher.Vester.ps1 new file mode 100644 index 0000000..753f428 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDvsHostMethodDispatcher.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DvsHostMethodDispatcher' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DvsHostMethodDispatcher' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDvsHostMethodDispatcher + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DvsHostMethodDispatcher").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DvsHostMethodDispatcher" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDvsLock.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDvsLock.Vester.ps1 new file mode 100644 index 0000000..6ff95ce --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDvsLock.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DvsLock' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DvsLock' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDvsLock + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DvsLock").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DvsLock" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerDvsUtils.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerDvsUtils.Vester.ps1 new file mode 100644 index 0000000..ab1a303 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerDvsUtils.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.DvsUtils' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.DvsUtils' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerDvsUtils + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.DvsUtils").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.DvsUtils" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerEventLsNotificationsProcessor.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerEventLsNotificationsProcessor.Vester.ps1 new file mode 100644 index 0000000..1ab44b5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerEventLsNotificationsProcessor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.EventLsNotificationsProcessor' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.EventLsNotificationsProcessor' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerEventLsNotificationsProcessor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.EventLsNotificationsProcessor").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.EventLsNotificationsProcessor" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerEventTaskCleanup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerEventTaskCleanup.Vester.ps1 new file mode 100644 index 0000000..6547388 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerEventTaskCleanup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.EventTaskCleanup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.EventTaskCleanup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerEventTaskCleanup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.EventTaskCleanup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.EventTaskCleanup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerExternalStatsManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerExternalStatsManager.Vester.ps1 new file mode 100644 index 0000000..db7bcf7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerExternalStatsManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ExternalStatsManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ExternalStatsManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerExternalStatsManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ExternalStatsManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ExternalStatsManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerFailoverClusterConfigurator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerFailoverClusterConfigurator.Vester.ps1 new file mode 100644 index 0000000..2801797 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerFailoverClusterConfigurator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.FailoverClusterConfigurator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.FailoverClusterConfigurator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerFailoverClusterConfigurator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.FailoverClusterConfigurator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.FailoverClusterConfigurator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerFailoverClusterManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerFailoverClusterManager.Vester.ps1 new file mode 100644 index 0000000..2728227 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerFailoverClusterManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.FailoverClusterManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.FailoverClusterManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerFailoverClusterManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.FailoverClusterManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.FailoverClusterManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerFairScheduler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerFairScheduler.Vester.ps1 new file mode 100644 index 0000000..83514c6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerFairScheduler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.FairScheduler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.FairScheduler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerFairScheduler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.FairScheduler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.FairScheduler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerGuestName.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerGuestName.Vester.ps1 new file mode 100644 index 0000000..6221012 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerGuestName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.GuestName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.GuestName' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerGuestName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.GuestName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.GuestName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHTTPserver.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHTTPserver.Vester.ps1 new file mode 100644 index 0000000..543781a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHTTPserver.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HTTP server' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HTTP server' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHTTPserver + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HTTP server").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HTTP server" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHTTPsessionmap.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHTTPsessionmap.Vester.ps1 new file mode 100644 index 0000000..f7736b8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHTTPsessionmap.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HTTP session map' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HTTP session map' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHTTPsessionmap + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HTTP session map").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HTTP session map" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHealth.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHealth.Vester.ps1 new file mode 100644 index 0000000..c161583 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHealth.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Health' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Health' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHealth + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Health").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Health" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHeartbeat.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHeartbeat.Vester.ps1 new file mode 100644 index 0000000..865c2d8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHeartbeat.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Heartbeat' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Heartbeat' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHeartbeat + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Heartbeat").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Heartbeat" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostAccess.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostAccess.Vester.ps1 new file mode 100644 index 0000000..10cd314 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostAccess.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostAccess' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostAccess' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostAccess + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostAccess").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostAccess" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostCnx.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostCnx.Vester.ps1 new file mode 100644 index 0000000..187ca0c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostCnx.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostCnx' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostCnx' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostCnx + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostCnx").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostCnx" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostGateway.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostGateway.Vester.ps1 new file mode 100644 index 0000000..426261e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostGateway.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostGateway' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostGateway' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostGateway + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostGateway").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostGateway" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostLocaleUpdater.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostLocaleUpdater.Vester.ps1 new file mode 100644 index 0000000..0408394 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostLocaleUpdater.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostLocaleUpdater' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostLocaleUpdater' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostLocaleUpdater + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostLocaleUpdater").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostLocaleUpdater" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostPicker.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostPicker.Vester.ps1 new file mode 100644 index 0000000..4cae041 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostPicker.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostPicker' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostPicker' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostPicker + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostPicker").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostPicker" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostRecover.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostRecover.Vester.ps1 new file mode 100644 index 0000000..ae998b1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostRecover.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostRecover' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostRecover' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostRecover + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostRecover").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostRecover" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostSyncLockHelper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostSyncLockHelper.Vester.ps1 new file mode 100644 index 0000000..c02dfe7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostSyncLockHelper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostSyncLockHelper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostSyncLockHelper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostSyncLockHelper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostSyncLockHelper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostSyncLockHelper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHostUpgrader.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHostUpgrader.Vester.ps1 new file mode 100644 index 0000000..ef7fa2f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHostUpgrader.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HostUpgrader' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HostUpgrader' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHostUpgrader + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HostUpgrader").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HostUpgrader" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000000.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000000.Vester.ps1 new file mode 100644 index 0000000..fe877de --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000000.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000000' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000000' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000000 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000000").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000000" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000001.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000001.Vester.ps1 new file mode 100644 index 0000000..585ba6c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000001.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000001' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000001' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000001 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000001").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000001" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000004.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000004.Vester.ps1 new file mode 100644 index 0000000..454f3ae --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000004.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000004' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000004' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000004 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000004").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000004" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000006.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000006.Vester.ps1 new file mode 100644 index 0000000..ce784cc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000006.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000006' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000006' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000006 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000006").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000006" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000007.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000007.Vester.ps1 new file mode 100644 index 0000000..e1c4b47 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000007.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000007' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000007' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000007 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000007").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000007" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000010.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000010.Vester.ps1 new file mode 100644 index 0000000..75db231 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000010.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000010' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000010' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000010 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000010").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000010" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000011.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000011.Vester.ps1 new file mode 100644 index 0000000..ec1e764 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000011.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000011' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000011' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000011 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000011").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000011" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000012.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000012.Vester.ps1 new file mode 100644 index 0000000..2283d13 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000012.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000012' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000012' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000012 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000012").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000012" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000013.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000013.Vester.ps1 new file mode 100644 index 0000000..40eb614 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000013.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000013' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000013' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000013 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000013").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000013" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000015.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000015.Vester.ps1 new file mode 100644 index 0000000..16349ab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000015.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000015' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000015' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000015 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000015").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000015" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000017.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000017.Vester.ps1 new file mode 100644 index 0000000..7013465 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000017.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000017' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000017' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000017 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000017").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000017" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000019.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000019.Vester.ps1 new file mode 100644 index 0000000..59f9e57 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000019.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000019' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000019' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000019 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000019").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000019" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000023.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000023.Vester.ps1 new file mode 100644 index 0000000..942d0f1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpConnectionPool000023.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpConnectionPool-000023' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpConnectionPool-000023' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpConnectionPool000023 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000023").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpConnectionPool-000023" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpNfcBridgeHandler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpNfcBridgeHandler.Vester.ps1 new file mode 100644 index 0000000..23bb644 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpNfcBridgeHandler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpNfcBridgeHandler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpNfcBridgeHandler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpNfcBridgeHandler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpNfcBridgeHandler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpNfcBridgeHandler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpNfcTicket.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpNfcTicket.Vester.ps1 new file mode 100644 index 0000000..0526236 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpNfcTicket.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpNfcTicket' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpNfcTicket' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpNfcTicket + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpNfcTicket").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpNfcTicket" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpSvc.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpSvc.Vester.ps1 new file mode 100644 index 0000000..52be5a8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpSvc.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpSvc' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpSvc' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpSvc + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPService.Vester.ps1 new file mode 100644 index 0000000..bb69f6d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpSvc.HTTPService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpSvc.HTTPService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpSvcHTTPService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc.HTTPService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc.HTTPService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPServiceHttpConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPServiceHttpConnection.Vester.ps1 new file mode 100644 index 0000000..44b6c8f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerHttpSvcHTTPServiceHttpConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.HttpSvc.HTTPService.HttpConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.HttpSvc.HTTPService.HttpConnection' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerHttpSvcHTTPServiceHttpConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc.HTTPService.HttpConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.HttpSvc.HTTPService.HttpConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerIO.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerIO.Vester.ps1 new file mode 100644 index 0000000..8653e99 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerIO.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.IO' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.IO' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerIO + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.IO").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.IO" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInternalSvc.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInternalSvc.Vester.ps1 new file mode 100644 index 0000000..3097bfe --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInternalSvc.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InternalSvc' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InternalSvc' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInternalSvc + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InternalSvc").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InternalSvc" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvt.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvt.Vester.ps1 new file mode 100644 index 0000000..d1fd3d2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvt.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Invt' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Invt' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvt + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Invt").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Invt" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtCache.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtCache.Vester.ps1 new file mode 100644 index 0000000..373804d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtCache.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtCache' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtCache' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtCache + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtCache").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtCache" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtDVPortGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtDVPortGroup.Vester.ps1 new file mode 100644 index 0000000..096234b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtDVPortGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtDVPortGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtDVPortGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtDVPortGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtDVPortGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtDVPortGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtDVS.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtDVS.Vester.ps1 new file mode 100644 index 0000000..2fe4967 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtDVS.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtDVS' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtDVS' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtDVS + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtDVS").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtDVS" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtDatacenter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtDatacenter.Vester.ps1 new file mode 100644 index 0000000..27f66d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtDatacenter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtDatacenter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtDatacenter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtDatacenter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtDatacenter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtDatacenter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtDomain.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtDomain.Vester.ps1 new file mode 100644 index 0000000..c61cdb2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtDomain.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtDomain' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtDomain' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtDomain + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtDomain").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtDomain" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtGroup.Vester.ps1 new file mode 100644 index 0000000..fdb86dc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtHost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtHost.Vester.ps1 new file mode 100644 index 0000000..bf7336a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtHost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtHost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtHost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtHost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtHost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtHost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtHostCnx.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtHostCnx.Vester.ps1 new file mode 100644 index 0000000..6f8a55d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtHostCnx.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtHostCnx' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtHostCnx' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtHostCnx + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtHostCnx").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtHostCnx" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtHostDb.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtHostDb.Vester.ps1 new file mode 100644 index 0000000..6f82b7e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtHostDb.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtHostDb' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtHostDb' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtHostDb + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtHostDb").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtHostDb" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtId.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtId.Vester.ps1 new file mode 100644 index 0000000..0035f8f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtId.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtId' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtId' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtId + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtId").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtId" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtListener.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtListener.Vester.ps1 new file mode 100644 index 0000000..fa666d0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtListener.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtListener' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtListener' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtListener + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtListener").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtListener" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtNetwork.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtNetwork.Vester.ps1 new file mode 100644 index 0000000..6fdfa68 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtNetwork.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtNetwork' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtNetwork' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtNetwork + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtNetwork").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtNetwork" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtResGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtResGroup.Vester.ps1 new file mode 100644 index 0000000..316f466 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtResGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtResGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtResGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtResGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtResGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtResGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtStoragePod.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtStoragePod.Vester.ps1 new file mode 100644 index 0000000..379549f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtStoragePod.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtStoragePod' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtStoragePod' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtStoragePod + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtStoragePod").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtStoragePod" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtVm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtVm.Vester.ps1 new file mode 100644 index 0000000..84c50c2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtVm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtVm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtVm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtVm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtVm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtVm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerInvtVmDb.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerInvtVmDb.Vester.ps1 new file mode 100644 index 0000000..5d19180 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerInvtVmDb.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.InvtVmDb' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.InvtVmDb' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerInvtVmDb + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.InvtVmDb").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.InvtVmDb" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerIofilter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerIofilter.Vester.ps1 new file mode 100644 index 0000000..b53b0a4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerIofilter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Iofilter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Iofilter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerIofilter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Iofilter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Iofilter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerIpAllocator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerIpAllocator.Vester.ps1 new file mode 100644 index 0000000..aa08ef6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerIpAllocator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.IpAllocator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.IpAllocator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerIpAllocator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.IpAllocator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.IpAllocator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLSClient.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLSClient.Vester.ps1 new file mode 100644 index 0000000..4c36e4a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLSClient.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LSClient' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LSClient' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLSClient + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LSClient").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LSClient" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLdapBackup_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLdapBackup_win32.Vester.ps1 new file mode 100644 index 0000000..2c29e75 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLdapBackup_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LdapBackup_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LdapBackup_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLdapBackup_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LdapBackup_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LdapBackup_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLdap_linux.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLdap_linux.Vester.ps1 new file mode 100644 index 0000000..2781337 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLdap_linux.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Ldap_linux' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Ldap_linux' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLdap_linux + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Ldap_linux").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Ldap_linux" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLdap_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLdap_win32.Vester.ps1 new file mode 100644 index 0000000..3f40fbf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLdap_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Ldap_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Ldap_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLdap_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Ldap_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Ldap_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLicenseManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLicenseManager.Vester.ps1 new file mode 100644 index 0000000..22e847f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLicenseManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LicenseManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LicenseManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLicenseManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LicenseManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LicenseManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLicenseServiceClientCachedImpl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLicenseServiceClientCachedImpl.Vester.ps1 new file mode 100644 index 0000000..0ffdb46 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLicenseServiceClientCachedImpl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LicenseServiceClientCachedImpl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LicenseServiceClientCachedImpl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLicenseServiceClientCachedImpl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LicenseServiceClientCachedImpl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LicenseServiceClientCachedImpl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLicenseServiceClientImpl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLicenseServiceClientImpl.Vester.ps1 new file mode 100644 index 0000000..9c0a22c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLicenseServiceClientImpl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LicenseServiceClientImpl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LicenseServiceClientImpl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLicenseServiceClientImpl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LicenseServiceClientImpl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LicenseServiceClientImpl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLocale.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLocale.Vester.ps1 new file mode 100644 index 0000000..7e21924 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLocale.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Locale' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Locale' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLocale + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Locale").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Locale" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLock.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLock.Vester.ps1 new file mode 100644 index 0000000..c4d0308 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLock.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Lock' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Lock' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLock + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Lock").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Lock" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLogBundler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLogBundler.Vester.ps1 new file mode 100644 index 0000000..07d7ec0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLogBundler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LogBundler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LogBundler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLogBundler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LogBundler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LogBundler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerLsNotificationsRetriever.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerLsNotificationsRetriever.Vester.ps1 new file mode 100644 index 0000000..11a2d5f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerLsNotificationsRetriever.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.LsNotificationsRetriever' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.LsNotificationsRetriever' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerLsNotificationsRetriever + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.LsNotificationsRetriever").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.LsNotificationsRetriever" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMail_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMail_win32.Vester.ps1 new file mode 100644 index 0000000..4069dc5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMail_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Mail_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Mail_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMail_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Mail_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Mail_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMain.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMain.Vester.ps1 new file mode 100644 index 0000000..ae3a8ef --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMain.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Main' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Main' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMain + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Main").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Main" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMethodValidator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMethodValidator.Vester.ps1 new file mode 100644 index 0000000..6337cc3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMethodValidator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MethodValidator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MethodValidator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMethodValidator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MethodValidator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MethodValidator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoAlarmMonitor.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoAlarmMonitor.Vester.ps1 new file mode 100644 index 0000000..085e37a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoAlarmMonitor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoAlarmMonitor' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoAlarmMonitor' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoAlarmMonitor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoAlarmMonitor").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoAlarmMonitor" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoAuthMagr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoAuthMagr.Vester.ps1 new file mode 100644 index 0000000..ef38de6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoAuthMagr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoAuthMagr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoAuthMagr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoAuthMagr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoAuthMagr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoAuthMagr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoBase.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoBase.Vester.ps1 new file mode 100644 index 0000000..d7a13b7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoBase.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoBase' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoBase' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoBase + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoBase").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoBase" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoCbrcManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoCbrcManager.Vester.ps1 new file mode 100644 index 0000000..4801ddf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoCbrcManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoCbrcManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoCbrcManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoCbrcManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoCbrcManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoCbrcManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoCluster.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoCluster.Vester.ps1 new file mode 100644 index 0000000..7964c9a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoCluster.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoCluster' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoCluster' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoCluster + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoCluster").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoCluster" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoComputeRes.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoComputeRes.Vester.ps1 new file mode 100644 index 0000000..7731054 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoComputeRes.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoComputeRes' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoComputeRes' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoComputeRes + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoComputeRes").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoComputeRes" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoCustSpecMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoCustSpecMgr.Vester.ps1 new file mode 100644 index 0000000..ae33bb0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoCustSpecMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoCustSpecMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoCustSpecMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoCustSpecMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoCustSpecMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoCustSpecMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDVPortGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDVPortGroup.Vester.ps1 new file mode 100644 index 0000000..b2e3290 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDVPortGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDVPortGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDVPortGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDVPortGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDVPortGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDVPortGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDVSwitch.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDVSwitch.Vester.ps1 new file mode 100644 index 0000000..420b1d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDVSwitch.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDVSwitch' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDVSwitch' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDVSwitch + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDVSwitch").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDVSwitch" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDatacenter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDatacenter.Vester.ps1 new file mode 100644 index 0000000..d6987a3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDatacenter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDatacenter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDatacenter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDatacenter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDatacenter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDatacenter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDatastore.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDatastore.Vester.ps1 new file mode 100644 index 0000000..ea0c4d2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDatastore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDatastore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDatastore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDatastore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDatastore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDatastore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDatastoreBrowser.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDatastoreBrowser.Vester.ps1 new file mode 100644 index 0000000..4616431 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDatastoreBrowser.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDatastoreBrowser' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDatastoreBrowser' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDatastoreBrowser + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDatastoreBrowser").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDatastoreBrowser" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDiagnosticMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDiagnosticMgr.Vester.ps1 new file mode 100644 index 0000000..9afe73f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDiagnosticMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDiagnosticMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDiagnosticMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDiagnosticMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDiagnosticMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDiagnosticMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDvs.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDvs.Vester.ps1 new file mode 100644 index 0000000..cd4ac60 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDvs.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDvs' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDvs' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDvs + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDvs").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDvs" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoDvsManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoDvsManager.Vester.ps1 new file mode 100644 index 0000000..cfd417e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoDvsManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoDvsManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoDvsManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoDvsManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoDvsManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoDvsManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoEnvBrowser.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoEnvBrowser.Vester.ps1 new file mode 100644 index 0000000..c523d97 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoEnvBrowser.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoEnvBrowser' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoEnvBrowser' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoEnvBrowser + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoEnvBrowser").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoEnvBrowser" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoEsxAgentConfigMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoEsxAgentConfigMgr.Vester.ps1 new file mode 100644 index 0000000..fb945a2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoEsxAgentConfigMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoEsxAgentConfigMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoEsxAgentConfigMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoEsxAgentConfigMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoEsxAgentConfigMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoEsxAgentConfigMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoEvent.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoEvent.Vester.ps1 new file mode 100644 index 0000000..5944d9a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoEvent.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoEvent' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoEvent' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoEvent + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoEvent").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoEvent" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoExtensionMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoExtensionMgr.Vester.ps1 new file mode 100644 index 0000000..689f8d0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoExtensionMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoExtensionMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoExtensionMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoExtensionMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoExtensionMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoExtensionMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoFields.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoFields.Vester.ps1 new file mode 100644 index 0000000..c9e4ba3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoFields.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoFields' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoFields' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoFields + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoFields").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoFields" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoFileMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoFileMgr.Vester.ps1 new file mode 100644 index 0000000..f2f3412 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoFileMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoFileMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoFileMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoFileMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoFileMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoFileMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoHost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoHost.Vester.ps1 new file mode 100644 index 0000000..8304a71 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoHost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoHost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoHost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoHost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoHost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoHost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoHostConfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoHostConfig.Vester.ps1 new file mode 100644 index 0000000..065f6de --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoHostConfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoHostConfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoHostConfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoHostConfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoHostConfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoHostConfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoHttpNfcLease.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoHttpNfcLease.Vester.ps1 new file mode 100644 index 0000000..69377b3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoHttpNfcLease.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoHttpNfcLease' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoHttpNfcLease' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoHttpNfcLease + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoHttpNfcLease").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoHttpNfcLease" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoIpPoolMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoIpPoolMgr.Vester.ps1 new file mode 100644 index 0000000..2c529df --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoIpPoolMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoIpPoolMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoIpPoolMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoIpPoolMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoIpPoolMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoIpPoolMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoLicenseDataMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoLicenseDataMgr.Vester.ps1 new file mode 100644 index 0000000..6311d3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoLicenseDataMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoLicenseDataMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoLicenseDataMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoLicenseDataMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoLicenseDataMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoLicenseDataMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoLicenseMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoLicenseMgr.Vester.ps1 new file mode 100644 index 0000000..ddc69d5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoLicenseMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoLicenseMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoLicenseMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoLicenseMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoLicenseMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoLicenseMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoLocMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoLocMgr.Vester.ps1 new file mode 100644 index 0000000..a0ae5e0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoLocMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoLocMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoLocMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoLocMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoLocMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoLocMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoLock.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoLock.Vester.ps1 new file mode 100644 index 0000000..656167d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoLock.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoLock' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoLock' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoLock + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoLock").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoLock" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoNetworkManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoNetworkManager.Vester.ps1 new file mode 100644 index 0000000..53d1903 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoNetworkManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoNetworkManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoNetworkManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoNetworkManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoNetworkManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoNetworkManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoOptionMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoOptionMgr.Vester.ps1 new file mode 100644 index 0000000..55fa540 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoOptionMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoOptionMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoOptionMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoOptionMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoOptionMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoOptionMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoOvfMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoOvfMgr.Vester.ps1 new file mode 100644 index 0000000..0b95318 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoOvfMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoOvfMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoOvfMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoOvfMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoOvfMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoOvfMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoPerfManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoPerfManager.Vester.ps1 new file mode 100644 index 0000000..8badc0a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoPerfManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoPerfManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoPerfManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoPerfManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoPerfManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoPerfManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoResGroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoResGroup.Vester.ps1 new file mode 100644 index 0000000..5f0e1d4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoResGroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoResGroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoResGroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoResGroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoResGroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoResGroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoReverseProxy.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoReverseProxy.Vester.ps1 new file mode 100644 index 0000000..bee172a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoReverseProxy.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoReverseProxy' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoReverseProxy' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoReverseProxy + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoReverseProxy").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoReverseProxy" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoScheduledTask.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoScheduledTask.Vester.ps1 new file mode 100644 index 0000000..da522f6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoScheduledTask.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoScheduledTask' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoScheduledTask' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoScheduledTask + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoScheduledTask").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoScheduledTask" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoSearchIndex.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoSearchIndex.Vester.ps1 new file mode 100644 index 0000000..f8b4a24 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoSearchIndex.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoSearchIndex' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoSearchIndex' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoSearchIndex + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoSearchIndex").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoSearchIndex" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoServiceInstance.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoServiceInstance.Vester.ps1 new file mode 100644 index 0000000..1e33b42 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoServiceInstance.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoServiceInstance' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoServiceInstance' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoServiceInstance + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoServiceInstance").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoServiceInstance" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoSessionMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoSessionMgr.Vester.ps1 new file mode 100644 index 0000000..0bd2426 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoSessionMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoSessionMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoSessionMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoSessionMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoSessionMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoSessionMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoSnapshot.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoSnapshot.Vester.ps1 new file mode 100644 index 0000000..605f46c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoSnapshot.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoSnapshot' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoSnapshot' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoSnapshot + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoSnapshot").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoSnapshot" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoStoragePod.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoStoragePod.Vester.ps1 new file mode 100644 index 0000000..bdbc48a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoStoragePod.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoStoragePod' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoStoragePod' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoStoragePod + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoStoragePod").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoStoragePod" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoSystemDebugMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoSystemDebugMgr.Vester.ps1 new file mode 100644 index 0000000..f4835da --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoSystemDebugMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoSystemDebugMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoSystemDebugMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoSystemDebugMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoSystemDebugMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoSystemDebugMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoTask.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoTask.Vester.ps1 new file mode 100644 index 0000000..0c6fab3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoTask.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoTask' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoTask' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoTask + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoTask").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoTask" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoTransEVCMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoTransEVCMgr.Vester.ps1 new file mode 100644 index 0000000..5d3ae41 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoTransEVCMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoTransEVCMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoTransEVCMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoTransEVCMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoTransEVCMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoTransEVCMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoVApp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoVApp.Vester.ps1 new file mode 100644 index 0000000..89e67e7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoVApp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoVApp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoVApp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoVApp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoVApp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoVApp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoVAppPowerOp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoVAppPowerOp.Vester.ps1 new file mode 100644 index 0000000..dc73658 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoVAppPowerOp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoVAppPowerOp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoVAppPowerOp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoVAppPowerOp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoVAppPowerOp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoVAppPowerOp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoVStorageObjectMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoVStorageObjectMgr.Vester.ps1 new file mode 100644 index 0000000..ae85bb0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoVStorageObjectMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoVStorageObjectMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoVStorageObjectMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoVStorageObjectMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoVStorageObjectMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoVStorageObjectMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoVirtualDiskMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoVirtualDiskMgr.Vester.ps1 new file mode 100644 index 0000000..c9f08a6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoVirtualDiskMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoVirtualDiskMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoVirtualDiskMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoVirtualDiskMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoVirtualDiskMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoVirtualDiskMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerMoVmciAccessMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerMoVmciAccessMgr.Vester.ps1 new file mode 100644 index 0000000..8e9ad77 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerMoVmciAccessMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.MoVmciAccessMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.MoVmciAccessMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerMoVmciAccessMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.MoVmciAccessMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.MoVmciAccessMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerNfcMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerNfcMgr.Vester.ps1 new file mode 100644 index 0000000..d30c13c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerNfcMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.NfcMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.NfcMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerNfcMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.NfcMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.NfcMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerNfcServiceProxy.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerNfcServiceProxy.Vester.ps1 new file mode 100644 index 0000000..8e36635 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerNfcServiceProxy.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.NfcServiceProxy' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.NfcServiceProxy' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerNfcServiceProxy + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.NfcServiceProxy").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.NfcServiceProxy" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOCM.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOCM.Vester.ps1 new file mode 100644 index 0000000..d219db1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOCM.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OCM' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OCM' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOCM + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OCM").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OCM" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMM.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMM.Vester.ps1 new file mode 100644 index 0000000..8a0a92b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMM.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMM' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMM' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMM + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMM").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMM" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMMHCC.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMMHCC.Vester.ps1 new file mode 100644 index 0000000..7f2446b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMMHCC.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMMHCC' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMMHCC' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMMHCC + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMMHCC").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMMHCC" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMMHSC.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMMHSC.Vester.ps1 new file mode 100644 index 0000000..2017aba --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMMHSC.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMMHSC' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMMHSC' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMMHSC + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMMHSC").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMMHSC" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMMHostInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMMHostInfo.Vester.ps1 new file mode 100644 index 0000000..c97e9f6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMMHostInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMMHostInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMMHostInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMMHostInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMMHostInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMMHostInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMMOutputCache.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMMOutputCache.Vester.ps1 new file mode 100644 index 0000000..5371af9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMMOutputCache.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMMOutputCache' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMMOutputCache' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMMOutputCache + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMMOutputCache").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMMOutputCache" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOMMVmInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOMMVmInfo.Vester.ps1 new file mode 100644 index 0000000..5b55a4d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOMMVmInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OMMVmInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OMMVmInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOMMVmInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OMMVmInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OMMVmInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOpaqueChannel.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOpaqueChannel.Vester.ps1 new file mode 100644 index 0000000..785a40d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOpaqueChannel.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OpaqueChannel' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OpaqueChannel' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOpaqueChannel + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OpaqueChannel").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OpaqueChannel" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOsLayer_linux.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOsLayer_linux.Vester.ps1 new file mode 100644 index 0000000..a1689e3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOsLayer_linux.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OsLayer_linux' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OsLayer_linux' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOsLayer_linux + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OsLayer_linux").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OsLayer_linux" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOsLayer_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOsLayer_win32.Vester.ps1 new file mode 100644 index 0000000..c4255c2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOsLayer_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OsLayer_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OsLayer_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOsLayer_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OsLayer_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OsLayer_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOvfConsumers.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOvfConsumers.Vester.ps1 new file mode 100644 index 0000000..e47d68b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOvfConsumers.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OvfConsumers' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OvfConsumers' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOvfConsumers + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OvfConsumers").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OvfConsumers" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerOvfEnv.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerOvfEnv.Vester.ps1 new file mode 100644 index 0000000..1ae2a43 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerOvfEnv.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.OvfEnv' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.OvfEnv' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerOvfEnv + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.OvfEnv").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.OvfEnv" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPauseManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPauseManager.Vester.ps1 new file mode 100644 index 0000000..4253a77 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPauseManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PauseManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PauseManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPauseManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PauseManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PauseManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPcLsNotificationsProcessor.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPcLsNotificationsProcessor.Vester.ps1 new file mode 100644 index 0000000..33047a7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPcLsNotificationsProcessor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PcLsNotificationsProcessor' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PcLsNotificationsProcessor' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPcLsNotificationsProcessor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PcLsNotificationsProcessor").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PcLsNotificationsProcessor" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPerfCluster.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPerfCluster.Vester.ps1 new file mode 100644 index 0000000..d4656b7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPerfCluster.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PerfCluster' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PerfCluster' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPerfCluster + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PerfCluster").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PerfCluster" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPerfProvider.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPerfProvider.Vester.ps1 new file mode 100644 index 0000000..95d0cda --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPerfProvider.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PerfProvider' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PerfProvider' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPerfProvider + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PerfProvider").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PerfProvider" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPerfVmOps.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPerfVmOps.Vester.ps1 new file mode 100644 index 0000000..e1f5c64 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPerfVmOps.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PerfVmOps' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PerfVmOps' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPerfVmOps + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PerfVmOps").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PerfVmOps" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPortSender.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPortSender.Vester.ps1 new file mode 100644 index 0000000..4b4115d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPortSender.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PortSender' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PortSender' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPortSender + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PortSender").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PortSender" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPriorityInfo16.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPriorityInfo16.Vester.ps1 new file mode 100644 index 0000000..45c693d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPriorityInfo16.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PriorityInfo.16' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PriorityInfo.16' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPriorityInfo16 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.16").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.16" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPriorityInfo4.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPriorityInfo4.Vester.ps1 new file mode 100644 index 0000000..90485ce --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPriorityInfo4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PriorityInfo.4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PriorityInfo.4' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPriorityInfo4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPriorityInfo8.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPriorityInfo8.Vester.ps1 new file mode 100644 index 0000000..fc1f908 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPriorityInfo8.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PriorityInfo.8' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PriorityInfo.8' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPriorityInfo8 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.8").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PriorityInfo.8" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPropertyCollector.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPropertyCollector.Vester.ps1 new file mode 100644 index 0000000..1e0d79c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPropertyCollector.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PropertyCollector' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PropertyCollector' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPropertyCollector + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PropertyCollector").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PropertyCollector" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPropertyJournal.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPropertyJournal.Vester.ps1 new file mode 100644 index 0000000..d364533 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPropertyJournal.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PropertyJournal' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PropertyJournal' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPropertyJournal + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PropertyJournal").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PropertyJournal" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerPropertyProvider.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerPropertyProvider.Vester.ps1 new file mode 100644 index 0000000..7f8bb02 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerPropertyProvider.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.PropertyProvider' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.PropertyProvider' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerPropertyProvider + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.PropertyProvider").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.PropertyProvider" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerQuickStats.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerQuickStats.Vester.ps1 new file mode 100644 index 0000000..c1751e7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerQuickStats.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.QuickStats' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.QuickStats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerQuickStats + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.QuickStats").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.QuickStats" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerResMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerResMgr.Vester.ps1 new file mode 100644 index 0000000..3f64df4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerResMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ResMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ResMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerResMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ResMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ResMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerResPoolTree.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerResPoolTree.Vester.ps1 new file mode 100644 index 0000000..08a4cbe --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerResPoolTree.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ResPoolTree' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ResPoolTree' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerResPoolTree + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ResPoolTree").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ResPoolTree" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerResourceMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerResourceMgr.Vester.ps1 new file mode 100644 index 0000000..0d3efc7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerResourceMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ResourceMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ResourceMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerResourceMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ResourceMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ResourceMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerResourcePlanningMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerResourcePlanningMgr.Vester.ps1 new file mode 100644 index 0000000..4f32d91 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerResourcePlanningMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ResourcePlanningMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ResourcePlanningMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerResourcePlanningMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ResourcePlanningMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ResourcePlanningMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP1.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP1.Vester.ps1 new file mode 100644 index 0000000..5dabd00 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP1.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-1' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-1' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP1 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-1").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-1" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP10.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP10.Vester.ps1 new file mode 100644 index 0000000..ecfc5e5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP10.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-10' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-10' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP10 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-10").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-10" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP11.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP11.Vester.ps1 new file mode 100644 index 0000000..f1e470f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP11.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-11' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-11' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP11 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-11").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-11" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP12.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP12.Vester.ps1 new file mode 100644 index 0000000..22ab980 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP12.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-12' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-12' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP12 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-12").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-12" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP13.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP13.Vester.ps1 new file mode 100644 index 0000000..f6e5a98 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP13.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-13' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-13' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP13 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-13").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-13" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP14.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP14.Vester.ps1 new file mode 100644 index 0000000..48f22ec --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP14.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-14' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-14' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP14 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-14").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-14" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP15.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP15.Vester.ps1 new file mode 100644 index 0000000..c411f1a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP15.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-15' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-15' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP15 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-15").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-15" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP16.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP16.Vester.ps1 new file mode 100644 index 0000000..ceffa54 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP16.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-16' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-16' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP16 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-16").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-16" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP17.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP17.Vester.ps1 new file mode 100644 index 0000000..0374aa5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP17.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-17' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-17' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP17 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-17").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-17" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP18.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP18.Vester.ps1 new file mode 100644 index 0000000..5d30f38 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP18.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-18' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-18' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP18 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-18").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-18" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP19.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP19.Vester.ps1 new file mode 100644 index 0000000..aef0d68 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP19.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-19' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-19' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP19 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-19").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-19" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP2.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP2.Vester.ps1 new file mode 100644 index 0000000..2811309 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP2.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-2' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-2' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP2 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-2").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-2" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP20.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP20.Vester.ps1 new file mode 100644 index 0000000..6313fe0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP20.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-20' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-20' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP20 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-20").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-20" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP21.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP21.Vester.ps1 new file mode 100644 index 0000000..c0dd9a8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP21.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-21' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-21' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP21 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-21").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-21" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP22.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP22.Vester.ps1 new file mode 100644 index 0000000..ddaacbb --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP22.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-22' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-22' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP22 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-22").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-22" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP23.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP23.Vester.ps1 new file mode 100644 index 0000000..45b84bb --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP23.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-23' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-23' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP23 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-23").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-23" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP24.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP24.Vester.ps1 new file mode 100644 index 0000000..0861164 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP24.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-24' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-24' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP24 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-24").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-24" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP25.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP25.Vester.ps1 new file mode 100644 index 0000000..982f440 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP25.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-25' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-25' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP25 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-25").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-25" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP26.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP26.Vester.ps1 new file mode 100644 index 0000000..91b68ab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP26.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-26' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-26' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP26 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-26").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-26" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP27.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP27.Vester.ps1 new file mode 100644 index 0000000..b2c48a4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP27.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-27' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-27' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP27 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-27").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-27" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP28.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP28.Vester.ps1 new file mode 100644 index 0000000..dc2efca --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP28.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-28' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-28' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP28 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-28").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-28" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP29.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP29.Vester.ps1 new file mode 100644 index 0000000..38eb7e2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP29.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-29' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-29' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP29 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-29").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-29" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP3.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP3.Vester.ps1 new file mode 100644 index 0000000..9e9a290 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP3.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-3' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-3' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP3 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-3").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-3" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP30.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP30.Vester.ps1 new file mode 100644 index 0000000..9acc315 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP30.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-30' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-30' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP30 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-30").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-30" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP31.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP31.Vester.ps1 new file mode 100644 index 0000000..518625d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP31.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-31' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-31' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP31 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-31").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-31" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP32.Vester.ps1 new file mode 100644 index 0000000..924fa7b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP33.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP33.Vester.ps1 new file mode 100644 index 0000000..c57a54b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP33.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-33' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-33' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP33 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-33").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-33" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP34.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP34.Vester.ps1 new file mode 100644 index 0000000..68c36ab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP34.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-34' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-34' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP34 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-34").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-34" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP35.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP35.Vester.ps1 new file mode 100644 index 0000000..99d8686 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP35.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-35' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-35' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP35 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-35").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-35" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP36.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP36.Vester.ps1 new file mode 100644 index 0000000..b272dc0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP36.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-36' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-36' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP36 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-36").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-36" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP37.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP37.Vester.ps1 new file mode 100644 index 0000000..ec778cb --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP37.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-37' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-37' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP37 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-37").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-37" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP38.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP38.Vester.ps1 new file mode 100644 index 0000000..0c1967d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP38.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-38' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-38' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP38 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-38").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-38" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP39.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP39.Vester.ps1 new file mode 100644 index 0000000..598f399 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP39.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-39' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-39' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP39 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-39").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-39" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP4.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP4.Vester.ps1 new file mode 100644 index 0000000..c863e97 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP4.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-4' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-4' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP4 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-4").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-4" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP40.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP40.Vester.ps1 new file mode 100644 index 0000000..74e3b8e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP40.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-40' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-40' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP40 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-40").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-40" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP41.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP41.Vester.ps1 new file mode 100644 index 0000000..ecf7f3d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP41.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-41' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-41' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP41 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-41").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-41" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP42.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP42.Vester.ps1 new file mode 100644 index 0000000..1b98f8a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP42.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-42' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-42' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP42 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-42").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-42" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP5.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP5.Vester.ps1 new file mode 100644 index 0000000..99a0cbe --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP5.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-5' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-5' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP5 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-5").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-5" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP6.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP6.Vester.ps1 new file mode 100644 index 0000000..3de4cf3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP6.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-6' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-6' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP6 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-6").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-6" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP7.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP7.Vester.ps1 new file mode 100644 index 0000000..c3c2348 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP7.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-7' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-7' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP7 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-7").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-7" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP8.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP8.Vester.ps1 new file mode 100644 index 0000000..e60a174 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP8.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-8' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-8' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP8 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-8").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-8" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSOAP9.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSOAP9.Vester.ps1 new file mode 100644 index 0000000..1b1824f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSOAP9.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SOAP-9' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SOAP-9' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSOAP9 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-9").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SOAP-9" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSSLSoapAdapter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapter.Vester.ps1 new file mode 100644 index 0000000..4dbdc59 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SSL SoapAdapter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SSL SoapAdapter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSSLSoapAdapter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPService.Vester.ps1 new file mode 100644 index 0000000..3bd14b3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SSL SoapAdapter.HTTPService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SSL SoapAdapter.HTTPService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSSLSoapAdapterHTTPService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter.HTTPService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter.HTTPService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPServiceHttpConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPServiceHttpConnection.Vester.ps1 new file mode 100644 index 0000000..40e411d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSSLSoapAdapterHTTPServiceHttpConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SSL SoapAdapter.HTTPService.HttpConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SSL SoapAdapter.HTTPService.HttpConnection' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSSLSoapAdapterHTTPServiceHttpConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter.HTTPService.HttpConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SSL SoapAdapter.HTTPService.HttpConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSSPI.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSSPI.Vester.ps1 new file mode 100644 index 0000000..f70ec07 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSSPI.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SSPI' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SSPI' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSSPI + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SSPI").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SSPI" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSSPIClientLogin.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSSPIClientLogin.Vester.ps1 new file mode 100644 index 0000000..10fb344 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSSPIClientLogin.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SSPIClientLogin' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SSPIClientLogin' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSSPIClientLogin + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SSPIClientLogin").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SSPIClientLogin" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerServerAccess.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerServerAccess.Vester.ps1 new file mode 100644 index 0000000..7e6a2e6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerServerAccess.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ServerAccess' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ServerAccess' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerServerAccess + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ServerAccess").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ServerAccess" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerService.Vester.ps1 new file mode 100644 index 0000000..c2a0112 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Service' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Service' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Service").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Service" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerServiceMgrImpl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerServiceMgrImpl.Vester.ps1 new file mode 100644 index 0000000..cb572c8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerServiceMgrImpl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ServiceMgrImpl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ServiceMgrImpl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerServiceMgrImpl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ServiceMgrImpl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ServiceMgrImpl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSessionPropertiesFilter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSessionPropertiesFilter.Vester.ps1 new file mode 100644 index 0000000..2effa2f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSessionPropertiesFilter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SessionPropertiesFilter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SessionPropertiesFilter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSessionPropertiesFilter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SessionPropertiesFilter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SessionPropertiesFilter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSimpleCommandImpl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSimpleCommandImpl.Vester.ps1 new file mode 100644 index 0000000..4ed2160 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSimpleCommandImpl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SimpleCommandImpl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SimpleCommandImpl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSimpleCommandImpl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SimpleCommandImpl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SimpleCommandImpl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSnmp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSnmp.Vester.ps1 new file mode 100644 index 0000000..d45dbad --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSnmp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Snmp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Snmp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSnmp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Snmp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Snmp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSoapAdapter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSoapAdapter.Vester.ps1 new file mode 100644 index 0000000..691761b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSoapAdapter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SoapAdapter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SoapAdapter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSoapAdapter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPService.Vester.ps1 new file mode 100644 index 0000000..2576317 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SoapAdapter.HTTPService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SoapAdapter.HTTPService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSoapAdapterHTTPService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter.HTTPService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter.HTTPService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPServiceHttpConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPServiceHttpConnection.Vester.ps1 new file mode 100644 index 0000000..0c4f505 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSoapAdapterHTTPServiceHttpConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SoapAdapter.HTTPService.HttpConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SoapAdapter.HTTPService.HttpConnection' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSoapAdapterHTTPServiceHttpConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter.HTTPService.HttpConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SoapAdapter.HTTPService.HttpConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSsoClient.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSsoClient.Vester.ps1 new file mode 100644 index 0000000..ab4a394 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSsoClient.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SsoClient' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SsoClient' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSsoClient + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SsoClient").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SsoClient" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStateLock.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStateLock.Vester.ps1 new file mode 100644 index 0000000..0126238 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStateLock.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.StateLock' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.StateLock' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStateLock + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.StateLock").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.StateLock" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStats.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStats.Vester.ps1 new file mode 100644 index 0000000..f8e6807 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStats.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Stats' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Stats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStats + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Stats").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Stats" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStatsAggregator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStatsAggregator.Vester.ps1 new file mode 100644 index 0000000..15eec08 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStatsAggregator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.StatsAggregator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.StatsAggregator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStatsAggregator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.StatsAggregator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.StatsAggregator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStatsCollector.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStatsCollector.Vester.ps1 new file mode 100644 index 0000000..d8757fc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStatsCollector.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.StatsCollector' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.StatsCollector' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStatsCollector + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.StatsCollector").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.StatsCollector" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStatsFilter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStatsFilter.Vester.ps1 new file mode 100644 index 0000000..80eba61 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStatsFilter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.StatsFilter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.StatsFilter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStatsFilter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.StatsFilter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.StatsFilter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerStatsMetadata.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerStatsMetadata.Vester.ps1 new file mode 100644 index 0000000..ba3f5c0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerStatsMetadata.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.StatsMetadata' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.StatsMetadata' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerStatsMetadata + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.StatsMetadata").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.StatsMetadata" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerSupportMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerSupportMgr.Vester.ps1 new file mode 100644 index 0000000..dcbf4ff --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerSupportMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.SupportMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.SupportMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerSupportMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.SupportMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.SupportMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerTask.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerTask.Vester.ps1 new file mode 100644 index 0000000..cb912a5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerTask.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Task' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Task' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerTask + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Task").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Task" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerTaskInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerTaskInfo.Vester.ps1 new file mode 100644 index 0000000..27ea491 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerTaskInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.TaskInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.TaskInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerTaskInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.TaskInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.TaskInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerThreadPool.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerThreadPool.Vester.ps1 new file mode 100644 index 0000000..78d5bb1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerThreadPool.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ThreadPool' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ThreadPool' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerThreadPool + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ThreadPool").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ThreadPool" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerTopnMetadata.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerTopnMetadata.Vester.ps1 new file mode 100644 index 0000000..149c122 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerTopnMetadata.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.TopnMetadata' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.TopnMetadata' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerTopnMetadata + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.TopnMetadata").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.TopnMetadata" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerTranslator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerTranslator.Vester.ps1 new file mode 100644 index 0000000..dc6dbbd --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerTranslator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Translator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Translator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerTranslator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Translator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Translator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerTxnMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerTxnMgr.Vester.ps1 new file mode 100644 index 0000000..b9b2e16 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerTxnMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.TxnMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.TxnMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerTxnMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.TxnMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.TxnMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerUrl_win32.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerUrl_win32.Vester.ps1 new file mode 100644 index 0000000..d41f45e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerUrl_win32.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Url_win32' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Url_win32' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerUrl_win32 + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Url_win32").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Url_win32" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerUser.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerUser.Vester.ps1 new file mode 100644 index 0000000..30e2bab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerUser.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.User' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.User' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerUser + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.User").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.User" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerUtilEx.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerUtilEx.Vester.ps1 new file mode 100644 index 0000000..8ee4077 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerUtilEx.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.UtilEx' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.UtilEx' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerUtilEx + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.UtilEx").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.UtilEx" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppConfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppConfig.Vester.ps1 new file mode 100644 index 0000000..58a695d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppConfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppConfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppConfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppConfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppConfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppConfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppExport.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppExport.Vester.ps1 new file mode 100644 index 0000000..8cd2b4b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppExport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppExport' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppExport' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppExport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppExport").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppExport" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppImport.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppImport.Vester.ps1 new file mode 100644 index 0000000..711164c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppImport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppImport' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppImport' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppImport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppImport").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppImport" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppLocker.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppLocker.Vester.ps1 new file mode 100644 index 0000000..d958013 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppLocker.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppLocker' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppLocker' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppLocker + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppLocker").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppLocker" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppProperties.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppProperties.Vester.ps1 new file mode 100644 index 0000000..2c58a4c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppProperties.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppProperties' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppProperties' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppProperties + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppProperties").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppProperties" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppUtil.Vester.ps1 new file mode 100644 index 0000000..adb37c9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVAppVmConfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVAppVmConfig.Vester.ps1 new file mode 100644 index 0000000..97b8bcf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVAppVmConfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VAppVmConfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VAppVmConfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVAppVmConfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VAppVmConfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VAppVmConfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVcChangeDataCapture.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVcChangeDataCapture.Vester.ps1 new file mode 100644 index 0000000..117c800 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVcChangeDataCapture.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VcChangeDataCapture' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VcChangeDataCapture' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVcChangeDataCapture + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VcChangeDataCapture").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VcChangeDataCapture" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVcQueryService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVcQueryService.Vester.ps1 new file mode 100644 index 0000000..6d89473 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVcQueryService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VcQueryService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VcQueryService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVcQueryService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VcQueryService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VcQueryService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVchaServiceClientAdapter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVchaServiceClientAdapter.Vester.ps1 new file mode 100644 index 0000000..0a42768 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVchaServiceClientAdapter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VchaServiceClientAdapter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VchaServiceClientAdapter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVchaServiceClientAdapter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VchaServiceClientAdapter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VchaServiceClientAdapter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVdbOpJournal.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVdbOpJournal.Vester.ps1 new file mode 100644 index 0000000..59fd388 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVdbOpJournal.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VdbOpJournal' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VdbOpJournal' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVdbOpJournal + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VdbOpJournal").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VdbOpJournal" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerViewManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerViewManager.Vester.ps1 new file mode 100644 index 0000000..05a1891 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerViewManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ViewManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ViewManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerViewManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ViewManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ViewManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmCheck.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmCheck.Vester.ps1 new file mode 100644 index 0000000..990fa98 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmCheck.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VmCheck' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VmCheck' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmCheck + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VmCheck").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VmCheck" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmCustomizer.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmCustomizer.Vester.ps1 new file mode 100644 index 0000000..5a05a95 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmCustomizer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VmCustomizer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VmCustomizer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmCustomizer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VmCustomizer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VmCustomizer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmScreenShot.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmScreenShot.Vester.ps1 new file mode 100644 index 0000000..1522944 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmScreenShot.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VmScreenShot' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VmScreenShot' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmScreenShot + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VmScreenShot").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VmScreenShot" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmomi.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmomi.Vester.ps1 new file mode 100644 index 0000000..915d17f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmomi.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Vmomi' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Vmomi' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmomi + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Vmomi").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Vmomi" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmprovUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmprovUtil.Vester.ps1 new file mode 100644 index 0000000..56ceab4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmprovUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VmprovUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VmprovUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmprovUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VmprovUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VmprovUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVmprovXaction.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVmprovXaction.Vester.ps1 new file mode 100644 index 0000000..b89e28c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVmprovXaction.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VmprovXaction' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VmprovXaction' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVmprovXaction + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VmprovXaction").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VmprovXaction" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVod.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVod.Vester.ps1 new file mode 100644 index 0000000..dd45682 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVod.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Vod' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Vod' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVod + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Vod").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Vod" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxMutex.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxMutex.Vester.ps1 new file mode 100644 index 0000000..df56c15 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxMutex.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VpxMutex' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VpxMutex' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxMutex + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VpxMutex").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VpxMutex" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxProfiler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxProfiler.Vester.ps1 new file mode 100644 index 0000000..a574eb1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxProfiler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VpxProfiler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VpxProfiler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxProfiler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VpxProfiler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VpxProfiler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxdAuthClient.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxdAuthClient.Vester.ps1 new file mode 100644 index 0000000..4d30268 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxdAuthClient.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VpxdAuthClient' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VpxdAuthClient' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxdAuthClient + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VpxdAuthClient").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VpxdAuthClient" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxdCache.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxdCache.Vester.ps1 new file mode 100644 index 0000000..5271815 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxdCache.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VpxdCache' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VpxdCache' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxdCache + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VpxdCache").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VpxdCache" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxdHostConnection.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxdHostConnection.Vester.ps1 new file mode 100644 index 0000000..7b9776a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxdHostConnection.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VpxdHostConnection' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VpxdHostConnection' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxdHostConnection + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VpxdHostConnection").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VpxdHostConnection" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVpxdMemChecker.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVpxdMemChecker.Vester.ps1 new file mode 100644 index 0000000..03bbf3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVpxdMemChecker.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Vpxd.MemChecker' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Vpxd.MemChecker' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVpxdMemChecker + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Vpxd.MemChecker").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Vpxd.MemChecker" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVsan.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVsan.Vester.ps1 new file mode 100644 index 0000000..2d98be0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVsan.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Vsan' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Vsan' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVsan + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Vsan").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Vsan" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVvolInfoMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVvolInfoMgr.Vester.ps1 new file mode 100644 index 0000000..b0ccdf9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVvolInfoMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VvolInfoMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VvolInfoMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVvolInfoMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VvolInfoMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VvolInfoMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerVvolVasaMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerVvolVasaMgr.Vester.ps1 new file mode 100644 index 0000000..7c494b7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerVvolVasaMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.VvolVasaMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.VvolVasaMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerVvolVasaMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.VvolVasaMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.VvolVasaMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWebserver.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWebserver.Vester.ps1 new file mode 100644 index 0000000..a87c564 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWebserver.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.Webserver' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.Webserver' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWebserver + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.Webserver").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.Webserver" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOCompletionQueue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOCompletionQueue.Vester.ps1 new file mode 100644 index 0000000..dc45d54 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOCompletionQueue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.WorkQueue.vmacoreDefaultIOCompletionQueue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.WorkQueue.vmacoreDefaultIOCompletionQueue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWorkQueuevmacoreDefaultIOCompletionQueue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultIOCompletionQueue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultIOCompletionQueue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOQueue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOQueue.Vester.ps1 new file mode 100644 index 0000000..dfa92b1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultIOQueue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.WorkQueue.vmacoreDefaultIOQueue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.WorkQueue.vmacoreDefaultIOQueue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWorkQueuevmacoreDefaultIOQueue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultIOQueue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultIOQueue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultLongTaskQueue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultLongTaskQueue.Vester.ps1 new file mode 100644 index 0000000..5448ac6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWorkQueuevmacoreDefaultLongTaskQueue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.WorkQueue.vmacoreDefaultLongTaskQueue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.WorkQueue.vmacoreDefaultLongTaskQueue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWorkQueuevmacoreDefaultLongTaskQueue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultLongTaskQueue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vmacoreDefaultLongTaskQueue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdalarmsnotificationqueue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdalarmsnotificationqueue.Vester.ps1 new file mode 100644 index 0000000..766afd2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdalarmsnotificationqueue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.WorkQueue.vpxd.alarms.notification.queue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.WorkQueue.vpxd.alarms.notification.queue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWorkQueuevpxdalarmsnotificationqueue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vpxd.alarms.notification.queue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vpxd.alarms.notification.queue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdstatspersisterqueue.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdstatspersisterqueue.Vester.ps1 new file mode 100644 index 0000000..ff590fa --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerWorkQueuevpxdstatspersisterqueue.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.WorkQueue.vpxd.stats.persister.queue' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.WorkQueue.vpxd.stats.persister.queue' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerWorkQueuevpxdstatspersisterqueue + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vpxd.stats.persister.queue").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.WorkQueue.vpxd.stats.persister.queue" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggeralarmMo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggeralarmMo.Vester.ps1 new file mode 100644 index 0000000..0eb0bca --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggeralarmMo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.alarmMo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.alarmMo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggeralarmMo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.alarmMo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.alarmMo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerbufferedClientRequest.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerbufferedClientRequest.Vester.ps1 new file mode 100644 index 0000000..cb2db53 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerbufferedClientRequest.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.bufferedClientRequest' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.bufferedClientRequest' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerbufferedClientRequest + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.bufferedClientRequest").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.bufferedClientRequest" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercdrsPlmt.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercdrsPlmt.Vester.ps1 new file mode 100644 index 0000000..6face0e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercdrsPlmt.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.cdrsPlmt' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.cdrsPlmt' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercdrsPlmt + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.cdrsPlmt").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.cdrsPlmt" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercertRequestHandler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercertRequestHandler.Vester.ps1 new file mode 100644 index 0000000..7ef5c6e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercertRequestHandler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.certRequestHandler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.certRequestHandler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercertRequestHandler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.certRequestHandler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.certRequestHandler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercertUtils.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercertUtils.Vester.ps1 new file mode 100644 index 0000000..b1a2008 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercertUtils.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.certUtils' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.certUtils' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercertUtils + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.certUtils").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.certUtils" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercertmgrLogger.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercertmgrLogger.Vester.ps1 new file mode 100644 index 0000000..8ae8bec --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercertmgrLogger.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.certmgrLogger' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.certmgrLogger' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercertmgrLogger + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.certmgrLogger").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.certmgrLogger" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerchangeTag.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerchangeTag.Vester.ps1 new file mode 100644 index 0000000..78508ec --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerchangeTag.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.changeTag' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.changeTag' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerchangeTag + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.changeTag").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.changeTag" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercheckswapPlacementInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercheckswapPlacementInfo.Vester.ps1 new file mode 100644 index 0000000..8d3ad2e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercheckswapPlacementInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.checkswapPlacementInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.checkswapPlacementInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercheckswapPlacementInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.checkswapPlacementInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.checkswapPlacementInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerclusterCache.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerclusterCache.Vester.ps1 new file mode 100644 index 0000000..e43cb55 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerclusterCache.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.clusterCache' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.clusterCache' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerclusterCache + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.clusterCache").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.clusterCache" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerclusterChecker.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerclusterChecker.Vester.ps1 new file mode 100644 index 0000000..f0e92b1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerclusterChecker.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.clusterChecker' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.clusterChecker' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerclusterChecker + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.clusterChecker").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.clusterChecker" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercnxmgrLogger.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercnxmgrLogger.Vester.ps1 new file mode 100644 index 0000000..4dd53db --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercnxmgrLogger.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.cnxmgrLogger' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.cnxmgrLogger' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercnxmgrLogger + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.cnxmgrLogger").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.cnxmgrLogger" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercomponentManagerUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercomponentManagerUtil.Vester.ps1 new file mode 100644 index 0000000..5e06302 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercomponentManagerUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.componentManagerUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.componentManagerUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercomponentManagerUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.componentManagerUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.componentManagerUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercopySpecUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercopySpecUtil.Vester.ps1 new file mode 100644 index 0000000..62a92a9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercopySpecUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.copySpecUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.copySpecUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercopySpecUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.copySpecUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.copySpecUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercoreanchor.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercoreanchor.Vester.ps1 new file mode 100644 index 0000000..8cc4454 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercoreanchor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.coreanchor' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.coreanchor' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercoreanchor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.coreanchor").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.coreanchor" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercoredvsSync.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercoredvsSync.Vester.ps1 new file mode 100644 index 0000000..891cc4c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercoredvsSync.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.coredvsSync' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.coredvsSync' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercoredvsSync + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.coredvsSync").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.coredvsSync" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercorehostCapsule.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercorehostCapsule.Vester.ps1 new file mode 100644 index 0000000..e71312a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercorehostCapsule.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.corehostCapsule' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.corehostCapsule' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercorehostCapsule + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.corehostCapsule").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.corehostCapsule" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercorehostSync.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercorehostSync.Vester.ps1 new file mode 100644 index 0000000..111fc5e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercorehostSync.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.corehostSync' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.corehostSync' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercorehostSync + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.corehostSync").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.corehostSync" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercorestress.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercorestress.Vester.ps1 new file mode 100644 index 0000000..5b9e554 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercorestress.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.corestress' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.corestress' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercorestress + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.corestress").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.corestress" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercoreunitTest.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercoreunitTest.Vester.ps1 new file mode 100644 index 0000000..13448f7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercoreunitTest.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.coreunitTest' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.coreunitTest' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercoreunitTest + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.coreunitTest").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.coreunitTest" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggercorevalidate.Vester.ps1 b/Vester/Tests/vCenter/VC-loggercorevalidate.Vester.ps1 new file mode 100644 index 0000000..ac0540c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggercorevalidate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.corevalidate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.corevalidate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggercorevalidate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.corevalidate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.corevalidate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdasVm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdasVm.Vester.ps1 new file mode 100644 index 0000000..37bb052 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdasVm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dasVm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dasVm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdasVm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dasVm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dasVm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbDvs.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbDvs.Vester.ps1 new file mode 100644 index 0000000..8de96f4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbDvs.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbDvs' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbDvs' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbDvs + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbDvs").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbDvs" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbHost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbHost.Vester.ps1 new file mode 100644 index 0000000..f1b4bca --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbHost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbHost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbHost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbHost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbHost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbHost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbPort.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbPort.Vester.ps1 new file mode 100644 index 0000000..cc071cd --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbPort.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbPort' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbPort' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbPort + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbPort").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbPort" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbPortgroup.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbPortgroup.Vester.ps1 new file mode 100644 index 0000000..3a66c3f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbPortgroup.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbPortgroup' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbPortgroup' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbPortgroup + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbPortgroup").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbPortgroup" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbQuery.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbQuery.Vester.ps1 new file mode 100644 index 0000000..7be023b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbQuery.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbQuery' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbQuery' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbQuery + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbQuery").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbQuery" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdbuHelper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdbuHelper.Vester.ps1 new file mode 100644 index 0000000..3e6f890 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdbuHelper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dbuHelper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dbuHelper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdbuHelper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dbuHelper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dbuHelper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdoImpersonate.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdoImpersonate.Vester.ps1 new file mode 100644 index 0000000..e0872db --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdoImpersonate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.doImpersonate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.doImpersonate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdoImpersonate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.doImpersonate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.doImpersonate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdrmLogger.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdrmLogger.Vester.ps1 new file mode 100644 index 0000000..d7626ba --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdrmLogger.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.drmLogger' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.drmLogger' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdrmLogger + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.drmLogger").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.drmLogger" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdvsKeeper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdvsKeeper.Vester.ps1 new file mode 100644 index 0000000..41dfe38 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdvsKeeper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dvsKeeper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dvsKeeper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdvsKeeper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dvsKeeper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dvsKeeper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerdynamicMethodValidator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerdynamicMethodValidator.Vester.ps1 new file mode 100644 index 0000000..38b24be --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerdynamicMethodValidator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.dynamicMethodValidator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.dynamicMethodValidator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerdynamicMethodValidator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.dynamicMethodValidator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.dynamicMethodValidator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerfeatureiorm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerfeatureiorm.Vester.ps1 new file mode 100644 index 0000000..e487313 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerfeatureiorm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.featureiorm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.featureiorm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerfeatureiorm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.featureiorm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.featureiorm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerfeatureldp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerfeatureldp.Vester.ps1 new file mode 100644 index 0000000..aac2040 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerfeatureldp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.featureldp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.featureldp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerfeatureldp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.featureldp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.featureldp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerftUtils.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerftUtils.Vester.ps1 new file mode 100644 index 0000000..94eb608 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerftUtils.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ftUtils' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ftUtils' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerftUtils + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ftUtils").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ftUtils" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerguestops.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerguestops.Vester.ps1 new file mode 100644 index 0000000..d60d73b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerguestops.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.guestops' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.guestops' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerguestops + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.guestops").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.guestops" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhalhost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhalhost.Vester.ps1 new file mode 100644 index 0000000..f7ce81e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhalhost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.halhost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.halhost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhalhost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.halhost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.halhost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhalservices.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhalservices.Vester.ps1 new file mode 100644 index 0000000..5c47661 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhalservices.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.halservices' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.halservices' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhalservices + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.halservices").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.halservices" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhbr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhbr.Vester.ps1 new file mode 100644 index 0000000..840e887 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhbr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hbr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hbr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhbr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hbr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hbr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhealthCheck.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhealthCheck.Vester.ps1 new file mode 100644 index 0000000..a3dc87a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhealthCheck.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.healthCheck' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.healthCheck' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhealthCheck + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.healthCheck").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.healthCheck" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostInvtOps.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostInvtOps.Vester.ps1 new file mode 100644 index 0000000..74aee19 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostInvtOps.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostInvtOps' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostInvtOps' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostInvtOps + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostInvtOps").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostInvtOps" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostMethod.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostMethod.Vester.ps1 new file mode 100644 index 0000000..8db52a2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostMethod.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostMethod' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostMethod' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostMethod + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostMethod").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostMethod" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostOp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostOp.Vester.ps1 new file mode 100644 index 0000000..33d02f2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostOp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostOp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostOp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostOp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostOp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostOp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostPropertyTracker.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostPropertyTracker.Vester.ps1 new file mode 100644 index 0000000..af05b5a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostPropertyTracker.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostPropertyTracker' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostPropertyTracker' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostPropertyTracker + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostPropertyTracker").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostPropertyTracker" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostStateSyncer.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostStateSyncer.Vester.ps1 new file mode 100644 index 0000000..69f3860 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostStateSyncer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostStateSyncer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostStateSyncer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostStateSyncer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostStateSyncer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostStateSyncer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdVMotion.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdVMotion.Vester.ps1 new file mode 100644 index 0000000..6e7e7f2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdVMotion.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdVMotion' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdVMotion' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdVMotion + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdVMotion").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdVMotion" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdcnx.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdcnx.Vester.ps1 new file mode 100644 index 0000000..1765164 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdcnx.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdcnx' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdcnx' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdcnx + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdcnx").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdcnx" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdcompRes.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdcompRes.Vester.ps1 new file mode 100644 index 0000000..98d9da1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdcompRes.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdcompRes' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdcompRes' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdcompRes + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdcompRes").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdcompRes" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdds.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdds.Vester.ps1 new file mode 100644 index 0000000..96f4503 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdds.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdds' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdds' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdds + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdds").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdds" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostddvs.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostddvs.Vester.ps1 new file mode 100644 index 0000000..4c26a33 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostddvs.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostddvs' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostddvs' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostddvs + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostddvs").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostddvs" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdevent.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdevent.Vester.ps1 new file mode 100644 index 0000000..6511dc7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdevent.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdevent' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdevent' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdevent + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdevent").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdevent" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdhost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdhost.Vester.ps1 new file mode 100644 index 0000000..a78bd22 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdhost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdhost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdhost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdhost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdhost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdhost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdhostConfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdhostConfig.Vester.ps1 new file mode 100644 index 0000000..c70a0f3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdhostConfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdhostConfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdhostConfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdhostConfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdhostConfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdhostConfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdlicenseMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdlicenseMgr.Vester.ps1 new file mode 100644 index 0000000..50a504e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdlicenseMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdlicenseMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdlicenseMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdlicenseMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdlicenseMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdlicenseMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdlocalizationMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdlocalizationMgr.Vester.ps1 new file mode 100644 index 0000000..f0c05d9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdlocalizationMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdlocalizationMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdlocalizationMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdlocalizationMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdlocalizationMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdlocalizationMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdstats.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdstats.Vester.ps1 new file mode 100644 index 0000000..9492fdf --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdstats.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdstats' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdstats' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdstats + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdstats").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdstats" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdstorageSystem.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdstorageSystem.Vester.ps1 new file mode 100644 index 0000000..29c475c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdstorageSystem.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdstorageSystem' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdstorageSystem' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdstorageSystem + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdstorageSystem").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdstorageSystem" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhostdvm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhostdvm.Vester.ps1 new file mode 100644 index 0000000..519d9b2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhostdvm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.hostdvm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.hostdvm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhostdvm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.hostdvm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.hostdvm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerhttpUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerhttpUtil.Vester.ps1 new file mode 100644 index 0000000..527e98b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerhttpUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.httpUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.httpUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerhttpUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.httpUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.httpUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerinfraUpdateHa.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerinfraUpdateHa.Vester.ps1 new file mode 100644 index 0000000..1576aac --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerinfraUpdateHa.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.infraUpdateHa' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.infraUpdateHa' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerinfraUpdateHa + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.infraUpdateHa").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.infraUpdateHa" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggeripfix.Vester.ps1 b/Vester/Tests/vCenter/VC-loggeripfix.Vester.ps1 new file mode 100644 index 0000000..58e6fa5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggeripfix.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ipfix' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ipfix' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggeripfix + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ipfix").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ipfix" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlacp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlacp.Vester.ps1 new file mode 100644 index 0000000..5d96ede --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlacp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.lacp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.lacp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlacp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.lacp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.lacp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseAssignmentChangeNotifier.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseAssignmentChangeNotifier.Vester.ps1 new file mode 100644 index 0000000..8e8542d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseAssignmentChangeNotifier.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseAssignmentChangeNotifier' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseAssignmentChangeNotifier' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseAssignmentChangeNotifier + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseAssignmentChangeNotifier").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseAssignmentChangeNotifier" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseAssignmentCleaner.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseAssignmentCleaner.Vester.ps1 new file mode 100644 index 0000000..9444ce6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseAssignmentCleaner.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseAssignmentCleaner' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseAssignmentCleaner' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseAssignmentCleaner + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseAssignmentCleaner").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseAssignmentCleaner" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseClient.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseClient.Vester.ps1 new file mode 100644 index 0000000..22de442 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseClient.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseClient' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseClient' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseClient + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseClient").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseClient" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseClientCached.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseClientCached.Vester.ps1 new file mode 100644 index 0000000..6d4945f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseClientCached.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseClientCached' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseClientCached' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseClientCached + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientCached").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientCached" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseClientFaultTolerance.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseClientFaultTolerance.Vester.ps1 new file mode 100644 index 0000000..650064b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseClientFaultTolerance.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseClientFaultTolerance' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseClientFaultTolerance' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseClientFaultTolerance + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientFaultTolerance").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientFaultTolerance" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseClientStarter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseClientStarter.Vester.ps1 new file mode 100644 index 0000000..956a4f6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseClientStarter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseClientStarter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseClientStarter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseClientStarter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientStarter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseClientStarter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseServiceDiscovery.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseServiceDiscovery.Vester.ps1 new file mode 100644 index 0000000..1823d79 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseServiceDiscovery.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseServiceDiscovery' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseServiceDiscovery' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseServiceDiscovery + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseServiceDiscovery").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseServiceDiscovery" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseServiceProxy.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseServiceProxy.Vester.ps1 new file mode 100644 index 0000000..5eea6bc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseServiceProxy.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseServiceProxy' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseServiceProxy' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseServiceProxy + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseServiceProxy").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseServiceProxy" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlicenseViolationRemediator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlicenseViolationRemediator.Vester.ps1 new file mode 100644 index 0000000..9df322c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlicenseViolationRemediator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.licenseViolationRemediator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.licenseViolationRemediator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlicenseViolationRemediator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.licenseViolationRemediator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.licenseViolationRemediator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlocalizationMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlocalizationMgr.Vester.ps1 new file mode 100644 index 0000000..4d4de3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlocalizationMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.localizationMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.localizationMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlocalizationMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.localizationMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.localizationMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerlunUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerlunUtil.Vester.ps1 new file mode 100644 index 0000000..e375d52 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerlunUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.lunUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.lunUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerlunUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.lunUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.lunUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermergeOp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermergeOp.Vester.ps1 new file mode 100644 index 0000000..08658f7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermergeOp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.mergeOp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.mergeOp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermergeOp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.mergeOp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.mergeOp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoClusterProfile.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoClusterProfile.Vester.ps1 new file mode 100644 index 0000000..85ceea3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoClusterProfile.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moClusterProfile' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moClusterProfile' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoClusterProfile + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moClusterProfile").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moClusterProfile" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoClusterProfileMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoClusterProfileMgr.Vester.ps1 new file mode 100644 index 0000000..a31c449 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoClusterProfileMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moClusterProfileMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moClusterProfileMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoClusterProfileMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moClusterProfileMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moClusterProfileMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoComplianceManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoComplianceManager.Vester.ps1 new file mode 100644 index 0000000..1b3ecf1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoComplianceManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moComplianceManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moComplianceManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoComplianceManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moComplianceManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moComplianceManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoHostProfile.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoHostProfile.Vester.ps1 new file mode 100644 index 0000000..ec10b64 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoHostProfile.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moHostProfile' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moHostProfile' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoHostProfile + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moHostProfile").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moHostProfile" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoHostProfileMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoHostProfileMgr.Vester.ps1 new file mode 100644 index 0000000..53f121d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoHostProfileMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moHostProfileMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moHostProfileMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoHostProfileMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moHostProfileMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moHostProfileMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoProfile.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoProfile.Vester.ps1 new file mode 100644 index 0000000..45cfa74 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoProfile.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moProfile' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moProfile' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoProfile + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moProfile").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moProfile" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoProfileMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoProfileMgr.Vester.ps1 new file mode 100644 index 0000000..3f9f3a0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoProfileMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moProfileMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moProfileMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoProfileMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moProfileMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moProfileMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggermoveOp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggermoveOp.Vester.ps1 new file mode 100644 index 0000000..591cddc --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggermoveOp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.moveOp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.moveOp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggermoveOp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.moveOp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.moveOp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggeroverheadMemory.Vester.ps1 b/Vester/Tests/vCenter/VC-loggeroverheadMemory.Vester.ps1 new file mode 100644 index 0000000..6643f1b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggeroverheadMemory.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.overheadMemory' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.overheadMemory' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggeroverheadMemory + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.overheadMemory").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.overheadMemory" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerpbm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerpbm.Vester.ps1 new file mode 100644 index 0000000..affbfb6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerpbm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.pbm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.pbm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerpbm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.pbm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.pbm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerprofileExtract.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerprofileExtract.Vester.ps1 new file mode 100644 index 0000000..8c59d86 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerprofileExtract.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.profileExtract' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.profileExtract' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerprofileExtract + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.profileExtract").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.profileExtract" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerprofileUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerprofileUtil.Vester.ps1 new file mode 100644 index 0000000..dba96b8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerprofileUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.profileUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.profileUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerprofileUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.profileUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.profileUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerprovisioning.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerprovisioning.Vester.ps1 new file mode 100644 index 0000000..9b5b9ab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerprovisioning.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.provisioning' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.provisioning' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerprovisioning + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.provisioning").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.provisioning" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerproxyManagedObjectImpl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerproxyManagedObjectImpl.Vester.ps1 new file mode 100644 index 0000000..5704cd2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerproxyManagedObjectImpl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.proxyManagedObjectImpl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.proxyManagedObjectImpl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerproxyManagedObjectImpl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.proxyManagedObjectImpl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.proxyManagedObjectImpl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerpvlan.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerpvlan.Vester.ps1 new file mode 100644 index 0000000..8ae9007 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerpvlan.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.pvlan' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.pvlan' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerpvlan + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.pvlan").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.pvlan" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersdrsLogger.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersdrsLogger.Vester.ps1 new file mode 100644 index 0000000..0300c9b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersdrsLogger.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.sdrsLogger' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.sdrsLogger' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersdrsLogger + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.sdrsLogger").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.sdrsLogger" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersecondaryVmCreator.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersecondaryVmCreator.Vester.ps1 new file mode 100644 index 0000000..470d945 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersecondaryVmCreator.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.secondaryVmCreator' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.secondaryVmCreator' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersecondaryVmCreator + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.secondaryVmCreator").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.secondaryVmCreator" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersessionpool.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersessionpool.Vester.ps1 new file mode 100644 index 0000000..30ad33d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersessionpool.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.session pool' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.session pool' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersessionpool + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.session pool").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.session pool" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersms.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersms.Vester.ps1 new file mode 100644 index 0000000..479be3f --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersms.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.sms' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.sms' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersms + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.sms").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.sms" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerssoCertificate.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerssoCertificate.Vester.ps1 new file mode 100644 index 0000000..8857e5d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerssoCertificate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.ssoCertificate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.ssoCertificate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerssoCertificate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.ssoCertificate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.ssoCertificate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggerstressOption.Vester.ps1 b/Vester/Tests/vCenter/VC-loggerstressOption.Vester.ps1 new file mode 100644 index 0000000..fc26d88 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggerstressOption.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.stressOption' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.stressOption' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggerstressOption + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.stressOption").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.stressOption" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersvcUtils.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersvcUtils.Vester.ps1 new file mode 100644 index 0000000..63a502e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersvcUtils.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.svcUtils' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.svcUtils' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersvcUtils + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.svcUtils").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.svcUtils" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggersysCommandAdapter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggersysCommandAdapter.Vester.ps1 new file mode 100644 index 0000000..922fd08 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggersysCommandAdapter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.sysCommandAdapter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.sysCommandAdapter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggersysCommandAdapter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.sysCommandAdapter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.sysCommandAdapter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggertagMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggertagMgr.Vester.ps1 new file mode 100644 index 0000000..eedf11b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggertagMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.tagMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.tagMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggertagMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.tagMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.tagMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervcUpgradeMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervcUpgradeMgr.Vester.ps1 new file mode 100644 index 0000000..555b95b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervcUpgradeMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vcUpgradeMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vcUpgradeMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervcUpgradeMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vcUpgradeMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vcUpgradeMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervirtualDiskMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervirtualDiskMgr.Vester.ps1 new file mode 100644 index 0000000..e345923 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervirtualDiskMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.virtualDiskMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.virtualDiskMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervirtualDiskMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.virtualDiskMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.virtualDiskMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmMonitor.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmMonitor.Vester.ps1 new file mode 100644 index 0000000..872ad3e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmMonitor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmMonitor' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmMonitor' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmMonitor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmMonitor").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmMonitor" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmProvCheckUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmProvCheckUtil.Vester.ps1 new file mode 100644 index 0000000..d069fb9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmProvCheckUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmProvCheckUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmProvCheckUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmProvCheckUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmProvCheckUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmProvCheckUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmSpaceUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmSpaceUtil.Vester.ps1 new file mode 100644 index 0000000..a128cf3 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmSpaceUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmSpaceUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmSpaceUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmSpaceUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmSpaceUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmSpaceUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmStateSyncer.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmStateSyncer.Vester.ps1 new file mode 100644 index 0000000..1e23a94 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmStateSyncer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmStateSyncer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmStateSyncer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmStateSyncer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmStateSyncer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmStateSyncer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmTestSet.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmTestSet.Vester.ps1 new file mode 100644 index 0000000..3a7df2b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmTestSet.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmTestSet' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmTestSet' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmTestSet + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmTestSet").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmTestSet" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmconfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmconfig.Vester.ps1 new file mode 100644 index 0000000..d171b6a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmconfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmconfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmconfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmconfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmconfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmconfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmft.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmft.Vester.ps1 new file mode 100644 index 0000000..4d7afa1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmft.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmft' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmft' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmft + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmft").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmft" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmguest.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmguest.Vester.ps1 new file mode 100644 index 0000000..413ef30 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmguest.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmguest' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmguest' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmguest + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmguest").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmguest" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmmoVm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmmoVm.Vester.ps1 new file mode 100644 index 0000000..328dd69 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmmoVm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmmoVm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmmoVm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmmoVm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmmoVm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmmoVm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervmsnapshot.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervmsnapshot.Vester.ps1 new file mode 100644 index 0000000..49108ad --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervmsnapshot.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vmsnapshot' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vmsnapshot' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervmsnapshot + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vmsnapshot").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vmsnapshot" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxCertificate.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxCertificate.Vester.ps1 new file mode 100644 index 0000000..1a0e9aa --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxCertificate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxCertificate' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxCertificate' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxCertificate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxCertificate").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxCertificate" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxCommon.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxCommon.Vester.ps1 new file mode 100644 index 0000000..bec7b86 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxCommon.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxCommon' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxCommon' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxCommon + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxCommon").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxCommon" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxCrypt.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxCrypt.Vester.ps1 new file mode 100644 index 0000000..6505ce8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxCrypt.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxCrypt' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxCrypt' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxCrypt + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxCrypt").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxCrypt" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxDas.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxDas.Vester.ps1 new file mode 100644 index 0000000..2bf0123 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxDas.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxDas' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxDas' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxDas + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxDas").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxDas" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxDebugTimer.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxDebugTimer.Vester.ps1 new file mode 100644 index 0000000..8e1a74a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxDebugTimer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxDebugTimer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxDebugTimer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxDebugTimer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxDebugTimer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxDebugTimer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxFileCopier.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxFileCopier.Vester.ps1 new file mode 100644 index 0000000..74c9579 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxFileCopier.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxFileCopier' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxFileCopier' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxFileCopier + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxFileCopier").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxFileCopier" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxFileInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxFileInfo.Vester.ps1 new file mode 100644 index 0000000..7b8b77b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxFileInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxFileInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxFileInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxFileInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxFileInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxFileInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxJournalEntry.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxJournalEntry.Vester.ps1 new file mode 100644 index 0000000..107b756 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxJournalEntry.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxJournalEntry' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxJournalEntry' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxJournalEntry + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxJournalEntry").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxJournalEntry" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxLdap.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxLdap.Vester.ps1 new file mode 100644 index 0000000..a15c6ec --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxLdap.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxLdap' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxLdap' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxLdap + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxLdap").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxLdap" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxLro.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxLro.Vester.ps1 new file mode 100644 index 0000000..f4a3d89 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxLro.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxLro' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxLro' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxLro + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxLro").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxLro" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxNfcClient.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxNfcClient.Vester.ps1 new file mode 100644 index 0000000..ad97f25 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxNfcClient.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxNfcClient' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxNfcClient' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxNfcClient + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxNfcClient").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxNfcClient" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxNfcServer.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxNfcServer.Vester.ps1 new file mode 100644 index 0000000..c28c9f6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxNfcServer.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxNfcServer' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxNfcServer' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxNfcServer + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxNfcServer").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxNfcServer" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxPowerExec.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxPowerExec.Vester.ps1 new file mode 100644 index 0000000..994e24e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxPowerExec.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxPowerExec' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxPowerExec' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxPowerExec + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxPowerExec").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxPowerExec" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxResultFilter.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxResultFilter.Vester.ps1 new file mode 100644 index 0000000..e3c67ff --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxResultFilter.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxResultFilter' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxResultFilter' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxResultFilter + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxResultFilter").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxResultFilter" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxTaskInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxTaskInfo.Vester.ps1 new file mode 100644 index 0000000..2676bc5 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxTaskInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxTaskInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxTaskInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxTaskInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxTaskInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxTaskInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxUrl.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxUrl.Vester.ps1 new file mode 100644 index 0000000..4e5f83c --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxUrl.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxUrl' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxUrl' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxUrl + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxUrl").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxUrl" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxUrlHelper.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxUrlHelper.Vester.ps1 new file mode 100644 index 0000000..e2a5bab --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxUrlHelper.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxUrlHelper' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxUrlHelper' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxUrlHelper + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxUrlHelper").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxUrlHelper" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxUtil.Vester.ps1 new file mode 100644 index 0000000..48caf74 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaAuthorize.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaAuthorize.Vester.ps1 new file mode 100644 index 0000000..f4829b4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaAuthorize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaAuthorize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaAuthorize' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaAuthorize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaAuthorize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaAuthorize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaDaemon.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaDaemon.Vester.ps1 new file mode 100644 index 0000000..d701a0a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaDaemon.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaDaemon' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaDaemon' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaDaemon + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDaemon").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDaemon" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaDatastore.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaDatastore.Vester.ps1 new file mode 100644 index 0000000..8849438 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaDatastore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaDatastore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaDatastore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaDatastore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDatastore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDatastore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaDatastoreContext.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaDatastoreContext.Vester.ps1 new file mode 100644 index 0000000..321c687 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaDatastoreContext.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaDatastoreContext' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaDatastoreContext' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaDatastoreContext + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDatastoreContext").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaDatastoreContext" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaInvtHost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaInvtHost.Vester.ps1 new file mode 100644 index 0000000..2909a82 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaInvtHost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaInvtHost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaInvtHost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaInvtHost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtHost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtHost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaInvtHostCnx.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaInvtHostCnx.Vester.ps1 new file mode 100644 index 0000000..e77a991 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaInvtHostCnx.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaInvtHostCnx' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaInvtHostCnx' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaInvtHostCnx + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtHostCnx").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtHostCnx" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaInvtVm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaInvtVm.Vester.ps1 new file mode 100644 index 0000000..d6d12d2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaInvtVm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaInvtVm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaInvtVm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaInvtVm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtVm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaInvtVm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaLegacyHost.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaLegacyHost.Vester.ps1 new file mode 100644 index 0000000..cc69d81 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaLegacyHost.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaLegacyHost' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaLegacyHost' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaLegacyHost + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaLegacyHost").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaLegacyHost" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMain.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMain.Vester.ps1 new file mode 100644 index 0000000..a541306 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMain.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMain' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMain' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMain + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMain").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMain" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMoHostConfig.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMoHostConfig.Vester.ps1 new file mode 100644 index 0000000..5608b89 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMoHostConfig.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMoHostConfig' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMoHostConfig' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMoHostConfig + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoHostConfig").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoHostConfig" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMoLicenseMgr.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMoLicenseMgr.Vester.ps1 new file mode 100644 index 0000000..3256883 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMoLicenseMgr.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMoLicenseMgr' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMoLicenseMgr' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMoLicenseMgr + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoLicenseMgr").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoLicenseMgr" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMoService.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMoService.Vester.ps1 new file mode 100644 index 0000000..2ffb63b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMoService.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMoService' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMoService' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMoService + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoService").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoService" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMoVMotion.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMoVMotion.Vester.ps1 new file mode 100644 index 0000000..7f410ee --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMoVMotion.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMoVMotion' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMoVMotion' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMoVMotion + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoVMotion").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoVMotion" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaMoVm.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaMoVm.Vester.ps1 new file mode 100644 index 0000000..58bfac4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaMoVm.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaMoVm' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaMoVm' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaMoVm + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoVm").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaMoVm" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaNameReserve.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaNameReserve.Vester.ps1 new file mode 100644 index 0000000..16ef46b --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaNameReserve.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaNameReserve' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaNameReserve' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaNameReserve + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaNameReserve").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaNameReserve" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaSessionManager.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaSessionManager.Vester.ps1 new file mode 100644 index 0000000..b84638d --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaSessionManager.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaSessionManager' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaSessionManager' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaSessionManager + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaSessionManager").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaSessionManager" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaStatsMetadata.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaStatsMetadata.Vester.ps1 new file mode 100644 index 0000000..1223bc8 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaStatsMetadata.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaStatsMetadata' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaStatsMetadata' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaStatsMetadata + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaStatsMetadata").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaStatsMetadata" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaTaskInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaTaskInfo.Vester.ps1 new file mode 100644 index 0000000..7030c53 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaTaskInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaTaskInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaTaskInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaTaskInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaTaskInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaTaskInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaVmConfigInfo.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaVmConfigInfo.Vester.ps1 new file mode 100644 index 0000000..9f78535 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaVmConfigInfo.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaVmConfigInfo' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaVmConfigInfo' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaVmConfigInfo + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmConfigInfo").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmConfigInfo" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaVmomi.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaVmomi.Vester.ps1 new file mode 100644 index 0000000..6f29ac6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaVmomi.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaVmomi' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaVmomi' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaVmomi + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmomi").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmomi" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaVmprov.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaVmprov.Vester.ps1 new file mode 100644 index 0000000..1ae46c9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaVmprov.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaVmprov' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaVmprov' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaVmprov + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmprov").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmprov" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxaVmprovUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxaVmprovUtil.Vester.ps1 new file mode 100644 index 0000000..e8a0a96 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxaVmprovUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxaVmprovUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxaVmprovUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxaVmprovUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmprovUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxaVmprovUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxahttpHandler.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxahttpHandler.Vester.ps1 new file mode 100644 index 0000000..1349971 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxahttpHandler.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxahttpHandler' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxahttpHandler' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxahttpHandler + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxahttpHandler").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxahttpHandler" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxdUtil.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxdUtil.Vester.ps1 new file mode 100644 index 0000000..8319650 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxdUtil.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxdUtil' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxdUtil' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxdUtil + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxdUtil").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxdUtil" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxdVdb.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxdVdb.Vester.ps1 new file mode 100644 index 0000000..dc5da13 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxdVdb.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxdVdb' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxdVdb' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxdVdb + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxdVdb").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxdVdb" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervpxdvpxdSignal.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervpxdvpxdSignal.Vester.ps1 new file mode 100644 index 0000000..27c4bb1 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervpxdvpxdSignal.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vpxdvpxdSignal' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vpxdvpxdSignal' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervpxdvpxdSignal + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vpxdvpxdSignal").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vpxdvpxdSignal" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervspan.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervspan.Vester.ps1 new file mode 100644 index 0000000..6fc216e --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervspan.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vspan' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vspan' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervspan + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vspan").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vspan" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loggervumOp.Vester.ps1 b/Vester/Tests/vCenter/VC-loggervumOp.Vester.ps1 new file mode 100644 index 0000000..7490f4a --- /dev/null +++ b/Vester/Tests/vCenter/VC-loggervumOp.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'logger.vumOp' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'logger.vumOp' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loggervumOp + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "logger.vumOp").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "logger.vumOp" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-loglevel.Vester.ps1 b/Vester/Tests/vCenter/VC-loglevel.Vester.ps1 new file mode 100644 index 0000000..f771e73 --- /dev/null +++ b/Vester/Tests/vCenter/VC-loglevel.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'log.level' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Logging level' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.loglevel + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "log.level").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "log.level" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-mailsmtpport.Vester.ps1 b/Vester/Tests/vCenter/VC-mailsmtpport.Vester.ps1 new file mode 100644 index 0000000..e180115 --- /dev/null +++ b/Vester/Tests/vCenter/VC-mailsmtpport.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'mail.smtp.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'SMTP server port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.mailsmtpport + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "mail.smtp.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "mail.smtp.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-schemaversionmajor.Vester.ps1 b/Vester/Tests/vCenter/VC-schemaversionmajor.Vester.ps1 new file mode 100644 index 0000000..078a447 --- /dev/null +++ b/Vester/Tests/vCenter/VC-schemaversionmajor.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'schema.version.major' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Major database version' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.schemaversionmajor + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "schema.version.major").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "schema.version.major" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver1community.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver1community.Vester.ps1 new file mode 100644 index 0000000..8927c7a --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver1community.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.1.community' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'First SNMP receiver community' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver1community + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.community").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.community" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver1enabled.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver1enabled.Vester.ps1 new file mode 100644 index 0000000..d75ad6f --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver1enabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.1.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Enable first SNMP receiver' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver1enabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver1name.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver1name.Vester.ps1 new file mode 100644 index 0000000..31ae987 --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver1name.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.1.name' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'First SNMP receiver name' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver1name + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.name").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.name" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver1port.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver1port.Vester.ps1 new file mode 100644 index 0000000..43513d4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver1port.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.1.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'First SNMP receiver port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver1port + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.1.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver2port.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver2port.Vester.ps1 new file mode 100644 index 0000000..9dadacf --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver2port.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.2.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Second SNMP receiver port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver2port + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.2.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.2.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver3port.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver3port.Vester.ps1 new file mode 100644 index 0000000..86a9dbb --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver3port.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.3.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Third SNMP receiver port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver3port + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.3.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.3.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-snmpreceiver4port.Vester.ps1 b/Vester/Tests/vCenter/VC-snmpreceiver4port.Vester.ps1 new file mode 100644 index 0000000..a16a92b --- /dev/null +++ b/Vester/Tests/vCenter/VC-snmpreceiver4port.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'snmp.receiver.4.port' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Fourth SNMP receiver port' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.snmpreceiver4port + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.4.port").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "snmp.receiver.4.port" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-taskbatchsize.Vester.ps1 b/Vester/Tests/vCenter/VC-taskbatchsize.Vester.ps1 new file mode 100644 index 0000000..c7d92a6 --- /dev/null +++ b/Vester/Tests/vCenter/VC-taskbatchsize.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'task.batchsize' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Batch size in cleanup tasks procedure' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.taskbatchsize + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "task.batchsize").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "task.batchsize" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscncountry.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscncountry.Vester.ps1 new file mode 100644 index 0000000..01f476e --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscncountry.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.country' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Country Name for the ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscncountry + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.country").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.country" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnemail.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnemail.Vester.ps1 new file mode 100644 index 0000000..4c54c91 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnemail.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.email' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Email address for the ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscnemail + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.email").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.email" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnlocalityName.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnlocalityName.Vester.ps1 new file mode 100644 index 0000000..c1668dc --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnlocalityName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.localityName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Locality Name for ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscnlocalityName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.localityName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.localityName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationName.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationName.Vester.ps1 new file mode 100644 index 0000000..d4d01ce --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.organizationName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Organization Name for ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscnorganizationName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.organizationName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.organizationName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationalUnitName.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationalUnitName.Vester.ps1 new file mode 100644 index 0000000..16977e7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnorganizationalUnitName.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.organizationalUnitName' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Organizational Unit Name for ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscnorganizationalUnitName + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.organizationalUnitName").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.organizationalUnitName" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnstate.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnstate.Vester.ps1 new file mode 100644 index 0000000..ed04706 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertscnstate.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.cn.state' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'State Name for ESXi Host Certificates' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertscnstate + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.state").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.cn.state" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsdaysValid.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsdaysValid.Vester.ps1 new file mode 100644 index 0000000..56078f4 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsdaysValid.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.daysValid' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'ESXi Certificate Validity Period (in days)' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertsdaysValid + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.daysValid").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.daysValid" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertshardThreshold.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertshardThreshold.Vester.ps1 new file mode 100644 index 0000000..5cb1699 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertshardThreshold.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.hardThreshold' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'ESXi Certificate Management Hard Threshold (in days)' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertshardThreshold + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.hardThreshold").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.hardThreshold" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsminutesBefore.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsminutesBefore.Vester.ps1 new file mode 100644 index 0000000..7f0a52a --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertsminutesBefore.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.minutesBefore' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'vpxd.certmgmt.certs.minutesBefore' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertsminutesBefore + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.minutesBefore").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.minutesBefore" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertspollIntervalDays.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertspollIntervalDays.Vester.ps1 new file mode 100644 index 0000000..a90a10c --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertspollIntervalDays.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.pollIntervalDays' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'ESXi Certificate Validity Check Interval (in days)' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertspollIntervalDays + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.pollIntervalDays").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.pollIntervalDays" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtcertssoftThreshold.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertssoftThreshold.Vester.ps1 new file mode 100644 index 0000000..38af134 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtcertssoftThreshold.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.certs.softThreshold' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'ESXi Certificate Management Soft Threshold (in days)' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtcertssoftThreshold + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.softThreshold").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.certs.softThreshold" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertmgmtmode.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertmgmtmode.Vester.ps1 new file mode 100644 index 0000000..f3162c0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertmgmtmode.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.certmgmt.mode' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'ESXi Certificate Management Mode' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertmgmtmode + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.mode").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.certmgmt.mode" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdcertthreshold.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdcertthreshold.Vester.ps1 new file mode 100644 index 0000000..fde58ad --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdcertthreshold.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.cert.threshold' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Certificate Management Threshold (in days)' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdcertthreshold + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.cert.threshold").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.cert.threshold" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdeventfeaturesVC_Events_Retention.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdeventfeaturesVC_Events_Retention.Vester.ps1 new file mode 100644 index 0000000..25804c7 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdeventfeaturesVC_Events_Retention.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.event.features.VC_Events_Retention' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Internal events setting' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdeventfeaturesVC_Events_Retention + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.event.features.VC_Events_Retention").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.event.features.VC_Events_Retention" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdeventsyslogenabled.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdeventsyslogenabled.Vester.ps1 new file mode 100644 index 0000000..3071a7b --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdeventsyslogenabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.event.syslog.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Enable syslog streaming' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdeventsyslogenabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.event.syslog.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.event.syslog.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdhttpClientIdleTimeout.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdhttpClientIdleTimeout.Vester.ps1 new file mode 100644 index 0000000..074d322 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdhttpClientIdleTimeout.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.httpClientIdleTimeout' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Http Client Pool Idle Timeout' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdhttpClientIdleTimeout + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.httpClientIdleTimeout").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.httpClientIdleTimeout" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdlicensedata.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdlicensedata.Vester.ps1 new file mode 100644 index 0000000..b7e4005 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdlicensedata.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.license.data' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'License data' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdlicensedata + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.license.data").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.license.data" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationportWwnNumber.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationportWwnNumber.Vester.ps1 new file mode 100644 index 0000000..e4ba410 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationportWwnNumber.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.npivWwnGeneration.portWwnNumber' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Generation port WWN number' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdnpivWwnGenerationportWwnNumber + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.npivWwnGeneration.portWwnNumber").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.npivWwnGeneration.portWwnNumber" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationsingleNodeWwn.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationsingleNodeWwn.Vester.ps1 new file mode 100644 index 0000000..b0cfa64 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdnpivWwnGenerationsingleNodeWwn.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.npivWwnGeneration.singleNodeWwn' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Generation single node WWN' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdnpivWwnGenerationsingleNodeWwn + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.npivWwnGeneration.singleNodeWwn").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.npivWwnGeneration.singleNodeWwn" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdusageStatsduration.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdusageStatsduration.Vester.ps1 new file mode 100644 index 0000000..75bf9d0 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdusageStatsduration.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.usageStats.duration' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Usage statistics duration' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdusageStatsduration + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.usageStats.duration").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.usageStats.duration" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdusageStatspersist.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdusageStatspersist.Vester.ps1 new file mode 100644 index 0000000..0748fc2 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdusageStatspersist.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.usageStats.persist' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Save usage statistics to the database' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdusageStatspersist + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.usageStats.persist").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.usageStats.persist" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdvdbspaceerrorPercent.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdvdbspaceerrorPercent.Vester.ps1 new file mode 100644 index 0000000..9063f5f --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdvdbspaceerrorPercent.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.vdb.space.errorPercent' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'The used database space that triggers an error event' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdvdbspaceerrorPercent + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.vdb.space.errorPercent").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.vdb.space.errorPercent" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdvdbspacewarningPercent.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdvdbspacewarningPercent.Vester.ps1 new file mode 100644 index 0000000..9f9b954 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdvdbspacewarningPercent.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.vdb.space.warningPercent' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'The used database space that triggers a warning event' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdvdbspacewarningPercent + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Int32' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.vdb.space.warningPercent").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.vdb.space.warningPercent" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdvodpersist.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdvodpersist.Vester.ps1 new file mode 100644 index 0000000..aae2f81 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdvodpersist.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.vod.persist' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Save usage statistics to a file' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdvodpersist + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.vod.persist").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.vod.persist" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vpxdwebscriptLauncherenabled.Vester.ps1 b/Vester/Tests/vCenter/VC-vpxdwebscriptLauncherenabled.Vester.ps1 new file mode 100644 index 0000000..57122d9 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vpxdwebscriptLauncherenabled.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vpxd.webscriptLauncher.enabled' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'Enable webscript launcher page' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vpxdwebscriptLauncherenabled + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'Boolean' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vpxd.webscriptLauncher.enabled").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vpxd.webscriptLauncher.enabled" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +} diff --git a/Vester/Tests/vCenter/VC-vrdmauuid.Vester.ps1 b/Vester/Tests/vCenter/VC-vrdmauuid.Vester.ps1 new file mode 100644 index 0000000..b89ab38 --- /dev/null +++ b/Vester/Tests/vCenter/VC-vrdmauuid.Vester.ps1 @@ -0,0 +1,27 @@ +# Test file for the Vester module - https://github.com/WahlNetwork/Vester +# Called via Invoke-Pester VesterTemplate.Tests.ps1 + +# Test title, e.g. 'DNS Servers' +$Title = 'vrdma.uuid' + +# Test description: How New-VesterConfig explains this value to the user +$Description = 'vrdma.uuid' + +# The config entry stating the desired values +$Desired = $cfg.vcenter.vrdmauuid + +# The test value's data type, to help with conversion: bool/string/int +$Type = 'String' + +# The command(s) to pull the actual value for comparison +# $Object will scope to the folder this test is in (Cluster, Host, etc.) +[ScriptBlock]$Actual = { + (Get-AdvancedSetting -Entity $Object -Name "vrdma.uuid").Value +} + +# The command(s) to match the environment to the config +# Use $Object to help filter, and to set the correct value +[ScriptBlock]$Fix = { + Get-AdvancedSetting -Entity $Object -Name "vrdma.uuid" | + Set-AdvancedSetting -value $Desired -Confirm:$false -ErrorAction Stop +}