-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding check in system-user verify flow to verify HAB uid (#8290)
* Adding hab uid check in system-user verify flow Signed-off-by: Arvinth C <[email protected]> * Removing logconfig changes Signed-off-by: Arvinth C <[email protected]> * code coveragr Signed-off-by: Arvinth C <[email protected]> * refactoring for code smell and removing nil pointers Signed-off-by: Arvinth C <[email protected]> * Test coverage Signed-off-by: Arvinth C <[email protected]> * Review comments Signed-off-by: Arvinth C <[email protected]> --------- Signed-off-by: Arvinth C <[email protected]>
- Loading branch information
1 parent
ceb18d4
commit 5eb2df5
Showing
7 changed files
with
310 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
components/automate-cli/pkg/verifyserver/models/systemuser.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
package models | ||
|
||
type SystemUserResponse struct { | ||
Passed bool `json:"passed"` | ||
Checks []*Checks `json:"checks"` | ||
Passed bool `json:"passed"` | ||
Checks []*Checks `json:"checks"` | ||
Id *SystemUserID `json:"id,omitempty"` | ||
} | ||
|
||
type SystemUserID struct { | ||
UserID string `json:"user_id,omitempty"` | ||
GroupID string `json:"group_id,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.