Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
1b6cf2e7
Commit
1b6cf2e7
authored
Jun 16, 2021
by
Piotr Gawron
Browse files
overlay response does not contain unused data
parent
eee64853
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/src/test/java/lcsb/mapviewer/web/OverlayControllerIntegrationTest.java
View file @
1b6cf2e7
...
...
@@ -20,8 +20,7 @@ import org.junit.runner.RunWith;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.mock.web.MockHttpSession
;
import
org.springframework.restdocs.payload.FieldDescriptor
;
import
org.springframework.restdocs.payload.ResponseFieldsSnippet
;
import
org.springframework.restdocs.payload.*
;
import
org.springframework.restdocs.request.RequestParametersSnippet
;
import
org.springframework.restdocs.snippet.Snippet
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
...
...
@@ -1254,47 +1253,37 @@ public class OverlayControllerIntegrationTest extends ControllerIntegrationTest
return
Arrays
.
asList
(
fieldWithPath
(
"name"
)
.
description
(
"name"
)
.
type
(
"string"
),
.
type
(
JsonFieldType
.
STRING
),
fieldWithPath
(
"description"
)
.
description
(
"description"
)
.
type
(
"string"
),
fieldWithPath
(
"defaultOverlay"
)
.
description
(
"should the overlay be used as default (at most one per project should be marked with true)"
)
.
type
(
"boolean"
),
.
type
(
JsonFieldType
.
STRING
),
fieldWithPath
(
"idObject"
)
.
description
(
"identifier"
)
.
type
(
"number"
),
fieldWithPath
(
"inputDataAvailable"
)
.
description
(
"is the source data for the overlay available"
)
.
type
(
"string"
),
.
type
(
JsonFieldType
.
NUMBER
),
fieldWithPath
(
"publicOverlay"
)
.
description
(
"is the data overlay publicaly available to all users"
)
.
type
(
"boolean"
),
.
type
(
JsonFieldType
.
BOOLEAN
),
fieldWithPath
(
"googleLicenseConsent"
)
.
description
(
"did creator accepted license required by Google Maps API"
)
.
type
(
"boolean"
),
fieldWithPath
(
"images"
)
.
description
(
"in case the data overlay is a background data overlay this object contains map between submaps and folders where background images are stored"
)
.
type
(
"string"
),
.
type
(
JsonFieldType
.
BOOLEAN
),
fieldWithPath
(
"order"
)
.
description
(
"sort order"
)
.
type
(
"number"
),
.
type
(
JsonFieldType
.
NUMBER
),
fieldWithPath
(
"type"
)
.
description
(
"type; available options: "
+
new
ProjectSnippets
().
getOptionsAsString
(
DataOverlayType
.
class
))
.
type
(
"number"
),
.
type
(
JsonFieldType
.
STRING
),
fieldWithPath
(
"genomeType"
)
.
description
(
"reference genome type; available options: "
+
new
ProjectSnippets
().
getOptionsAsString
(
ReferenceGenomeType
.
class
))
.
optional
()
.
type
(
"number"
),
.
type
(
JsonFieldType
.
STRING
),
fieldWithPath
(
"genomeVersion"
)
.
description
(
"reference genome version"
)
.
optional
()
.
type
(
"number"
),
.
type
(
JsonFieldType
.
STRING
),
fieldWithPath
(
"creator"
)
.
description
(
"login of the user who uploaded data overlay"
)
.
type
(
"string"
)
.
type
(
JsonFieldType
.
STRING
)
.
optional
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment