Commit 391fa8a
Update license command headers for new character requirements (#159)
## Change Description
<!-- Use this section to describe or list, at a high level, the changes
contained in the PR. Can be in a concise format as you would see on a
changelog. -->
* Update license command set headers for newly implemented character
requirements for license server
* Fixes Error :`Failed to execute pingcli: failed to run license
request: license request failed with status 400: {"error":"Invalid
format for devops-app. Expected: App identifier: alphanumeric, dots,
underscores, and hyphens allowed. Example:
pingauthorize-alpine_3.15.4-al11-8.3.0.5-220504-db8c or
10.3.0.1-alpine_3.22.2-al17. Format is not strictly enforced; any
combination of allowed characters is accepted."}`
* Fixes Error: `ERROR: Failed to execute pingcli: failed to run license
request: license request failed with status 400: {"error":"Header too
long: devops-purpose (max 13 characters)"}`
## Change Characteristics
- [ ] **This PR contains beta functionality**
- [ ] **This PR requires introduction of breaking changes**
## Checklist
<!-- Please check off completed items. -->
_All full (or complete) PRs that need review prior to merge should have
the following box checked._
_If contributing a partial or incomplete change (expecting the
development team to complete the remaining work) please leave the box
unchecked_
- [X] **Check to confirm**: I have performed a review of my PR against
the [PR checklist](../contributing/pr-checklist.md) and confirm that:
- Changes have proper unit and acceptance test coverage (including
regression tests)
- Impacted command, parameter and flag descriptions have been reviewed
and updated
- Impacted command examples have been reviewed and updated
- Impacted documentation files have been reviewed and updated
- Does not introduce breaking changes to commands, parameters or flags
(unless required to do so)
- I am aware that changes to generated code may not be merged
## Required SDK Upgrades
<!-- Use this section to describe or list any dependencies, and the
required version, that need upgrading in the provider prior to merge.
-->
<!--
N/a
Example:
- `https://github.com/pingidentity/pingone-go-client` `v0.5.0`
-->
## Testing
This PR has been tested with:
- [ ] Unit tests _(please paste commands and results below)_
- [ ] Acceptance tests _(please paste commands and results below)_
- [ ] End-to-end tests _(please paste the link to the actions workflow
runs)_
- [ ] Not applicable _(no evidences needed)_
### Shell Command(s)
<!-- Use the following shell block to paste the command used when
testing. -->
```shell
pingcli license -p <product> -v <version> -k <user_key> -u <user_id>
```
### Testing Results
<!-- Use the following shell block to paste the results from the testing
command(s) used above -->
<details>
<summary>Expand Results</summary>
```shell
ID=<id>
Product=<product>
Version=<version>
EnforcementType=<enforcement type>
Tier=<tier>
IssueDate=<issue date>
ExpirationDate=<expiration date>
GracePeriod=<grace period>
DeploymentMethod=<deployment method>
Organization=<organization>
SignCode=<sign code>
Signature=<signature>
```
</details>
### End-to-end Tests Workflow Links
<!-- Use the following section to list the URLs to the end-to-end test
action workflow runs -->
- N/a
---------
Co-authored-by: Henry Recker <henryrecker@pingidentity.com>1 parent f8e1ec2 commit 391fa8a
File tree
2 files changed
+5
-2
lines changed- .changelog
- internal/commands/license
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments