Title: Update-Format test causes PowerShellGet tests to fail · Issue #5154 · PowerShell/PowerShell · GitHub
Open Graph Title: Update-Format test causes PowerShellGet tests to fail · Issue #5154 · PowerShell/PowerShell
X Title: Update-Format test causes PowerShellGet tests to fail · Issue #5154 · PowerShell/PowerShell
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 = @"
Open Graph 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 re...
X 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 t...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5154
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update-Format test causes PowerShellGet tests to fail","articleBody":"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.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n $xmlContent = @\"\r\n\u003cConfiguration\u003e\r\n \u003cViewDefinitions\u003e\r\n \u003cView\u003e\r\n \u003cName\u003eT2\u003c/Name\u003e\r\n \u003c/View\u003e\r\n \u003c/ViewDefinitions\u003e\r\n\u003c/Configuration\u003e\r\n\"@\r\n$xmlContent | Out-File -FilePath \".\\test.format.ps1xml\" -Encoding ascii\r\nUpdate-FormatData -Path \".\\test.format.ps1xml\" \"FormatXmlUpdateException,Microsoft.PowerShell.Commands.UpdateFormatDataCommand\"\r\nStart-PSPester -Terse\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nTests to pass\r\n```none\r\n\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nDescribing PowerShellGet - Module tests\r\n [-] Error occurred in Describe block 424ms\r\n The 'Get-PSRepository' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'.\r\n At /Users/steve/repos/PowerShell/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1:76 char:13\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.0-beta.8 \r\nPSEdition Core \r\nGitCommitId v6.0.0-beta.8-38-g6121d891d98cf4f813ac013ef8faa1bc8e68296d \r\nOS 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 \r\nPlatform Unix \r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \r\nPSRemotingProtocolVersion 2.3 \r\nSerializationVersion 1.1.0.1 \r\nWSManStackVersion 3.0 \r\n```","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-10-18T03:56:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5154/PowerShell/issues/5154"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:04b4431e-e29d-e56b-c10c-4bb259ae349c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB50:320B78:2556981:3558DF3:6A566BD9 |
| html-safe-nonce | 544bdadfef9003ab663d9c71f9eda99763010fcb35bb82fa2ff40e3590850bac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjUwOjMyMEI3ODoyNTU2OTgxOjM1NThERjM6NkE1NjZCRDkiLCJ2aXNpdG9yX2lkIjoiNzE1NzcyNzE4ODU3Nzg0MDA4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d0964634e72231b944945fb59a7f693586574a61152a2170df50195f9fe66c6 |
| hovercard-subject-tag | issue:266352693 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b387814b8687bd62983b2591e68e48e1e9a8ddae2af7ddd9e69a339708991c0/PowerShell/PowerShell/issues/5154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b387814b8687bd62983b2591e68e48e1e9a8ddae2af7ddd9e69a339708991c0/PowerShell/PowerShell/issues/5154 |
| og:image:alt | 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 re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bfcd903bf3318822b10b18a6332fac40d3a21f7d94456dca766ab8fa7328068 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 37f446b78ad53e6f593aa1a4243b87c76a3428ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width