-
Notifications
You must be signed in to change notification settings - Fork 4
15.5 Linter
-
P-AQ-RM-UI-1: Verify Ruleset Management tab is hidden when linter is disabled
- Prerequisites: The API Linter feature is globally disabled in the system configuration.
- Steps: Navigate to the API Quality section.
- Expected Result: The Ruleset Management tab is not visible.
-
P-AQ-RM-UI-2: Verify initial state for admin
- Prerequisites: User is logged in as a system administrator; the API Linter feature is enabled.
- Steps: Navigate to the Ruleset Management tab.
- Expected Result: The main header, API type selector (defaulting to OAS 3.0), enabled Add Ruleset button, and the ruleset table with correct columns are all visible.
-
P-AQ-RM-CREATE-1: Open, verify title, and close the Create Ruleset dialog
- Prerequisites: User is on the Ruleset Management tab.
- Steps: Click Add Ruleset, verify the dialog title, then click Cancel.
- Expected Result: The dialog opens with the correct title (e.g., Create Ruleset for OAS 3.0) and then closes.
-
P-AQ-RM-CREATE-2: Create a new inactive ruleset
- Prerequisites: A valid ruleset file is available; the name is unique.
- Steps: Open the dialog, fill in a unique name, upload the file, and click Create.
- Expected Result: A success notification appears, and the new Inactive ruleset is in the table.
-
P-AQ-RM-CREATE-3: Attempt to create a ruleset with a duplicate name
-
Prerequisites: A ruleset with the name
EXISTING_RULESETalready exists. -
Steps: Attempt to create another ruleset with the name
EXISTING_RULESET. - Expected Result: An error message appears in the dialog indicating the name is taken.
-
Prerequisites: A ruleset with the name
-
P-AQ-RM-CREATE-4: Attempt to create a ruleset without a name
- Prerequisites: User is in the Create Ruleset dialog.
- Steps: Upload a file but leave the name field blank.
- Expected Result: The Create button remains disabled.
-
P-AQ-RM-CREATE-5: Attempt to create a ruleset without a file
- Prerequisites: User is in the Create Ruleset dialog.
- Steps: Fill in a name but do not upload a file.
- Expected Result: The Create button remains disabled.
-
P-AQ-RM-CREATE-6: Attempt to create a ruleset with an invalid file extension
-
Prerequisites: A file with a non-YAML extension (e.g.,
test.txt) is available. -
Steps:
- Open the dialog.
- Fill in a unique name.
- Attempt to upload the
test.txtfile. - Click Create.
- Expected Result: An error message is displayed within the dialog, indicating the file type is invalid. The dialog remains open.
-
Prerequisites: A file with a non-YAML extension (e.g.,
-
P-AQ-RM-ACTIVATE-1: Activate a new ruleset and verify deactivation of previous active
-
Prerequisites:
- One active ruleset
ACTIVE_RULESETexists. - One inactive ruleset
NEVER_ACTIVATED_RULESETwith an empty activation history exists.
- One active ruleset
-
Steps:
- Click the Activate button for
NEVER_ACTIVATED_RULESET. - Confirm the action in the dialog.
- Click the Activate button for
-
Expected Result:
- The status of
NEVER_ACTIVATED_RULESETchanges to Active. - Its activation history is updated.
- The status of the previously active
ACTIVE_RULESETchanges to Inactive.
- The status of
-
Prerequisites:
-
P-AQ-RM-ACTIVATE-2: Verify Activate button is disabled for an already active ruleset
- Prerequisites: An active ruleset exists.
- Steps: Hover over the active ruleset's row.
- Expected Result: The Activate button is disabled.
-
P-AQ-RM-DEL-1: Verify deletion is disabled for an active ruleset
- Prerequisites: An active ruleset exists.
-
Steps:
- Hover over the active ruleset's row.
- Hover over the disabled Delete button.
- Expected Result: The tooltip reads Cannot delete active ruleset.
-
P-AQ-RM-DEL-2: Verify deletion is disabled for a previously activated ruleset
- Prerequisites: A ruleset that was once active but is now inactive exists.
-
Steps:
- Hover over the relevant inactive ruleset's row.
- Hover over the disabled Delete button.
- Expected Result: The tooltip reads The ruleset cannot be deleted due to existing versions....
-
P-AQ-RM-DEL-3: Delete a never-activated inactive ruleset
- Prerequisites: An inactive ruleset that has never been active exists.
- Steps: Click the Delete button for this ruleset and confirm.
- Expected Result: A success notification appears, and the ruleset is removed from the table.
-
P-AQ-RM-OTHER-1: Download a ruleset file
- Prerequisites: At least one ruleset exists.
- Steps: Click the Download action for a ruleset.
- Expected Result: The browser initiates a download of the correct ruleset file.
-
P-AQ-RM-OTHER-2: Copy a ruleset link and verify URL format
- Prerequisites: At least one ruleset exists.
- Steps: Click the Copy Link action and inspect the clipboard content.
- Expected Result: The clipboard contains a valid, direct URL to view the ruleset file.
-
P-AQ-RM-FILTER-1: Filter rulesets by API type
-
Prerequisites: Rulesets exist for both
OAS 3.0andOAS 3.1. - Steps: Switch the API type selector from OAS 3.0 to OAS 3.1.
-
Expected Result: The table updates to show only the rulesets for
OAS 3.1.
-
Prerequisites: Rulesets exist for both
-
P-AQ-RM-FILTER-2: Verify activation history tooltip for a ruleset with multiple activations
- Prerequisites: A ruleset has been activated, deactivated, and then activated again.
- Steps: Hover over the info icon in the Activation History column for that ruleset.
- Expected Result: A tooltip appears, showing at least two activation records with the correct date range.
Processes description
Technical articles
Design Items
- Navigation to APIHUB (log in / log out)
- Create Workspace
- Create Group
- Create Package
- Favorite packages, dashboards, groups, workspaces
- Shared Packages
- Activity History in Main Page
- Personal private workspace
- Version summary
- Revision History
- Package Activity History
- Manage Manual Operations Group
- Export Operations Group (reduced source specifications)
- Export Operations Group (combined specification)
- Export List of Operations in Excel
- Search and Filter Operations
- List of Operations
- List of Operations Groups
- Manage REST Path Prefix Group
- Activity History
- List of Deprecated Operations
- Export List of Changes in Excel
- Human‐readable description for deprecated items for OpenAPI 3.0
- List of Documents
- OpenAPI Document Overview
- Copy Package Version
- Export Package Version
- Export Document from Package Version
- Export List of Deprecated Operations in Excel
- API Quality Validation Result
- Export of discrepancy analysis results for arbitrary package versions in Excel
- AI Recommendations Tab
- General Settings
- Package versions list
- Access Tokens Management
- Delete Package
- Default Release Version
- Define Release Version Pattern