Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win_psrepository tests failing with Invalid Web Uri Requirements #58572

Closed
jborean93 opened this issue Jul 1, 2019 · 3 comments
Closed

win_psrepository tests failing with Invalid Web Uri Requirements #58572

jborean93 opened this issue Jul 1, 2019 · 3 comments
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community

Comments

@jborean93
Copy link
Contributor

SUMMARY

The win_psrepository tests are failing in devel https://app.shippable.com/github/ansible/ansible/runs/130182/22/tests. These should be fixed.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

win_psrepository

ANSIBLE VERSION
devel
CONFIGURATION

N/A

OS / ENVIRONMENT

Windows

STEPS TO REPRODUCE
ansible-test window-integration win_psrepository
EXPECTED RESULTS

Tests pass

ACTUAL RESULTS

https://app.shippable.com/github/ansible/ansible/runs/130182/22/tests

The specified Uri 'https://www.myget.org/F/powershellgetdemo/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
At line:36 char:13
+             Register-PSRepository -Name $name -SourceLocation $source ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (https://www.myg...lgetdemo/api/v2:String) [Register-PSRepository], ArgumentException
    + FullyQualifiedErrorId : InvalidWebUri,Register-PSRepository

ScriptStackTrace:
at ThrowError, C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PSModule.psm1: line 16417
at Resolve-Location, C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PSModule.psm1: line 16343
at Register-PSRepository<Process>, C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PSModule.psm1: line 4571
at <ScriptBlock>, <No file>: line 36

System.ArgumentException: The specified Uri 'https://www.myget.org/F/powershellgetdemo/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
@jborean93
Copy link
Contributor Author

jborean93 commented Jul 1, 2019

This could be an issue with myget.org not being online for this time, as per https://github.com/PowerShell/PowerShellGet/blob/ea907ba9af9ccc6ce25703fcf6a7b0ee4b18d665/src/PowerShellGet/private/functions/Resolve-Location.ps1#L71, but this should be investigated and have the tests changed so they don't rely on an external repo to work.

@ansibot
Copy link
Contributor

ansibot commented Jul 1, 2019

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community labels Jul 1, 2019
@jborean93
Copy link
Contributor Author

Was an issue with the above so closing this issue as they have been stable so far.

@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Aug 26, 2019
@ansible ansible locked and limited conversation to collaborators Sep 23, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community
Projects
None yet
Development

No branches or pull requests

3 participants