mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Where should I place these variables
This commit is contained in:
parent
dd2fc82af2
commit
3e795d0c5d
1 changed files with 6 additions and 4 deletions
|
|
@ -1,10 +1,12 @@
|
|||
BeforeAll {
|
||||
$script:SnipeitDev = 'https://develop.snipeitapp.com/'
|
||||
$script:SnipeitKey = 'UqddVx6SDb3HLw1Pmw1wGGYHA6w8wWQAiS9kg2xMcz5i75HOULaN3miqYvcPCvHpI2CBfuvdplI8QNm_XzFPmoQRu_5kR8knzla4'
|
||||
$script:SnipeitSecKey = ConvertTo-SecureString -Force -AsPlainText -String $SnipeitKey
|
||||
$script:SnipeSiteCred = New-Object -Type PSCredential -Argumentlist $SnipeitDev,$SnipeitSecKey
|
||||
}
|
||||
|
||||
Describe 'Connect-SnipeitPS' {
|
||||
Context "Connections" {
|
||||
$script:SnipeitDev = 'https://develop.snipeitapp.com/'
|
||||
$script:SnipeitKey = 'UqddVx6SDb3HLw1Pmw1wGGYHA6w8wWQAiS9kg2xMcz5i75HOULaN3miqYvcPCvHpI2CBfuvdplI8QNm_XzFPmoQRu_5kR8knzla4'
|
||||
$script:SnipeitSecKey = ConvertTo-SecureString -Force -AsPlainText -String $SnipeitKey
|
||||
$script:SnipeSiteCred = New-Object -Type PSCredential -Argumentlist $SnipeitDev,$SnipeitSecKey
|
||||
|
||||
It 'Should connect to api with url and api key' {
|
||||
Connect-SnipeitPS -url $script:SnipeitDev -apiKey $script:SnipeitKey | Should -Not Throw
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue