Skip to content

Commit

Permalink
add import
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewige committed Jan 18, 2025
1 parent 2966317 commit 018a9fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/cleanup_ebpf_cicd_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Push-Location $WorkingDirectory

Import-Module .\common.psm1 -Force -ArgumentList ($LogFileName) -WarningAction SilentlyContinue
# $TestVMCredential = Get-AzureKeyVaultCredential -SecretName 'Administrator'
Import-Module CredentialManager -ErrorAction Stop
$TestVMCredential = Get-StoredCredential -Target $Target -ErrorAction Stop

# Read the test execution json.
Expand Down
2 changes: 1 addition & 1 deletion scripts/execute_ebpf_cicd_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param ([Parameter(Mandatory = $false)][string] $AdminTarget = "TEST_VM",
Push-Location $WorkingDirectory

Import-Module $WorkingDirectory\common.psm1 -Force -ArgumentList ($LogFileName) -ErrorAction Stop

Import-Module CredentialManager -ErrorAction Stop
# $AdminTestVMCredential = Get-AzureKeyVaultCredential -SecretName 'Administrator'
# $StandardUserTestVMCredential = Get-AzureKeyVaultCredential -SecretName 'VMStandardUser'
$AdminTestVMCredential = Get-StoredCredential -Target $AdminTarget -ErrorAction Stop
Expand Down
3 changes: 2 additions & 1 deletion scripts/setup_ebpf_cicd_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ param ([parameter(Mandatory=$false)][string] $Target = "TEST_VM",

Push-Location $WorkingDirectory

$TestVMCredential = Get-StoredCredential -Target $Target -ErrorAction Stop
Import-Module CredentialManager -ErrorAction Stop

# Load other utility modules.
Import-Module .\common.psm1 -Force -ArgumentList ($LogFileName) -WarningAction SilentlyContinue
# $TestVMCredential = Get-AzureKeyVaultCredential -SecretName 'Administrator'

Import-Module .\config_test_vm.psm1 -Force -ArgumentList ($TestVMCredential.UserName, $TestVMCredential.Password, $WorkingDirectory, $LogFileName) -WarningAction SilentlyContinue
$TestVMCredential = Get-StoredCredential -Target $Target -ErrorAction Stop

# Read the test execution json.
$Config = Get-Content ("{0}\{1}" -f $PSScriptRoot, $TestExecutionJsonFileName) | ConvertFrom-Json
Expand Down

0 comments on commit 018a9fb

Please sign in to comment.