<commit_before>@RALLY_US209 @RALLY_DE87
Feature: As an SLI application, I want to be able to perform CRUD operations on various resources
This means I want to be able to perform CRUD on all entities.
and verify that the correct links are made available.

Background: Nothing yet
    Given I am logged in using "rrogers" "rrogers1234" to realm "IL"
      And format "application/vnd.slc+json"

        Scenario: CRUD operations on an entity
        Then I perform CRUD for each resource available



        Scenario: CRUD operations on invalid entities
        #Read invalid
        Then I navigate to GET with invalid id for each resource available
        #Update Invalid
        Then I navigate to PUT with invalid id for each resource available
        #Delete Invalid
        Then I navigate to DELETE with invalid id for each resource available

    Scenario: Get All Entities as State Staff
    Given my contextual access is defined by table:
    |Context                | Ids                                |
    |schools                |b1bd3db6-d020-4651-b1b8-a8dba688d9e1|
    |educationOrganizations |b1bd3db6-d020-4651-b1b8-a8dba688d9e1|
    |staff                  |85585b27-5368-4f10-a331-3abcaf3a3f4c|
    Given the expected rewrite results are defined by table:
    | Entity Type                              | Entity Resource URI                      | Count | Rewrite URI|
    | assessment                              | assessments                              | 18    |/search/assessments|
    | attendance                              | attendances                              | 0     |/schools/@ids/studentSchoolAssociations/students/attendances|
    | cohort                                  | cohorts                                  | 2     |/staff/@ids/staffCohortAssociations/cohorts|
    | course                                  | courses                                  | 92    |/search/courses| 
    | disciplineAction                        | disciplineActions                        | 2     |/staff/@ids/disciplineActions|
    | disciplineIncident                      | disciplineIncidents                      | 0     |/staff/@ids/disciplineIncidents|
    | educationOrganization                   | educationOrganizations                   | 1     |/staff/@ids/staffEducationOrgAssignmentAssociations/educationOrganizations|
    | gradebookEntry                          | gradebookEntries                         | 0     |/schools/@ids/sections/gradebookEntries|
    | learningObjective                       | learningObjectives                       | 5     |/search/learningObjectives|
    | learningStandard                        | learningStandards                        | 14    |/search/learningStandards|
    | parent                                  | parents                                  | 0     |/schools/@ids/studentSchoolAssociations/students/studentParentAssociations/parents|
    | program                                 | programs                                 | 2     |/staff/@ids/staffProgramAssociations/programs|
    | studentProgramAssociation               | studentProgramAssociations               | 6    |/staff/@ids/staffProgramAssociations/programs/studentProgramAssociations|
    | courseTranscript                        | courseTranscripts                        | 0     |/schools/@ids/studentSchoolAssociations/students/studentAcademicRecords/courseTranscripts|
    | staffEducationOrganizationAssociation   | staffEducationOrgAssignmentAssociations  | 2     |/staff/@ids/staffEducationOrgAssignmentAssociations|
    | studentCohortAssociation                | studentCohortAssociations                | 4     |/staff/@ids/staffCohortAssociations/cohorts/studentCohortAssociations|
    | teacherSectionAssociation               | teacherSectionAssociations               | 0     |/schools/@ids/teacherSchoolAssociations/teachers/teacherSectionAssociations|
    | studentSchoolAssociation                | studentSchoolAssociations                | 0     |/schools/@ids/studentSchoolAssociations|
    | teacherSchoolAssociation                | teacherSchoolAssociations                | 0     |/schools/@ids/teacherSchoolAssociations|
    | studentSectionAssociation               | studentSectionAssociations               | 0     |/schools/@ids/sections/studentSectionAssociations|
    | staffCohortAssociation                  | staffCohortAssociations                  | 2     |/staff/@ids/staffCohortAssociations|
    | studentAssessment                       | studentAssessments                       | 0     |/schools/@ids/studentSchoolAssociations/students/studentAssessments|
    | competencyLevelDescriptor               | competencyLevelDescriptor                | 2     |/search/competencyLevelDescriptor|
    | staffProgramAssociation                 | staffProgramAssociations                 | 3     |/staff/@ids/staffProgramAssociations|
    | studentDisciplineIncidentAssociation    | studentDisciplineIncidentAssociations    | 0     |/staff/@ids/disciplineIncidents/studentDisciplineIncidentAssociations|
    | studentParentAssociation                | studentParentAssociations                | 0     |/schools/@ids/studentSchoolAssociations/students/studentParentAssociations|
    | courseOffering                          | courseOfferings                          | 138    |/search/courseOfferings|
    | graduationPlan                          | graduationPlans                          | 5     |/graduationPlans|
    | school                                  | schools                                  | 0     |/staff/@ids/staffEducationOrgAssignmentAssociations/schools|
    | section                                 | sections                                 | 0     |/schools/@ids/sections|
    | session                                 | sessions                                 | 29    |/search/sessions|
    | staff                                   | staff                                    | 5     |/educationOrganizations/@ids/staffEducationOrgAssignmentAssociations/staff|
    | student                                 | students                                 | 0     |/schools/@ids/studentSchoolAssociations/students|
    | studentAcademicRecord                   | studentAcademicRecords                   | 0     |/schools/@ids/studentSchoolAssociations/students/studentAcademicRecords|
    | studentGradebookEntry                   | studentGradebookEntries                  | 0     |/schools/@ids/studentSchoolAssociations/students/studentGradebookEntries|
    | teacher                                 | teachers                                 | 0     |/schools/@ids/teacherSchoolAssociations/teachers|
    | grade                                   | grades                                   | 0     |/schools/@ids/sections/studentSectionAssociations/grades|
    | studentCompetencie                      | studentCompetencies                      | 0     |/schools/@ids/sections/studentSectionAssociations/studentCompetencies|
    | gradingPeriod                           | gradingPeriods                           | 3     |/search/gradingPeriods|
    | reportCard                              | reportCards                              | 0     |/schools/@ids/studentSchoolAssociations/students/reportCards|
    | studentCompetencyObjective              | studentCompetencyObjectives              | 1     |/search/studentCompetencyObjectives    |
    | calendarDates                           | calendarDates                            | 1     |/calendarDates|
    Then the staff queries and rewrite rules work

 @Teacher_crud
    Scenario: CRUD operations requiring explicit associations on an entity as an IT Admin Teacher
    Given I am logged in using "cgrayadmin" "cgray1234" to realm "IL"
      And format "application/vnd.slc+json"
      Then I perform POST for each resource available in the order defined by table:
      | Entity Resource                          |
      | educationOrganizations                   |
      | schools                                  |
      | staff                                    |
      | staffEducationOrgAssignmentAssociations  |
      | gradingPeriods                           |
      | sessions                                 |
      | students                                 |
      | courses                                  |
      | courseOfferings                          |
      | sections                                 |
      | programs                                 |
      | teachers                                 |
      | assessments                              |
      | attendances                              |
      | cohorts                                  |
      | disciplineActions                        |<commit_msg>US5785 AT changes after URL RW for calendarDates<commit_after>@RALLY_US209 @RALLY_DE87
