Skip to content

Update-Format test causes PowerShellGet tests to fail #5154

Closed

Description

The format ps1xml file is not valid and causing some internal state that causes PowerShellGet tests to fail as it can't find a cmdlet that should be available. Needs to be investigated.

Steps to reproduce

        $xmlContent = @"
<Configuration>
    <ViewDefinitions>
        <View>
            <Name>T2</Name>
        </View>
    </ViewDefinitions>
</Configuration>
"@
$xmlContent | Out-File -FilePath ".\test.format.ps1xml" -Encoding ascii
Update-FormatData -Path ".\test.format.ps1xml" "FormatXmlUpdateException,Microsoft.PowerShell.Commands.UpdateFormatDataCommand"
Start-PSPester -Terse

Expected behavior

Tests to pass


Actual behavior

Describing PowerShellGet - Module tests
 [-] Error occurred in Describe block 424ms
   The 'Get-PSRepository' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'.
   At /Users/steve/repos/PowerShell/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1:76 char:13

Environment data

Name                           Value                                                                                                                                                                             
----                           -----                                                                                                                                                                             
PSVersion                      6.0.0-beta.8                                                                                                                                                                      
PSEdition                      Core                                                                                                                                                                              
GitCommitId                    v6.0.0-beta.8-38-g6121d891d98cf4f813ac013ef8faa1bc8e68296d                                                                                                                        
OS                             Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64                                                                    
Platform                       Unix                                                                                                                                                                              
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                           
PSRemotingProtocolVersion      2.3                                                                                                                                                                               
SerializationVersion           1.1.0.1                                                                                                                                                                           
WSManStackVersion              3.0  

Activity

  1. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  2. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  3. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions