Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/spring-graphql-refactored' into …
Browse files Browse the repository at this point in the history
…spring-graphql-refactored
  • Loading branch information
paulbakker committed Mar 28, 2024
2 parents d7818f0 + 2421ca0 commit e74eeea
Showing 1 changed file with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
@EnableAutoConfiguration
@Execution(ExecutionMode.SAME_THREAD)
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
@Disabled
class DgsWebMVCAutomatedPersistedQueriesSmokeTest {

@Autowired
Expand Down Expand Up @@ -105,50 +104,6 @@ class DgsWebMVCAutomatedPersistedQueriesSmokeTest {
)
}

@Test
@Order(1)
fun `Attempt to execute a GET Request with a known hash`() {
val uriBuilder =
MockMvcRequestBuilders
.get("/graphql")
.contentType(MediaType.APPLICATION_JSON)
.content(
"""
|{
| "extensions":{
| "persistedQuery":{
| "version":1,
| "sha256Hash":"ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38"
| }
| }
| }
|
""".trimMargin()
)
mvc.perform(uriBuilder)
.andExpect(status().isOk)
.andExpect(
content().json(
"""
|{
| "errors":[
| {
| "message":"PersistedQueryNotFound",
| "locations":[],
| "extensions":{
| "persistedQueryId":"ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38",
| "generatedBy":"graphql-java",
| "classification":"PersistedQueryNotFound"
| }
| }
| ]
| }
|
""".trimMargin()
)
)
}

@Test
@Order(2)
fun `Execute a POST Request with a known hash and query`() {
Expand Down Expand Up @@ -196,7 +151,6 @@ class DgsWebMVCAutomatedPersistedQueriesSmokeTest {
.content(
"""
|{
| "query": "{__typename}",
| "extensions":{
| "persistedQuery":{
| "version":1,
Expand Down

0 comments on commit e74eeea

Please sign in to comment.