Feature: As an SLI application, I want to be able to perform CRUD operations on various resources
This means I want to be able to perform CRUD on all entities.
and verify that the correct links are made available.

Background: Nothing yet
    Given I am logged in using "rrogers" "rrogers1234" to realm "IL"
      And format "application/vnd.slc+json"

        Scenario: CRUD operations on an entity
        Then I perform CRUD for each resource available



        Scenario: CRUD operations on invalid entities
        #Read invalid
        Then I navigate to GET with invalid id for each resource available
        #Update Invalid
        Then I navigate to PUT with invalid id for each resource available
        #Delete Invalid
        Then I navigate to DELETE with invalid id for each resource available

    Scenario: Get All Entities as State Staff
    Given my contextual access is defined by table:
    |Context                | Ids                                |
    |schools                |b1bd3db6-d020-4651-b1b8-a8dba688d9e1|
    |educationOrganizations |b1bd3db6-d020-4651-b1b8-a8dba688d9e1|
    |staff                  |85585b27-5368-4f10-a331-3abcaf3a3f4c|
    Given the expected rewrite results are defined by table:
    | Entity Type                              | Entity Resource URI                      | Count | Rewrite URI|
    | assessment                              | assessments                              | 18    |/search/assessments|
    | attendance                              | attendances                              | 0     |/schools/@ids/studentSchoolAssociations/students/attendances|
    | cohort                                  | cohorts                                  | 2     |/staff/@ids/staffCohortAssociations/cohorts|
    | course                                  | courses                                  | 92    |/search/courses| 
    | disciplineAction                        | disciplineActions                        | 2     |/staff/@ids/disciplineActions|
    | disciplineIncident                      | disciplineIncidents                      | 0     |/staff/@ids/disciplineIncidents|
    | educationOrganization                   | educationOrganizations                   | 1     |/staff/@ids/staffEducationOrgAssignmentAssociations/educationOrganizations|
    | gradebookEntry                          | gradebookEntries                         | 0     |/schools/@ids/sections/gradebookEntries|
    | learningObjective                       | learningObjectives                       | 5     |/search/learningObjectives|
    | learningStandard                        | learningStandards                        | 14    |/search/learningStandards|
    | parent                                  | parents                                  | 0     |/schools/@ids/studentSchoolAssociations/students/studentParentAssociations/parents|
    | program                                 | programs                                 | 2     |/staff/@ids/staffProgramAssociations/programs|
    | studentProgramAssociation               | studentProgramAssociations               | 6    |/staff/@ids/staffProgramAssociations/programs/studentProgramAssociations|
    | courseTranscript                        | courseTranscripts                        | 0     |/schools/@ids/studentSchoolAssociations/students/studentAcademicRecords/courseTranscripts|
    | staffEducationOrganizationAssociation   | staffEducationOrgAssignmentAssociations  | 2     |/staff/@ids/staffEducationOrgAssignmentAssociations|
    | studentCohortAssociation                | studentCohortAssociations                | 4     |/staff/@ids/staffCohortAssociations/cohorts/studentCohortAssociations|
    | teacherSectionAssociation               | teacherSectionAssociations               | 0     |/schools/@ids/teacherSchoolAssociations/teachers/teacherSectionAssociations|
    | studentSchoolAssociation                | studentSchoolAssociations                | 0     |/schools/@ids/studentSchoolAssociations|
    | teacherSchoolAssociation                | teacherSchoolAssociations                | 0     |/schools/@ids/teacherSchoolAssociations|
    | studentSectionAssociation               | studentSectionAssociations               | 0     |/schools/@ids/sections/studentSectionAssociations|
    | staffCohortAssociation                  | staffCohortAssociations                  | 2     |/staff/@ids/staffCohortAssociations|
    | studentAssessment                       | studentAssessments                       | 0     |/schools/@ids/studentSchoolAssociations/students/studentAssessments|
    | competencyLevelDescriptor               | competencyLevelDescriptor                | 2     |/search/competencyLevelDescriptor|
    | staffProgramAssociation                 | staffProgramAssociations                 | 3     |/staff/@ids/staffProgramAssociations|
    | studentDisciplineIncidentAssociation    | studentDisciplineIncidentAssociations    | 0     |/staff/@ids/disciplineIncidents/studentDisciplineIncidentAssociations|
    | studentParentAssociation                | studentParentAssociations                | 0     |/schools/@ids/studentSchoolAssociations/students/studentParentAssociations|
    | courseOffering                          | courseOfferings                          | 138    |/search/courseOfferings|
    | graduationPlan                          | graduationPlans                          | 5     |/graduationPlans|
    | school                                  | schools                                  | 0     |/staff/@ids/staffEducationOrgAssignmentAssociations/schools|
    | section                                 | sections                                 | 0     |/schools/@ids/sections|
    | session                                 | sessions                                 | 29    |/search/sessions|
    | staff                                   | staff                                    | 5     |/educationOrganizations/@ids/staffEducationOrgAssignmentAssociations/staff|
    | student                                 | students                                 | 0     |/schools/@ids/studentSchoolAssociations/students|
    | studentAcademicRecord                   | studentAcademicRecords                   | 0     |/schools/@ids/studentSchoolAssociations/students/studentAcademicRecords|
    | studentGradebookEntry                   | studentGradebookEntries                  | 0     |/schools/@ids/studentSchoolAssociations/students/studentGradebookEntries|
    | teacher                                 | teachers                                 | 0     |/schools/@ids/teacherSchoolAssociations/teachers|
    | grade                                   | grades                                   | 0     |/schools/@ids/sections/studentSectionAssociations/grades|
    | studentCompetencie                      | studentCompetencies                      | 0     |/schools/@ids/sections/studentSectionAssociations/studentCompetencies|
    | gradingPeriod                           | gradingPeriods                           | 3     |/search/gradingPeriods|
    | reportCard                              | reportCards                              | 0     |/schools/@ids/studentSchoolAssociations/students/reportCards|
    | studentCompetencyObjective              | studentCompetencyObjectives              | 1     |/search/studentCompetencyObjectives    |
    | calendarDates                           | calendarDates                            | 0     |/educationOrganizations/@ids/calendarDates|
    Then the staff queries and rewrite rules work

 @Teacher_crud
    Scenario: CRUD operations requiring explicit associations on an entity as an IT Admin Teacher
    Given I am logged in using "cgrayadmin" "cgray1234" to realm "IL"
      And format "application/vnd.slc+json"
      Then I perform POST for each resource available in the order defined by table:
      | Entity Resource                          |
      | educationOrganizations                   |
      | schools                                  |
      | staff                                    |
      | staffEducationOrgAssignmentAssociations  |
      | gradingPeriods                           |
      | sessions                                 |
      | students                                 |
      | courses                                  |
      | courseOfferings                          |
      | sections                                 |
      | programs                                 |
      | teachers                                 |
      | assessments                              |
      | attendances                              |
      | cohorts                                  |
      | disciplineActions                        |
{'fraction_non_alphanumeric': 0.056380156893729896, 'fraction_numerical': 0.013544782436932107, 'mean_word_length': 1.3211946554886036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 77, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3838113', 'n_tokens_mistral': 4261, 'n_tokens_neox': 3731, 'n_words': 801}