Skip to content

Commit

Permalink
fixed UTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajalp1079 committed Oct 27, 2024
1 parent 95df2ff commit a04c53c
Showing 1 changed file with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";

Ensure = 'Present'
Credential = $Credential
Ensure = 'Present';
Credential = $Credential;
}

Mock -CommandName Get-MgBetaDeviceManagementApplePushNotificationCertificate -MockWith {
Expand Down Expand Up @@ -93,6 +95,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";

Ensure = 'Absent'
Credential = $Credential
Expand All @@ -107,6 +111,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";
}
}
}
Expand All @@ -133,9 +139,11 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";

Ensure = 'Present'
Credential = $Credential
Ensure = 'Present'
Credential = $Credential
}

Mock -CommandName Get-MgBetaDeviceManagementApplePushNotificationCertificate -MockWith {
Expand All @@ -147,6 +155,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";
}
}
}
Expand All @@ -166,6 +176,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";

Ensure = 'Present'
Credential = $Credential
Expand All @@ -180,6 +192,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";
}
}
}
Expand Down Expand Up @@ -215,6 +229,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
TopicIdentifier = "com.apple.mgmt.External.0055e7e9-492b-4d46-967a-28fc5d49edb6";
ExpirationDateTime = "10/25/2025 6:14:57 PM";
LastModifiedDateTime = "10/27/2024 5:55:44 AM";
CertificateUploadStatus = "Success";
CertificateUploadFailureReason = "None";
}
}
}
Expand Down

0 comments on commit a04c53c

Please sign in to comment.