chocolatey/boxstarter

Issue using BoxStarter test runner module with Artifactory API keys

Opened this issue · 1 comments

What You Are Seeing?

I am trying to use the Boxstarter test runner's PowerShell cmdlet: Set-BoxstarterDeployOptions. As arguments to this cmdlet, i am providing the URL to our internal Artifactory server using the DefaultNugetFeed parameter. I am trying to use the API key using the parameter : DefaultFeedAPIKey. However, I am running into the following issue:

Cannot process argument transformation on parameter 'DefaultFeedAPIKey'. Cannot convert
value "**<my API key>**" to type "System.Guid". Error: "Guid
should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
At line:1 char:295

    ... tFeedAPIKey AKCp8hzDDZBqPt1TBD3uRVdfTw8NpwR9A5iySWZHdtdykFyrUgfpZDHNC ...
    ~~~~~~~~~~~~~
        CategoryInfo : InvalidData: (:) [Set-BoxstarterDeployOptions], ParameterBindingArgumentTransformationEx
        ception
        FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-BoxstarterDeployOptions

What Is Expected?

The cmdlet should be able to process API keys which are in excess of 32 characters in length.

How Did You Get This To Happen? (Steps to Reproduce)

Execute Set-BoxstarterDeployOptions with an API key that is in excess of 32 characters in length.

pauby commented

Based on the comment for the issue I closed today we may not be able to provide as much support on the Testrunner modules so I have put this Up For Grabs'. PR's welcome.