-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add Missing/Legacy Pester tests #4
Labels
Comments
ddemeyer
added a commit
that referenced
this issue
Apr 5, 2017
…ns 6 folders and IgnorePolicyErrors test will be marked as skipped on non-machine access
ddemeyer
added a commit
that referenced
this issue
Nov 3, 2017
…according to 13.0.0 FieldSetup API call. Added couple of examples for Get-Help
ddemeyer
added a commit
that referenced
this issue
Jan 27, 2019
…n with ArgumentException, add readonly list,
ddemeyer
added a commit
that referenced
this issue
Jan 27, 2019
…n with ArgumentException, add readonly list, added globalsuppressions.cs, wrapped ShouldProcess, refactored using statements
ddemeyer
added a commit
that referenced
this issue
Jan 28, 2019
ddemeyer
added a commit
that referenced
this issue
Mar 22, 2019
* Extended Get-IshTypeFieldDefinition with ISHBackgroundTask type * #45 Basic skeleton of Get-IshBackgroundTask is there, all code requires clean up. Up next, the IshBackgroundTask xml parsing and console formatting. * #45 Basic formatting, basic test, and xml object parsing is there. Next check and test all cmdlet parameters * #45 Get-IshMetadataField accepts IshBackgroundTask * #45 Get-IshBackgroundTask is there with doubtfully useful pipelining with test. * #45 Corrected test and added Get-Help * #45 More sturdy test * #45 Introduced NameHelper where I chose underscore as separator. Currently Wrap-function is in the ISHType cmdlet like ISHBackgroundTask (to push down to TrisoftCmdlet all CardField type objects need a generic root class) * #45 Review by hvermeiren on IsBasic and IsDescriptive for ISHBackgroundTask. Removed object.EventType. Implemented 13.0.2+ check. Wide format table layout. * #45 IshSession is no longer mandatory. New-IshSession will save in SessionStore every time. Next optional -RequestedMetadata transformation like Descriptive/Basic/System/All * #45 Parameter value autocompletion on field Name and LovId now respects SessionState * #45 Optional -RequestedMetadata that now initializes to IShSession.DefaultRequestedMetadata (defaults to Basic, old behavior Descriptive, don't care about performance use All). Tweaked some tests. Up next Get-IshEvents over IshTypeFieldSetup or IshSession not mandatory everywhere... * #46 Optional IshSession in cmdlets for Application, Baseline and Field... slower test though because of superfluous New-IshSession * #46 Optional IshSession in cmdlets for Application, Baseline, Field, DocumentObj...More Get-Help examples... but slower tests though, because of superfluous New-IshSession * #46 Optional IshSession in cmdlets for Application, BackgroundTask, Baseline, DocumentObj, EDT, Event, Feature, Field, Folder, ListOfValues, OutputFormat,...More Get-Help examples... but slower tests though, because of superfluous New-IshSession * #46 Optional IshSession in cmdlets for Application, BackgroundTask, Baseline, DocumentObj, EDT, Event, Feature, Field, Folder, ListOfValues, OutputFormat, PublicationOutput, Settings, User, UserGroup, UserRole...More Get-Help examples... but slower tests though, because of superfluous New-IshSession * #48 Implemented WrapAsPSObjectAndAddNoteProperties-Switch-block for DocumentObj... next is Format.ps1xml (see Find-IshDocumentObj example)... then all other classes * #48 Removed WrapAsPSObjectAndAddNoteProperties-Switch-block for BackgroundTask/DocumentObj... implemented IshBaseObject allowing a one-time implementation of WriteObject in TrisoftCmdlt. Next is Format.ps1xml (see Find-IshDocumentObj example)... then all other classes * #48 TrisoftCmdlet::WriteObject using IshBaseObject implemented for BackgroundTask, Baseline, DocumentObj. Next is Format.ps1xml (see Find-IshDocumentObj example)... then all other classes * #48 TrisoftCmdlet::WriteObject using IshBaseObject implemented for BackgroundTask, Baseline, DocumentObj, EDT, Folder, OutputFormat, PublicationOutput, User, UserGroup, UserRole ...Next is more derived IshObject types to allow Format.ps1xml specialized rendering (see Find-IshDocumentObj example)... and Get-IshEvent * #46 Optional IshSession in Get-IshTypeFieldDefinition * #48 TrisoftCmdlet::WriteObject strips hyphens from a field name like DOC-LANGUAGE to avoid clumsy code like $ishObject.'doc-language' ...Next is more derived IshObject types to allow Format.ps1xml specialized rendering (see Find-IshDocumentObj example)... and Get-IshEvent * #46 Optional IshSession makes single Find-IshDocumentObj and Find-IshPublicationOutput work without parameters potentially returning full database, putting in explicit last-day-MetadataFilter * #46 Optional IshSession makes single Find-IshDocumentObj and Find-IshPublicationOutput work without parameters potentially returning full database, ROLLING BACK the explicit last-day-MetadataFilter that was added in this branch. Created separate issue #49 for tracking * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshDocumentObj cmdlets * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshDocumentObj cmdlets, tuned to use cmdlets ISHType for code consistency * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshPublicationOutput cmdlets * #46 Optional IshSession in Get-IshTypeFieldDefinition, making sure that TriDKXmlSetupFilePath overload still works * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshBaseline cmdlets and IshBaselineItem prints sortable date * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshEDT cmdlets * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshFolder cmdlets * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshOutputFormat cmdlets * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshOutputFormat cmdlets, fixed OutputType, added samples and allowed empty value * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshUser cmdlets and cleanup of double IshFolder ps1xml entry * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshUserGroup cmdlets * #48 Factory wrapping base type IshObject allowing .Format.ps1xml formatting now implemented for *-IshUserRole cmdlets * #48 Find-IshDocumentObj over DocumentObj25.Find still returns ISHReusedObj, so altered default to avoid this. Quick performance test. * #4 Reduce warning count in solution by replacing ArgumentNullException with ArgumentException, add readonly list, * #4 Reduce warning count in solution by replacing ArgumentNullException with ArgumentException, add readonly list, added globalsuppressions.cs, wrapped ShouldProcess, refactored using statements * #4 Adding AddIshPublicationOutput.Tests.ps1 * #47 Add GetIshEvent.Tests.ps1 testing the current old-style cmdlet, needs more work, broken at the moment * #47 Add GetIshEvent.Tests.ps1 testing the cmdlet, ready for the code changes. Extended Get-IshTypeFieldDefinition with ISHEvent type. * #47 Finally broke and rewrote Get-IshEvent to use PSNoteProperty with standardized property names. Matching GetIshEvent.Tests.ps1. And proper Format.ps1xml As part of the v0.7 milestone, this request - Closes #44 - Closes #45 - Closes #46 - Closes #47 - Closes #48 - Closes #50
HildeVermeiren
added a commit
that referenced
this issue
Dec 4, 2019
#4 [819-Fix-test-before-release] Fix temp folder path, fix ishsettings count
ddemeyer
added a commit
that referenced
this issue
Nov 30, 2020
…ver Label, making the tests more environment agnostic
ddemeyer
pushed a commit
that referenced
this issue
Sep 8, 2021
…cks, to error-prone to maintain per InfoShare product release
ddemeyer
added a commit
that referenced
this issue
Apr 19, 2023
…tiple draft-to-released status transitions availability (ME...APP08)
ddemeyer
pushed a commit
that referenced
this issue
May 13, 2023
…tiple draft-to-released status transitions availability (ME...APP08)
ddemeyer
added a commit
that referenced
this issue
Sep 21, 2023
…apWithWsTrust (#164) The one that bumps to v8.0 and introducing Modern Authentication to ISHRemote using OWCF. Still some polishing on timeouts and refresh to go... * #152 Moved InfoShareWcfConnectionParameter deeper in Connection folder...compiles * #152 Help of New-IshSession was still using -WsTrustIssuerUrl in examples * #152 Merged #115 branch in, compiles except for 3 errors on enum/IshFolder conversion but could be because of old OpenAPI spec json * #152 Renamed generic OpenApi to OpenApiISH30 to allow room for OpenApiAM10, restored all funky conversions from Enumerations,IShFields,IShFolder and IShFolders... it compiles... next Refresh spec json, rename Protocols and get folder to work * #152 Renamed protocol enumerations. * #152 Bumped OpenApiISH30.json to 20221229 edition which changed function definitions compared to 6 months ago... it compiles... next IshConnectionConfiguration * #152 New-IshSession got parameter -Protocol which defaults to Autodetect... it compiles... next CreateOpenApiWithOpenIdConnectConnection * #152 OpenApiISH30 NSwag version bump... it compiles... next CreateOpenApiWithOpenIdConnectConnection * #152 Extended IshConnectionConfiguration (probably move under \Connection\)... it compiles... next CreateOpenApiWithOpenIdConnectConnection perhaps align InfoShareWcfSoapConnection to IshConnectionConfiguration usage * #152 Moved IshConnectionConfiguration... it compiles... next CreateOpenApiWithOpenIdConnectConnection perhaps align InfoShareWcfSoapConnection to IshConnectionConfiguration usage * #152 GetNewBearerToken fails... it compiles... Extend with Client/Secret cmdlet parameters so they are not empty anymore perhaps align InfoShareWcfSoapConnection to IshConnectionConfiguration usage * #152 Importantant cleanup, perhaps more v8.0 then v7.1 in InfoShareWcfSoapConnection to align with IshConnectionConfiguration removing Internal/SDL realm, Lazy<> usage and ExplicitIssuer. Restored F5 debugging... it compiles... Extend with Client/Secret cmdlet parameters so they are not empty anymore * #152 New-IshSession and Test-IshSession received -ClientId and -ClientSecret parameters... it compiles... Next is either interactive mode or deep dive into folder cmdlets based on OpenApi * #152 Existing pester tests are all working... Next is either interactive mode or deep dive into folder cmdlets based on OpenApi * #152 If -ClientId/-ClientSecret are passed CredentialFlow works. System Browser crashes... Next is still interactive mode then deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient fails on PS51/NET48 but works on PS73/NET70. Enabled PS7 debugging using PS7 MSI-based installer... Hardcoded to client to Tridion_Docs_Content_Importer... System Browser returns by Query and no longer by Post requestbody, change that... When fixed on NET6, how to fix on NET48 regarding assembly references... Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient fails on PS51/NET48 but works on PS73/NET70... Hardcoded to client to Tridion_Docs_Content_Importer... NET48 issue has to do with either System.Text.Json or HTTPS/SSL, but seperate test app works?!... Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... Did force loading over AssemblyResolve in NET48 for System.Text.Json and System.Runtime.CompilerServices.Unsafe!...Next extend and document InfoShareOpenApiConnectionParameters (redirectUri, Open up hardcoded client to Tridion_Docs_Content_Importer , clean up code, check debug/verbose logging...Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... AssemblyResolve for NET48 only over class AppDomainAssemblyResolveHelper, all 4 debugs work!!... Next extend and document InfoShareOpenApiConnectionParameters (redirectUri, Open up hardcoded client to Tridion_Docs_Content_Importer , clean up code, check debug/verbose logging...Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... ValidateTokens plus some extended InfoShareOpenApiConnectionParameters (redirectUri, Open up hardcoded client to Tridion_Docs_Content_Importer , clean up code, check debug/verbose logging...Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... RedirectUri, clean up code, logging statements reviewed...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... RedirectUri, clean up code, logging statements reviewed inc keep listener alive...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... Access Management has bootstrapped ISHRemote clientId...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #4 Improve /_TestEnvironment/TestPrerequisite.Tests.ps1 to handle multiple draft-to-released status transitions availability (ME...APP08) * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... Refactoring to introduce WcfSoapWithOpenIdConnect a lot of changes needing review...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 Using OidcClient it works on PS51/NET48 and PS73/NET70!!... Refactoring to introduce WcfSoapWithOpenIdConnect a lot of changes needing review...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... Refactoring Connections space regarding naming and comments...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... Refactoring Connections space regarding naming and comments...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... Refactoring Connections space regarding naming and comments continued...Next some Test/New-IshSession Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... New-IshSession with tests is working! Next Test-IshSession with Pester tests....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... Test-IshSession with Pester tests is done... Get ready to release like PR, release notes, automated build....Later deep dive into folder cmdlets based on OpenApi * #152 WcfSoapWithOpenIdConnect over OidcClient works on PS51/NET48 and PS73/NET70!!... Running test, reduce superfluous session creation, release notes for v8.0... Get ready to release like PR, automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 got NuGet-Platform update, matching Assembly Redirects and working tests... Next PesterContext-checks plus release notes for v8.0... Get ready to release like PR, automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 PesterContext-checks fixed by moving Ifs in It blocks plus release notes for v8.0... Get ready to release like PR, automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 001 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 002 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 003 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 004 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 005 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 006 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 007 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 008 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 009 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 010 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 011 automated build....Later deep dive into folder cmdlets based on OpenApi * #152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub Actions issues 012 automated build....Later deep dive into folder cmdlets based on OpenApi --------- Co-authored-by: ddemeyer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All new code should receive Pester tests, this one is about correcting legacy/missing tests.
As a reminder...
It
,BeforeAll
,BeforeEach
,AfterAll
orAfterEach
. Put no test-code directly intoDescribe
,Context
or on the top of your file, without wrapping it in one of these blocks. See also https://pester.dev/docs/usage/discovery-and-run and https://pester.dev/docs/usage/test-file-structure[Version]$ishSession.ServerVersion).Major -ge 15
should be inIt
and not in Describe or Context as they run too early during PesterDiscovery
and not duringRun
phaseThe text was updated successfully, but these errors were encountered: