Skip to content
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 -AcceptLicense to Save-PSResource #1718

Merged
merged 3 commits into from
Oct 21, 2024
Merged

Conversation

o-l-a-v
Copy link
Contributor

@o-l-a-v o-l-a-v commented Oct 6, 2024

PR Summary

Fixes #1450, but:

  • Tests likely requires more work as Save-PSResource accepted license by default previously:
  • Documentation for Save-PSResource must be updated, unless that happens automagically?

PR Context

To fix said issue.

PR Checklist

@alerickson
Copy link
Member

Hi @o-l-a-v thanks for the PR, more than happy to update the other tests if you can give me permission to make changes to your branch. Otherwise could you add the -AcceptLicense parameter to the previous Save-PSResource tests and have the new test verify that it does not save if -AcceptLicense is not passed in?

@o-l-a-v
Copy link
Contributor Author

o-l-a-v commented Oct 9, 2024

@alerickson This means you can push to this branch too, right? I ask because I don't know.

image

If you need written consent: I consent. 🙂


Otherwise could you add the -AcceptLicense parameter to the previous Save-PSResource tests and have the new test verify that it does not save if -AcceptLicense is not passed in?

Only test_module_with_license should require -AcceptLicense, right? So adding -AcceptLicense to all other tests should not be neccessary?

@alerickson
Copy link
Member

/azp PowerShell.PSResourceGet

Copy link

Command 'PowerShell.PSResourceGet' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@alerickson
Copy link
Member

/azp run PowerShell.PSResourceGet

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@alerickson
Copy link
Member

This PR looks good, just waiting on some CI issues to be resolved and then will merge in!

@alerickson alerickson merged commit 720074a into PowerShell:master Oct 21, 2024
7 of 12 checks passed
@alerickson alerickson changed the title WIP: Add -AcceptLicense to Save-PSResource Add -AcceptLicense to Save-PSResource Oct 22, 2024
@o-l-a-v o-l-a-v deleted the fix-1450 branch October 23, 2024 12:18
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.

Save-PSResource doesn't have -AcceptLicense
2 participants