Skip to content

Commit

Permalink
chore: update configuration test specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed May 12, 2024
1 parent b1c49f5 commit 4500389
Show file tree
Hide file tree
Showing 204 changed files with 209 additions and 344 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion tests/core/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl ExecutionSpec {
let source = Source::from_str(&lang)?;

match name {
"server" => {
"config" => {
// Server configs are only parsed if the test isn't skipped.
server.push((source, content));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-index-list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sending field index list

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-many-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ identity: true

# add-field-many-list

```graphql @server
```graphql @config
schema @server @upstream {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-many.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ identity: true

# add-field-many

```graphql @server
```graphql @config
schema @server @upstream {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-modify.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add field modify

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-with-composition.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add field with composition

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field-with-modify.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add field with modify

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/add-field.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add field

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/apollo-tracing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Apollo Tracing

```graphql @server
```graphql @config
schema
@server(port: 8000, hostname: "0.0.0.0")
@telemetry(export: {apollo: {apiKey: "<api_key>", graphRef: "tailcall-demo-3@current"}}) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/async-cache-disabled.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Async Cache Disabled

```graphql @server
```graphql @config
schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com") {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/async-cache-enable-multiple-resolvers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Async Cache Enabled

```graphql @server
```graphql @config
schema
@server(port: 8000, queryValidation: false)
@upstream(baseURL: "http://jsonplaceholder.typicode.com", dedupe: true) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/async-cache-enabled.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Async Cache Enabled

```graphql @server
```graphql @config
schema
@server(port: 8000, queryValidation: false)
@upstream(baseURL: "http://jsonplaceholder.typicode.com", dedupe: true) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/auth-basic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Auth with BasicAuth

```graphql @server
```graphql @config
schema @server(port: 8000) @link(id: "htpasswd", type: Htpasswd, src: ".htpasswd") {
query: Query
mutation: Mutation
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/auth-jwt.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Auth with JWT loaded from expr

```graphql @server
```graphql @config
schema @server(port: 8000) @link(id: "jwks", type: Jwks, src: "jwks.json") {
query: Query
mutation: Mutation
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/auth-protected-without-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: true

# Using @protected operator without specifying server.auth config

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ identity: true

# auth

```graphql @server
```graphql @config
schema
@server
@upstream
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching-default.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batching default

```graphql @server
```graphql @config
schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 10}) {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching-disabled.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batching disabled

```json @server
```json @config
{
"server": {},
"upstream": {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching-group-by-default.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batching group by default

```graphql @server
```graphql @config
schema
@server
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 1, maxSize: 1000}) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching-group-by.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batching group by

```graphql @server
```graphql @config
schema
@server(port: 8000, queryValidation: false)
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 1, maxSize: 1000}) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching-post.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batching post

```graphql @server
```graphql @config
schema
@server(port: 8000, queryValidation: false)
@upstream(
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/batching.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sending a batched graphql request

```json @server
```json @config
{
"server": {
"batchRequests": true
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/cache-control.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sending requests to verify Cache-Control behavior

```json @server
```json @config
{
"server": {
"headers": {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/caching-collision.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Caching Collision

```graphql @server
```graphql @config
schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/caching.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Caching

```graphql @server
```graphql @config
schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/call-graphql-datasource.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Call operator with graphQL datasource

```graphql @server
```graphql @config
schema
@server(port: 8000, hostname: "0.0.0.0")
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) {
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/call-multiple-steps-piping.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Call multiple steps piping

```graphql @server
```graphql @config
schema {
query: Query
}
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/call-mutation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Call mutation

```graphql @server
```graphql @config
schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") {
query: Query
mutation: Mutation
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/call-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ message NewsList {
}
```

```graphql @server
```graphql @config
schema
@server(port: 8000, hostname: "0.0.0.0")
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true)
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/cors-allow-cred-false.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cors allow cred false

```graphql @server
```graphql @config
schema
@upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000})
@server(
Expand Down
2 changes: 1 addition & 1 deletion tests/execution/cors-allow-cred-true.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cors allow cred true

```graphql @server
```graphql @config
schema
@upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000})
@server(
Expand Down
Loading

1 comment on commit 4500389

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 7.09ms 3.26ms 91.00ms 71.18%
Req/Sec 3.57k 182.40 3.85k 92.08%

426077 requests in 30.00s, 2.14GB read

Requests/sec: 14200.69

Transfer/sec: 72.89MB

Please sign in to comment.