---
# System prepended metadata

title: Testing Backend

---

Test Scenario


# Testing Backend

## Test Course
Condition + Expected Result

___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status:<span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status:<span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Berhasil
Realita: Request berhasil / Http code 200
Status: <span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Berhasil
Realita: Request berhasil / Http code 200
Status: <span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
<span style="color:orange;"> ***NOTE : di hit 2 kali dengan payload yang sama*** </span>
Ekspektasi: Tidak berhasil / Bad request
Realita: Tidak berhasil / Http code 400
Status: <span style="color:green;"> **Berhasil** </span>
___

# Test Update Course
Condition + Expected Result

___
Kondisi :
```
[
    {
        "op": "replace",
        "path": "/subject/id",
        "value": ""
    },
    {
        "op": "replace",
        "path": "/studygroup/id",
        "value": ""
    },
    {
        "op": "replace",
        "path": "/school_curriculum/id",
        "value": ""
    }
]
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": ""
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Berhasil
Realita: Request berhasil / Http code 200
Status: <span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": ""
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": ""
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Tidak berhasil / Bad request
Realita: Request berhasil / Http code 200
Status: <span style="color:red;"> **Gagal** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
Ekspektasi: Berhasil
Realita: Request berhasil / Http code 200
Status: <span style="color:green;"> **Berhasil** </span>
___
Kondisi :
```
{
    "subject": {
        "id": "8b6f5ff8-bc0e-4ed0-8f9c-215b0cd782d5"
    },
    "studygroup": {
        "id": "2b82e53d-054e-45b9-87fc-9c9f6d125df2"
    },
    "school_curriculum": {
        "id": "7fef0453-4b22-45db-b099-a2522bc7053e"
    }
}
```
***NOTE : di hit 2 kali dengan payload yang sama***
Ekspektasi: Tidak berhasil / Bad request
Realita: Tidak berhasil / Http code 400
Status: <span style="color:green;"> **Berhasil** </span>
___
