Obs/bin/TestObservability/TestModules/TestScheduledTasksMAConfig/TestScheduledTasksMAConfig.psm1

<##############################################################
# #
# Copyright (C) Microsoft Corporation. All rights reserved. #
# #
##############################################################>

using Module ..\..\HelperFiles\Result.psm1
Import-Module $PSScriptRoot\..\..\HelperFiles\TestObsHelper.psm1 -Force
Import-Module $PSScriptRoot\ScheduledTasksMAConfigTestRow.psm1 -Force

function Test-ScheduledTasksMAConfig
{
    Param(
        [Parameter(Mandatory=$true)]
        [PSCustomObject]
        $TestReport,

        [Parameter(Mandatory=$true)]
        [string]
        $DeviceType
     )

    try
    {
        $functionName = $($MyInvocation.MyCommand.Name)
        Trace-Progress "$functionName : Checking scheduled task status"
        $testRow = Test-ScheduledTaskStatus
        $TestReport.Rows.Add($TestRow)
        Trace-Progress "$functionName : Checking if the scheduled task ran within the expected time frame"
        $testRow = Check-IfTaskRanWithinExpectedTimeFrame
        $TestReport.Rows.Add($TestRow)
        return $TestReport
    }
    catch
    {
        Trace-Progress "$functionName : Failed with $_" -Error
        return $TestReport
    }
}

function Test-ScheduledTaskStatus
{
     try
     {
          $functionName = $($MyInvocation.MyCommand.Name)
          $taskName = "Get-TelemetryStatusAndEditConfigsInJsonDropLocation"
          $testRow = New-ScheduledTaskTestRow -TestName "Get Scheduled Task Status for $taskName"
          $testRow.TestDescription = "Check if status of task is 'Ready' or 'running'"

          Trace-Progress "$functionName : Getting JSON data regarding task $taskName"
          $scheduledTaskData = Get-Content -Path "$PSScriptRoot\ScheduledTaskData.json" | ConvertFrom-Json
          $task = $scheduledTaskData.GetTelemetryStatusAndEditConfigsInJsonDropLocation
          $taskPath = $task.TaskPath
          $taskPathLogging = "The task path for task $taskName is $taskPath"
          $testRow.AdditionalInformation = $taskPathLogging
          Trace-Progress "$functionName : $taskPathLogging"
          try
          {
              $scheduledTask = ScheduledTasks\Get-ScheduledTask -TaskName $taskname -TaskPath $taskPath 
          }
          catch
          {
               $testRow.Result = [Result]::FAIL
               $testRow.ReasonForFailure = "Could not get scheduled task. $_"
               return $testRow
          }
          
          Trace-Progress "$functionName : Checking if scheduled task exists and what it's state is.'"
          if ($null -eq $scheduledTask)
          {
              $testRow.Result = [Result]::FAIL
              $testRow.ReasonForFailure = "No task found for $taskName at path $taskPath"
          }
          else
          {
              $state = $scheduledTask.State
              if (($state -eq "Ready") -or ($state -eq "running"))
              {
                  $testRow.Result = [Result]::PASS
                  $testRow.AdditionalInformation += " The task state is $state."
              }
              else
              {
                  $testRow.Result = [Result]::FAIL
                  $testRow.ReasonForFailure = "Task for $taskname at path $taskPath has state $state. Expecting state [ready] or state [running]"
              }
          }
          return $testRow  
     }
    catch
     {
         $failureMessage = "$functionName : failed with $_"
         Trace-Progress $failureMessage -Error
         return Update-ScheduledTaskTestRowForError -TestRow $testRow -FailureMessage $failureMessage
     }
}

function Check-IfTaskRanWithinExpectedTimeFrame
{
     try
     {
          $functionName = $($MyInvocation.MyCommand.Name)
          $taskName = "Get-TelemetryStatusAndEditConfigsInJsonDropLocation"
          $testRow = New-ScheduledTaskTestRow -TestName "Check if task $taskName is running according to schedule"
          $testRow.TestDescription = "Check if the task ran within the last hour."

          Trace-Progress "$functionName : Getting JSON data regarding task $taskName"
          $scheduledTaskData = Get-Content -Path "$PSScriptRoot\ScheduledTaskData.json" | ConvertFrom-Json
          $task = $scheduledTaskData.GetTelemetryStatusAndEditConfigsInJsonDropLocation
          $pathToTranscript = $task.PathToTranscript
          if ($pathToTranscript.Contains('$'))
          {
              # The path might contain environment variables, hence expanding it to actual path.
              # Example for valid environment variables: $env:WinDir, $env:SystemDrive, $env:ProgramData.
              $pathToTranscript = $ExecutionContext.InvokeCommand.ExpandString($pathToTranscript)
          }
          Trace-Progress "$functionName : Path to transcripts for task $taskName is $pathToTranscript"
          # Based on how often scheduled task is run, determine what is the latest time the task should have ran.
          $timeSpan = [TimeSpan]::Parse($task.TaskSchedule)
          $expectedLastModifiedTime = (Get-Date) - $timeSpan
          Trace-Progress "$functionName : It is expected that task was modified some time on or after $expectedLastModifiedTime"
          $transcripts = Get-ChildItem -Path $PathToTranscript -Filter "$taskName*" | Sort LastWriteTime -Descending
          if ($null -eq $transcripts -or $transcripts.Count -eq 0)
          {
              $testRow.Result = [Result]::FAIL
              $failureReason = "No transcripts matching task $taskName found at path : $pathToTranscript"
              $testRow.ReasonForFailure = $failureReason
              Trace-Progress "$functionName : $failureReason"
          }
          else
          {
              $transcript = $transcripts[0]
              if ($transcript.LastWriteTime -ge $expectedLastModifiedTime)
              {
                  Trace-Progress "$functionName : Most recent transcript has a last write time of $($transcript.LastWriteTime)"
                  $transcriptContent = Get-Content $transcript.FullName | Out-String
                  if ([string]::IsNullOrEmpty($transcriptContent))
                  {
                      $testRow.Result = [Result]::FAIL
                      $failureReason = "Content of $($transcript.FullName) was null or empty"
                      $testRow.ReasonForFailure =  $failureReason
                      Trace-Progress "$functionName : $failureReason"
                  }
                  else
                  {
                      $testRow.Result = [Result]::PASS
                      $additionalInformationLogging = "The last modified time of $($transcript.FullName) was $($transcript.LastWriteTime)"
                      $testRow.AdditionalInformation = $additionalInformationLogging
                      Trace-Progress "$functionName : $additionalInformationLogging"
                  } 
              }
              else
              {
                  $testRow.Result = [Result]::FAIL
                  $testRow.ReasonForFailure = "The last modified time of $($transcript.FullName) was $($transcript.LastWriteTime), which is not within an hour."
              }
          }
          return $testRow
     }
     catch
     {
         $failureMessage = "$functionName : failed with $_"
         Trace-Progress $failureMessage -Error
         return Update-ScheduledTaskTestRowForError -TestRow $testRow -FailureMessage $failureMessage
     }
}

Export-ModuleMember -Function Test-ScheduledTasksMAConfig -Verbose:$false

# SIG # Begin signature block
# MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDu3J9xQ9roq7aP
# 6h/r55OEn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