forked from jpogran/PuppetDscBuilder
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Autogenerated Module Readme does not include the PowerShell or Puppet Module Names #153
Closed
8 tasks done
Labels
bug
Something isn't working
Comments
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 2, 2021
…and version to `Update-PuppetModuleReadme`
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 2, 2021
…and version to `Update-PuppetModuleReadme`
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 2, 2021
…and version to `Update-PuppetModuleReadme`
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 2, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 2, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
In regards to the setting of |
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme. This commit also updates tests to ensure the values are passed. Resolves puppetlabs#153
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
This commit corrects a bug where the auto-generated readme was missing the PowerShell and Puppet module names from various locations in the output markdown. Those values were not being passed by New-PuppetDscModule to Update-PuppetModuleReadme.
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
…-PuppetModuleReadme` Makes all `Update-PuppetModuleReadme` parameters except `PuppetModuleName` mandatory and do not accept null or empty values. PuppetModuleName` is excluded from this change as it is handled by a separate set of logic that uses the `PowerShellModuleName` in its place should it not be set or be set as an empty string.
david22swan
added a commit
to david22swan/Puppet.Dsc
that referenced
this issue
Jun 3, 2021
…mecontent` Makes the `PowerShellModuleName` and `PuppetModuleName` parameters in `Get-Readmecontent` mandatory and rejects null or empty values for any parameters
michaeltlombardi
added a commit
that referenced
this issue
Jun 4, 2021
(GH-153) Ensure generated readme contains module name info
michaeltlombardi
removed this from the
002: End to End Testing & 1.0.0 Release milestone
Jun 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
The autogenerated module readmes should include:
This is because
New-PuppetDscModule
callsUpdate-PuppetModuleReadme
without passing either the$PowerShellModuleName
or$PuppetModuleName
parameters:Puppet.Dsc/src/functions/New-PuppetDscModule.ps1
Line 139 in 99a9e99
Those values need to be passed to
Update-PuppetModuleReadme
as that function uses them when callingGet-ReadmeContent
:Puppet.Dsc/src/internal/functions/Update-PuppetModuleReadme.ps1
Lines 47 to 55 in 99a9e99
Where they are then used several times:
Puppet.Dsc/src/internal/functions/Get-ReadmeContent.ps1
Line 59 in 99a9e99
Puppet.Dsc/src/internal/functions/Get-ReadmeContent.ps1
Line 70 in 99a9e99
Puppet.Dsc/src/internal/functions/Get-ReadmeContent.ps1
Line 71 in 99a9e99
Acceptance Criteria
Update-PuppetModuleReadme
inNew-PuppetDscModule
includes the missing parametersUpdate-PuppetModuleReadme
are marked as mandatory and validation prevents passing null or empty values[string]
to[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()][String]
Update-PuppetModuleReadme
is passed null and empty string values$PowerShellModuleName
and$PuppetModuleName
parameters inGet-ReadmeContent
are marked as mandatory and validation prevents passing null or empty values for any parameter[string]
to[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()][String]
Get-ReadmeContent
is passed null and empty string values for$PowerShellModuleName
and$PuppetModuleName
Fixed
Entries:Update-PuppetModuleReadme
Get-ReadmeContent
The text was updated successfully, but these errors were encountered: