Skip to content

Commit

Permalink
Add fixtures to enable testing in another haku
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalliok committed Feb 2, 2024
1 parent 7a53886 commit 72edc01
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"Sijoittelu": [
{
"_id": {
"$oid": "e4b0755315d44e0a547f0c17"
},
"className": "fi.vm.sade.sijoittelu.domain.Sijoittelu",
"hakuOid": "1.2.246.562.29.54920186605",
"sijoitteluId": {
"$numberLong": "1496148928084"
},
"created": {
"$date": "2014-12-03T13:11:51.186Z"
},
"sijoittele": true,
"sijoitteluajot": [
{
"sijoitteluajoId": {
"$numberLong": "1496148928084"
},
"startMils": {
"$numberLong": "14961489280841"
},
"endMils": {
"$numberLong": "14961499280851"
},
"hakuOid": "1.2.246.562.29.54920186605",
"hakukohteet": [
{
"oid": "1.2.246.562.20.82865494536"
}
]
}
]
}
],
"Hakukohde": [
{
"_id": {
"$oid": "e4b0b0b11090076453fc79b8"
},
"className": "fi.vm.sade.sijoittelu.domain.Hakukohde",
"sijoitteluajoId": {
"$numberLong": "1496148928084"
},
"oid": "1.2.246.562.20.82865494536",
"tarjoajaOid": "1.2.246.562.10.591352080610",
"kaikkiJonotSijoiteltu": true,
"valintatapajonot": [
{
"tasasijasaanto": "YLITAYTTO",
"oid": "14090336922663576781797489829896",
"nimi": "Varsinainen jono",
"prioriteetti": 0,
"aloituspaikat": 3,
"eiVarasijatayttoa": false,
"kaikkiEhdonTayttavatHyvaksytaan": false,
"poissaOlevaTaytto": false,
"hyvaksytty": 1,
"varalla": 0,
"alinHyvaksyttyPistemaara": 4,
"varasijojaKaytetaanAlkaen": {
"$date": "2014-08-26T16:05:23.943Z"
},
"varasijojaTaytetaanAsti": {
"$date": "2014-08-26T16:05:23.943Z"
},
"hakemukset": [
{
"hakijaOid": "1.2.246.562.24.14229104472",
"hakemusOid": "1.2.246.562.11.00000441370",
"etunimi": "Teppo",
"sukunimi": "Testaaja",
"prioriteetti": 1,
"jonosija": 1,
"pisteet": 4,
"tasasijaJonosija": 1,
"tila": "HYVAKSYTTY",
"tilaHistoria": [
{
"luotu": {
"$date": "2014-08-26T15:12:40.623Z"
},
"tila": "HYVAKSYTTY"
}
],
"hyvaksyttyHarkinnanvaraisesti": false,
"tilankuvauksenTarkenne": "EI_TILANKUVAUKSEN_TARKENNETTA"
}
]
}
]
}
],
"Valintatulos": [
{
"_id": {
"$oid": "e4b0b0b11090076653fc8613"
},
"className": "fi.vm.sade.sijoittelu.domain.Valintatulos",
"valintatapajonoOid": "14090336922663576781797489829896",
"hakemusOid": "1.2.246.562.11.00000441370",
"hakukohdeOid": "1.2.246.562.20.82865494536",
"hakijaOid": "1.2.246.562.24.14229104472",
"hakuOid": "1.2.246.562.29.54920186605",
"hakutoive": 1,
"tila": "KESKEN",
"ilmoittautumisTila": "EI_TEHTY",
"julkaistavissa": true,
"logEntries": [
{
"luotu": {
"$date": "2014-08-26T16:05:23.943Z"
},
"muokkaaja": "1.2.246.562.24.00000000001",
"muutos": "KESKEN",
"selite": "Massamuokkaus"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ScalatraBootstrap extends LifeCycle with Logging {
if (appConfig.isInstanceOf[IT] || appConfig.isInstanceOf[Dev]) {
context.mount(new FixtureServlet(valintarekisteriDb), "/util")
SijoitteluFixtures(valintarekisteriDb).importFixture("hyvaksytty-kesken-julkaistavissa.json")
SijoitteluFixtures(valintarekisteriDb).importFixture("yksi-lisajono.json")
}

lazy val organisaatioService = OrganisaatioService(appConfig)
Expand Down

0 comments on commit 72edc01

Please sign in to comment.