From 31638c5f485269b717f5a546478aeb27510c3051 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Mon, 17 Feb 2025 14:31:47 -0500 Subject: [PATCH] Delete test.ps1 removed old test file --- ZertoApiWrapper/test.ps1 | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 ZertoApiWrapper/test.ps1 diff --git a/ZertoApiWrapper/test.ps1 b/ZertoApiWrapper/test.ps1 deleted file mode 100644 index 8bcd0c4..0000000 --- a/ZertoApiWrapper/test.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -$Body = @{ - 'client_id' = 'zerto-client' - 'username' = 'admin' - 'password' = 'Zertodata987!' - 'grant_type' = 'password' -} -$Params = @{ - 'Uri' = 'https://192.168.50.60/auth/realms/zerto/protocol/openid-connect/token' - 'Method' = 'Post' - 'Body' = $Body - 'ContentType' = 'application/x-www-form-urlencoded' -} -$Result = Invoke-RestMethod @Params -SkipCertificateCheck - -Write-Host $Result - -$ExpiresIn = $Result.expires_in -$ExpiresAt = (Get-Date).AddSeconds($ExpiresIn) - -Write-Host $ExpiresAt - -Write-Host $Result