Sha256: 7c4e0e1db320e594e2ddcd187fc4824efa1038a60d78316955d3ecd0f2f19a9c

Contents?: true

Size: 1.72 KB

Versions: 9

Compression:

Stored size: 1.72 KB

Contents

Describe 'SharePoint 2013' {

    function Is-Service-Running($serviceName)
    {
        (get-service $serviceName).Status | Should BeLike "Running"
    }

    Context "General Services" {

        It 'World Wide Web Publishing Service' {
            Is-Service-Running "World Wide Web Publishing Service"
         }

    }

    Context "SharePoint Services" {

         It 'SharePoint Administration' {
            Is-Service-Running "SharePoint Administration"
         }

         It 'SharePoint Search Host Controller' {
            Is-Service-Running "SharePoint Search Host Controller"
         }

         It 'SharePoint Server Search 15' {
            Is-Service-Running "SharePoint Server Search 15"
         }

         It 'SharePoint Timer Service' {
            Is-Service-Running "SharePoint Timer Service"
         }

         It 'SharePoint Tracing Service' {
            Is-Service-Running "SharePoint Tracing Service"
         }

         It 'SharePoint User Code Host' {
            Is-Service-Running "SharePoint User Code Host"
         }

     }

     function IIS-AppPool-Running($appPoolName) {
        Import-Module WebAdministration
        (
            (get-CHildItem "IIS:\\AppPools") `
                | Where-Object { $_.Name -eq $appPoolName }
        ).State | Should BeLike "Started"
     }

     Context "SharePoint IIS App Pools" {

        It 'SharePoint Web Services Root' {
            IIS-AppPool-Running "SharePoint Web Services Root"
        }

        It 'SharePoint Central Administration v4' {
            IIS-AppPool-Running "SharePoint Central Administration v4"
        }

        It 'SecurityTokenServiceApplicationPool' {
            IIS-AppPool-Running "SecurityTokenServiceApplicationPool"
        }

     }

}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-uplift-0.2.1902.49 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.46 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.42 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.40 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.39 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.37 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.32 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.19 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1
vagrant-uplift-0.2.1902.18 lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2013.dsc.wfe.Tests.ps1