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

added children condition support in authz and auth rules #5

Merged
merged 10 commits into from
Oct 10, 2023

Conversation

kuba-mazurkiewicz
Copy link
Collaborator

No description provided.

- model_name: accessType
data_path: [AuthorizationProfile]
type: String
enum_values: [ACCESS_ACCEPT, ACCESS_REJECT]
description: Access type
description: "Allowed Values: `ACCESS_ACCEPT`, `ACCESS_REJECT`"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to document allowed values in the description. If "enum_values" is included, this will be documented accordingly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok got you. I fix that and also i changed description in new trust_sec definitions i added.

@@ -45,6 +45,7 @@ attributes:
type: Bool
description: Whether the user is enabled/disabled
example: true
mandatory: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you set this to "true". Based on my testing this is not required and would be set to true by default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had this field in my data model, but yes you are right, its true by default. I changed it back.

- model_name: identityGroups
data_path: [InternalUser]
type: String
description: CSV of identity group IDs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "CSV"? If it means "comma separated" then maybe change this to:

description: Comma separated list of identity group IDs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how it was documented in ERS SDK documentation, yes it means comma separated values. I changed it as per your proposal

# description: Password expiry date
# example: "2024-12-11"
# exclude_test: true
- model_name: expiryDateEnabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not get this to work. Have you tested the use of these attributes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i tested those attributes and they work

enum_values: [ConditionAndBlock, ConditionAttributes, ConditionOrBlock, ConditionReference]
description: Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
example: ConditionAttributes
minimum_test_value: '"ConditionReference"'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we have excluded the parent element ("children") from testing, we can remove this line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

rest_endpoint: /ers/config/egressmatrixcell
doc_category: TrustSec
id_path: response.id
skip_minimum_test: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does a minimum test not work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

due to issue with PUT method: Failed to configure object (PUT), got error: HTTP Request failed: StatusCode
400, Message: Validation Error - Mandatory fields missing: [Id,], {
"ERSResponse" : {
"operation" : "PUT-update-egressmatrixcell",
"messages" : [ {
"title" : "Validation Error - Mandatory fields missing: [Id,]",
"type" : "ERROR",
"code" : "Application resource validation exception"
} ],

name: TrustSec Security Group ACL
rest_endpoint: /ers/config/sgacl
doc_category: TrustSec
skip_minimum_test: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does a minimum test not work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix that

@danischm danischm merged commit c41805a into CiscoDevNet:main Oct 10, 2023
3 checks passed
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.

2 participants