|
| 1 | +# Bulk Upload Testing |
| 2 | + |
| 3 | +These scripts can be used with the Data Management Service or with the ODS/API |
| 4 | +Platform, version 7.1 or 72. There are two data set options: Grand Bend (small) |
| 5 | +and Southridge (large); in each case, it is possible to run a bootstrap data |
| 6 | +load only (descriptors, education organizations, learning standards), or to turn |
| 7 | +on a full data load. |
| 8 | + |
| 9 | +## Testing with the Data Management Service |
| 10 | + |
| 11 | +Recommended approach for the DMS: run either `start-local-dms.ps1` or |
| 12 | +`start-published-dms.ps1` from the `eng/docker-compose` directory. By default, |
| 13 | +this will run the API on `http://localhost:8080`. |
| 14 | + |
| 15 | +Then run one of the following commands: |
| 16 | + |
| 17 | +```shell |
| 18 | +# Only the bootstrap data |
| 19 | +./Invoke-LoadGrandBend.ps1 -LoadSchoolYear |
| 20 | + |
| 21 | +# ... or a larger data set |
| 22 | +./Invoke-LoadSouthridge.ps1 -LoadSchoolYear |
| 23 | + |
| 24 | +# Run the entire data set |
| 25 | +./Invoke-LoadSouthridge.ps1 -FullDataSet -LoadSchoolYear |
| 26 | + |
| 27 | +# ... or a larger data set |
| 28 | +./Invoke-LoadGrandBend.ps1 -FullDataSet -LoadSchoolYear |
| 29 | +``` |
| 30 | + |
| 31 | +## Testing with the ODS/API |
| 32 | + |
| 33 | +Recommended approach for the ODS/API: use the `bootstrap.ps1 -Hub` the script in |
| 34 | +`Ed-Fi-ODS-Implementation/Docker`. Run without any arguments, this will startup |
| 35 | +a single local instance of the ODS/API, running on PostgreSQL. By default, this will |
| 36 | +run the API on `http://localhost:8001`. |
| 37 | + |
| 38 | +Compared to the DMS instructions: don't use `LoadSchoolYear`, change the |
| 39 | +`BaseUrl`, and optionally change the key and secret (default values are shown: |
| 40 | +`minimalKey` and `minimalSecret`). |
| 41 | + |
| 42 | +```shell |
| 43 | +# Only the bootstrap data |
| 44 | +./Invoke-LoadGrandBend.ps1 -BaseUrl http://localhost:8001 -Key minimalKey -Secret minimalSecret |
| 45 | + |
| 46 | +# ... or a larger data set |
| 47 | +./Invoke-LoadSouthridge.ps1 -BaseUrl http://localhost:8001 -Key minimalKey -Secret minimalSecret |
| 48 | + |
| 49 | +# Run the entire data set |
| 50 | +./Invoke-LoadSouthridge.ps1 -FullDataSet -BaseUrl http://localhost:8001 -Key minimalKey -Secret minimalSecret |
| 51 | + |
| 52 | +# ... or a larger data set |
| 53 | +./Invoke-LoadGrandBend.ps1 -FullDataSet -BaseUrl http://localhost:8001 -Key minimalKey -Secret minimalSecret |
| 54 | +``` |
| 55 | + |
| 56 | +## Correct Education Organization Id |
| 57 | + |
| 58 | +If running Southridge against the ODS/API using, then make sure that client |
| 59 | +application is setup to work with education organization ID 255901. The |
| 60 | +following script might be useful _if you have only one API client in the |
| 61 | +`EdFi_Admin` database_. |
| 62 | + |
| 63 | +```sql |
| 64 | +update dbo.applicationeducationorganizations set educationorganizationid=255901; |
| 65 | +``` |
| 66 | + |
| 67 | +This is not necessary when using the bootstrap startup process in this |
| 68 | +repository's [eng/ods-api](../../eng/ods-api/) directory. |
0 commit comments