Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Port clone dsc resource test improvements - #159

Merged
Daniel Scott-Raynsford (PlagueHO) merged 4 commits into
PowerShell:devfrom
mhendric:PortCloneDscResourceTestImprovements
Jun 5, 2019
Merged

Daniel Scott-Raynsford (PlagueHO) merged 4 commits into
PowerShell:devfrom
mhendric:PortCloneDscResourceTestImprovements

Conversation

@mhendric

@mhendric Mike Hendrickson (mhendric) commented Jun 3, 2019

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

  • Ports fixes for the following issues:
    Issue #505
    Issue #590
    Changes to test helper Enter-DscResourceTestEnvironment so that it only
    updates DSCResource.Tests when it is longer than 120 minutes since
    it was last pulled. This is to improve performance of test execution
    and reduce the likelihood of connectivity issues caused by inability to
    pull DSCResource.Tests.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry under the Unreleased section of the change log in the README.md.
    Entry should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md.
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
  • New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is Reviewable

@codecov-io

Codecov (codecov-io) commented Jun 3, 2019

Copy link
Copy Markdown

Codecov Report

Merging #159 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #159   +/-   ##
===================================
  Coverage    83%    83%           
===================================
  Files        19     19           
  Lines      2760   2760           
  Branches      4      4           
===================================
  Hits       2303   2303           
  Misses      453    453           
  Partials      4      4

@mhendric

Copy link
Copy Markdown
Contributor Author

Hey Daniel Scott-Raynsford (@PlagueHO) , would you be able to review this when you get a chance? This is a direct port of your fix in XPSDesiredStateConfiguration. Thanks.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Just one minor tweak and we're good to go. Thanks Mike Hendrickson (@mhendric)

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Mike Hendrickson (@mhendric))


Tests/TestHelpers/CommonTestHelper.psm1, line 420 at r1 (raw file):

}

Can you remove these two blank lines? Only one needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on Daniel Scott-Raynsford (@PlagueHO))


Tests/TestHelpers/CommonTestHelper.psm1, line 420 at r1 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

Can you remove these two blank lines? Only one needed.

Done. Those two blank lines were in xPSDesiredStateConfiguration too, but I agree that it makes sense to remove them.

@mhendric
Mike Hendrickson (mhendric) force-pushed the PortCloneDscResourceTestImprovements branch from da00625 to 612e499 Compare June 4, 2019 14:29
@mhendric
Mike Hendrickson (mhendric) force-pushed the PortCloneDscResourceTestImprovements branch from 612e499 to 364bb98 Compare June 4, 2019 15:10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 3 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


Tests/TestHelpers/CommonTestHelper.psm1, line 420 at r1 (raw file):

Previously, mhendric (Mike Hendrickson) wrote…

Done. Those two blank lines were in xPSDesiredStateConfiguration too, but I agree that it makes sense to remove them.

Probably should have corrected it there too 😁 I think we can ignore that for now 😁

@PlagueHO
Daniel Scott-Raynsford (PlagueHO) merged commit c1edd1b into PowerShell:dev Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs review The pull request needs a code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some Integration Tests Can Fail When Temporarily Unable to Connect to GitHub

3 participants