-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> For #25880 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] Added/updated automated tests - [x] Manual QA for all new/changed functionality
- Loading branch information
Showing
14 changed files
with
372 additions
and
25 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
21 changes: 21 additions & 0 deletions
21
cmd/fleetctl/testdata/gitops/team_vpp_invalid_app_labels_both.yml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "${TEST_TEAM_NAME}" | ||
team_settings: | ||
secrets: | ||
- secret: "ABC" | ||
features: | ||
enable_host_users: true | ||
enable_software_inventory: true | ||
host_expiry_settings: | ||
host_expiry_enabled: true | ||
host_expiry_window: 30 | ||
agent_options: | ||
controls: | ||
policies: | ||
queries: | ||
software: | ||
app_store_apps: | ||
- app_store_id: "1" | ||
labels_exclude_any: | ||
- "label 1" | ||
labels_include_any: | ||
- "label 2" |
20 changes: 20 additions & 0 deletions
20
cmd/fleetctl/testdata/gitops/team_vpp_invalid_app_labels_exclude_any.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "${TEST_TEAM_NAME}" | ||
team_settings: | ||
secrets: | ||
- secret: "ABC" | ||
features: | ||
enable_host_users: true | ||
enable_software_inventory: true | ||
host_expiry_settings: | ||
host_expiry_enabled: true | ||
host_expiry_window: 30 | ||
agent_options: | ||
controls: | ||
policies: | ||
queries: | ||
software: | ||
app_store_apps: | ||
- app_store_id: "1" | ||
labels_exclude_any: | ||
- "label non-existent" | ||
- "label 2" |
20 changes: 20 additions & 0 deletions
20
cmd/fleetctl/testdata/gitops/team_vpp_invalid_app_labels_include_any.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "${TEST_TEAM_NAME}" | ||
team_settings: | ||
secrets: | ||
- secret: "ABC" | ||
features: | ||
enable_host_users: true | ||
enable_software_inventory: true | ||
host_expiry_settings: | ||
host_expiry_enabled: true | ||
host_expiry_window: 30 | ||
agent_options: | ||
controls: | ||
policies: | ||
queries: | ||
software: | ||
app_store_apps: | ||
- app_store_id: "1" | ||
labels_include_any: | ||
- "label non-existent" | ||
- "label 2" |
20 changes: 20 additions & 0 deletions
20
cmd/fleetctl/testdata/gitops/team_vpp_valid_app_labels_exclude_any.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "${TEST_TEAM_NAME}" | ||
team_settings: | ||
secrets: | ||
- secret: "ABC" | ||
features: | ||
enable_host_users: true | ||
enable_software_inventory: true | ||
host_expiry_settings: | ||
host_expiry_enabled: true | ||
host_expiry_window: 30 | ||
agent_options: | ||
controls: | ||
policies: | ||
queries: | ||
software: | ||
app_store_apps: | ||
- app_store_id: "1" | ||
labels_exclude_any: | ||
- "label 1" | ||
- "label 2" |
20 changes: 20 additions & 0 deletions
20
cmd/fleetctl/testdata/gitops/team_vpp_valid_app_labels_include_any.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "${TEST_TEAM_NAME}" | ||
team_settings: | ||
secrets: | ||
- secret: "ABC" | ||
features: | ||
enable_host_users: true | ||
enable_software_inventory: true | ||
host_expiry_settings: | ||
host_expiry_enabled: true | ||
host_expiry_window: 30 | ||
agent_options: | ||
controls: | ||
policies: | ||
queries: | ||
software: | ||
app_store_apps: | ||
- app_store_id: "1" | ||
labels_include_any: | ||
- "label 1" | ||
- "label 2" |
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
Oops, something went wrong.