Skip to content

Conversation

tommysor
Copy link
Contributor

@tommysor tommysor commented Nov 9, 2022

Pull Request (PR) description

Make Set-TargetResource switch between WebApplication '' and '/' as required by New-WebVirtualDirectory and Remove-WebVirtualDirectory respectively.

This Pull Request (PR) fixes the following issues

Fix #366

Task list

  • Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
    Entry should say what was changed and how that affects users (if applicable), and
    reference the issue being resolved (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 Community Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
  • New/changed code adheres to DSC Community Style Guidelines.

This change is Reviewable

Make `Set-TargetResource` switch between `WebApplication` '' and '/' as required by `New-WebVirtualDirectory` and `Remove-WebVirtualDirectory` respectively.

Fix dsccommunity#366
@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Merging #618 (d43226f) into main (4be5947) will increase coverage by 0%.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##           main   #618   +/-   ##
===================================
  Coverage    88%    88%           
===================================
  Files        15     15           
  Lines      1940   1944    +4     
===================================
+ Hits       1710   1714    +4     
  Misses      230    230           
Impacted Files Coverage Δ
...C_WebVirtualDirectory/DSC_WebVirtualDirectory.psm1 90% <100%> (+<1%) ⬆️

@johlju johlju added the needs review The pull request needs a code review. label Nov 12, 2022
@johlju johlju changed the title WebVirtualDirectory with WebApplication blank or slash WebVirtualDirectory: Using WebApplication with blank or slash Nov 12, 2022
Copy link
Member

@johlju johlju left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tommysor)

@johlju johlju merged commit fe3156c into dsccommunity:main Nov 12, 2022
@johlju johlju removed the needs review The pull request needs a code review. label Nov 12, 2022
@johlju
Copy link
Member

johlju commented Nov 12, 2022

Thanks for this change.

@tommysor tommysor deleted the CreateVirtualDirectory_DefaultWebSite branch November 12, 2022 16:04
Clay10J pushed a commit to Clay10J/WebAdministrationDsc that referenced this pull request Dec 5, 2023
)

- WebVirtualDirectory
  [Issue dsccommunity#366](dsccommunity#366)
  In WebVirtualDirectory WebApplication '' and '/' can now be used interchangeably.
  - Fixed Add WebVirtualDirectory when WebApplication = '/'.
  - Fixed Remove WebVirtualDirectory when WebApplication = ''.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xWebVirtualDirectory: Must specify '/' for WebApplication when virtual directory is under the website
2 participants