Skip to content

Commit

Permalink
[SHIBUI-701]
Browse files Browse the repository at this point in the history
Unit test fix.
  • Loading branch information
Bill Smith committed Nov 7, 2018
1 parent ffe0fb9 commit e785e68
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import org.springframework.test.context.ActiveProfiles
import spock.lang.Specification

import static edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocation.*
import static edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocation.SchemaType.ENTITY_ATTRIBUTES_FILTERS
import static edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocation.SchemaType.FILESYSTEM_METADATA_RESOLVER
import static edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocation.SchemaType.METADATA_SOURCES

/**
Expand Down Expand Up @@ -49,6 +51,19 @@ class BadJSONMetadataSourcesUiDefinitionControllerIntegrationTests extends Speci
.jacksonMapper(jacksonMapper)
.detectMalformedJson(false)
.build())
//TODO Maybe we need a separate test config here so we don't have to define all of the locations?
.register(ENTITY_ATTRIBUTES_FILTERS, JsonSchemaLocationBuilder.with()
.jsonSchemaLocation('classpath:entity-attributes-filters-ui-schema.json')
.resourceLoader(resourceLoader)
.jacksonMapper(jacksonMapper)
.detectMalformedJson(false)
.build())
.register(FILESYSTEM_METADATA_RESOLVER, JsonSchemaLocationBuilder.with()
.jsonSchemaLocation('classpath:file-system-metadata-provider.schema.json')
.resourceLoader(resourceLoader)
.jacksonMapper(jacksonMapper)
.detectMalformedJson(false)
.build())
}
}
}

0 comments on commit e785e68

Please sign in to comment.