<commit_before>@RALLY_US5865
Feature: As a federated user via an admin application, I should NOT be able to perform CRUD operations on certain admin resources

  Scenario Outline: API admin GET endpoints are inaccessible for federated users
    Given I am logged in using "rrogersAppAuth" "rrogers1234" to realm "IL"
    And format "application/json"
    When I navigate to <Action> "/<Resource URI>"
    Then I should receive a return code of <Expected Status>

  Examples:
    | Resource URI     | Action | Expected Status |
    | customRoles      | POST   | 403             |
    | customRoles      | GET    | 403             |
    | adminDelegation  | GET    | 403             |
    | adminDelegation  | POST   | 403             |
    | provision        | POST   | 403             |
    | tenants          | GET    | 403             |
    | tenants          | POST   | 403             |
    | users            | GET    | 403             |
    | users            | POST   | 403             |
    | realm            | GET    | 403             |
    | realm            | POST   | 403             |

   Scenario Outline: API admin GET "application" and "applicationAuthorization" endpoints are inaccessible for federated users with proper rights
      Given I am logged in using "rrogersAppAuth" "rrogers1234" to realm "IL"
      And format "application/json"
      When I navigate to <Action> "/<Resource URI>"
      Then I should receive a return code of <Expected Status>

    Examples:
     | Resource URI     | Action | Expected Status |
     | apps             | GET    | 200             |
     | apps             | POST   | 403             |
     | applicationAuthorization| GET | 200         |<commit_msg>Minor clean up of admin_crud feature<commit_after>Feature:
  As a federated user via an admin application
  I should NOT be able to perform CRUD operations on certain admin resources

  Background:
    Given I am logged in as a tenant-level IT Administrator
    And format "application/json"

  Scenario Outline: API admin GET endpoints are inaccessible for federated users
    When I navigate to <Action> "/<Resource URI>"
    Then I should receive a return code of <Expected Status>

  Examples:
    | Resource URI     | Action | Expected Status |
    | customRoles      | POST   | 403             |
    | customRoles      | GET    | 403             |
    | adminDelegation  | GET    | 403             |
    | adminDelegation  | POST   | 403             |
    | provision        | POST   | 403             |
    | tenants          | GET    | 403             |
    | tenants          | POST   | 403             |
    | users            | GET    | 403             |
    | users            | POST   | 403             |
    | realm            | GET    | 403             |
    | realm            | POST   | 403             |

   Scenario Outline: API admin GET "application" and "applicationAuthorization" endpoints are inaccessible for federated users with proper rights
      When I navigate to <Action> "/<Resource URI>"
      Then I should receive a return code of <Expected Status>

    Examples:
     | Resource URI     | Action | Expected Status |
     | apps             | GET    | 200             |
     | apps             | POST   | 403             |
     | applicationAuthorization| GET | 200         |
{'fraction_non_alphanumeric': 0.06409870598856456, 'fraction_numerical': 0.02888955762864881, 'mean_word_length': 1.5258358662613982, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '420548', 'n_tokens_mistral': 942, 'n_tokens_neox': 812, 'n_words': 324}