Skip to content

Commit aaf8e97

Browse files
[CERT-164] fix: Added missing assertions (#93)
* [CERT-164] fix: Added missing assertions * [CERT-164] sequence fix
1 parent 64d8944 commit aaf8e97

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

bruno/SIS/v4/StudentDiscipline/DisciplineAction/01 - Check first DisciplineAction is valid.bru

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ assert {
3535
res.body[0].studentReference.studentUniqueId: isNotEmpty
3636
res.body[0].actualDisciplineActionLength: isNumber
3737
res.body[0].actualDisciplineActionLength: neq 0
38+
res.body[0].studentDisciplineIncidentAssociations: isArray
39+
res.body[0].studentDisciplineIncidentAssociations: isNotEmpty
40+
res.body[0].studentDisciplineIncidentAssociations[0].studentDisciplineIncidentAssociationReference: isDefined
3841
res.body[0].responsibilitySchoolReference: isDefined
3942
res.body[0].responsibilitySchoolReference.schoolId: isNumber
4043
res.body[0].responsibilitySchoolReference.schoolId: neq 0
44+
res.body[0].iepPlacementMeetingIndicator: isBoolean
4145
}
4246

4347
script:post-response {

bruno/SIS/v4/StudentDiscipline/DisciplineAction/02 - Check second DisciplineAction is valid.bru

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ assert {
3535
res.body[0].studentReference.studentUniqueId: isNotEmpty
3636
res.body[0].actualDisciplineActionLength: isNumber
3737
res.body[0].actualDisciplineActionLength: neq 0
38+
res.body[0].studentDisciplineIncidentAssociations: isArray
39+
res.body[0].studentDisciplineIncidentAssociations: isNotEmpty
40+
res.body[0].studentDisciplineIncidentAssociations[0].studentDisciplineIncidentAssociationReference: isDefined
3841
res.body[0].responsibilitySchoolReference: isDefined
3942
res.body[0].responsibilitySchoolReference.schoolId: isNumber
4043
res.body[0].responsibilitySchoolReference.schoolId: neq 0

bruno/SIS/v4/StudentDiscipline/DisciplineAction/folder.bru

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ docs {
1212

1313
This interchange defines discipline incidents and discipline actions.
1414
`DisciplineAction`: This event entity represents actions taken by an education organization after a disruptive event that is recorded as a discipline incident.
15-
15+
1616
## Prerequisites
1717

1818
* Student
@@ -21,15 +21,15 @@ docs {
2121
* Discipline Incident
2222

2323
## Scenarios tasks
24-
24+
2525
1. __CREATE__`first` new `Discipline Action` for an elementary school student's `Discipline Incident`.
2626
2. __CREATE__`second` new `Discipline Action` for a high school student's `Discipline Incident`.
27-
3. __UPDATE__ the `first` added elementary student's `Discipline Action` the _disciplineDescriptor_ from "Out of School Suspension" to "In School Suspension".
28-
4. __UPDATE__ the `second` added high school student's `Discipline Action` the _disciplineDescriptor_ from "In School Suspension" to "Community Service".
27+
3. __UPDATE__ for the `first` added elementary student's `Discipline Action` the _disciplineDescriptor_ from "Out of School Suspension" to "In School Suspension".
28+
4. __UPDATE__ for the `second` added high school student's `Discipline Action` the _disciplineDescriptor_ from "In School Suspension" to "Community Service".
2929
5. __DELETE__ the `first` added `Discipline Action` for the elementary school student.
30-
30+
3131
## Scenarios example data
32-
32+
3333
| Resource | Property Name | Is Collection | Data Type | Required | Scenario 1: POST | Scenario 2: POST | Scenario 3: PUT | Scenario 4: PUT |
3434
| ----------------------------------------------------- | ------------------------------------------------- | ------------- | ----------------------------------------------- | -------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
3535
| DisciplineActions | disciplineActionIdentifier | FALSE | nvarchar | REQUIRED | 11 | 22 | 11 | 22 |
@@ -52,7 +52,7 @@ docs {
5252
| disciplineActionStaffs | staffReference | FALSE | integer | OPTIONAL | | | | |
5353
| staffReference | staffUniqueId | FALSE | string | OPTIONAL | | | | |
5454
| DisciplineActions | iepPlacementMeetingIndicator | TRUE | boolean | REQUIRED | TRUE | | TRUE | |
55-
55+
5656
## API response format
5757
```json
5858
{

bruno/SIS/v4/StudentDiscipline/DisciplineAction/todo.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)