-
Notifications
You must be signed in to change notification settings - Fork 813
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
[racl] Add generic RACL testplan #26326
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Robert Schilling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left some comments, nothing really important but still need to be taken into account.
Thanks
{ | ||
name: racl_rw | ||
desc: ''' | ||
Precondiiton: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: typo
desc: ''' | ||
Precondiiton: | ||
- Randomize the number of RACL policies and randomize its default policy values. | ||
- Randomoize the policy selection vector of the CSRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "randomize" typo
- error_log_o.racl_role = <role that caused the error> | ||
- error_log_o.ctn_uid = <ctn uid that caused the error> | ||
|
||
Verify that a write did not show any effect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say (if that's what you meant):
"Verify that a write has no effect."
- error_log_o.ctn_uid = <ctn uid that caused the error> | ||
|
||
Verify that a write did not show any effect. | ||
Verify a read returns all 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand what you mean here. Can you elaborate a bit the description?
Nit: and missing "." ponctuation
- Loop through each CSR and perform a read and write request of using a | ||
random RACL role and random CTN UID value. | ||
If the request is allowed: | ||
* No TL-UL error is expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this "*"?
If the request is allowed: | ||
* No TL-UL error is expected | ||
else if the request is denied | ||
Verify the error log matches: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand well, if the request is allowed there are 4 main points:
- Verify the error log matches:
- Verify that a write did not show any effect.
- Verify a read returns all 1
- If ErrorRsp = 1:
If yes, can you remove the line jump line 26, and add dashes before to make it more obvious that it's a list of 4 things.
To be implement generically and being added to all IPs that support RACL.