Skip to content

Commit

Permalink
regenerate golden files for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Nov 9, 2017
1 parent 541d9aa commit 2f7728d
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 8 deletions.
29 changes: 29 additions & 0 deletions backend/repository/data/gateway_config_expected.json
Expand Up @@ -816,6 +816,35 @@
}
},
"Middlewares": {
"example": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Bar": {
"type": "integer"
},
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
},
"example_reader": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
}
},
"RawMiddlewares": {
"example": {
"name": "example",
"schema": "./middlewares/example/example_schema.json",
Expand Down
91 changes: 83 additions & 8 deletions backend/repository/data/handler/test_cases.json
Expand Up @@ -215,14 +215,31 @@
"code": 200,
"body": {
"example": {
"importPath": "github.com/uber/zanzibar/examples/example-gateway/middlewares/example",
"name": "example",
"schema": "./middlewares/example/example_schema.json"
"$schema": "http://json-schema.org/schema#",
"properties": {
"Bar": {
"type": "integer"
},
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
},
"example_reader": {
"importPath": "github.com/uber/zanzibar/examples/example-gateway/middlewares/example_reader",
"name": "example_reader",
"schema": "./middlewares/example_reader/example_reader_schema.json"
"$schema": "http://json-schema.org/schema#",
"properties": {
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
}
}
}
Expand Down Expand Up @@ -2609,6 +2626,36 @@
"ManagedThriftFolder": "./github.com/uber/zanzibar",
"MiddlewareConfigFile": "./middlewares/middleware-config.json",
"Middlewares": {
"example": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Bar": {
"type": "integer"
},
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
},
"example_reader": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
}
},
"PackageRoot": "github.com/uber/zanzibar/examples/example-gateway",
"RawMiddlewares": {
"example": {
"importPath": "github.com/uber/zanzibar/examples/example-gateway/middlewares/example",
"name": "example",
Expand All @@ -2620,7 +2667,6 @@
"schema": "./middlewares/example_reader/example_reader_schema.json"
}
},
"PackageRoot": "github.com/uber/zanzibar/examples/example-gateway",
"Repository": "example-gateway",
"TargetGenDir": "./build",
"Team": "",
Expand Down Expand Up @@ -3463,6 +3509,36 @@
"ManagedThriftFolder": "./github.com/uber/zanzibar",
"MiddlewareConfigFile": "./middlewares/middleware-config.json",
"Middlewares": {
"example": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Bar": {
"type": "integer"
},
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
},
"example_reader": {
"$schema": "http://json-schema.org/schema#",
"properties": {
"Foo": {
"type": "string"
}
},
"required": [
"Foo"
],
"type": "object"
}
},
"PackageRoot": "github.com/uber/zanzibar/examples/example-gateway",
"RawMiddlewares": {
"example": {
"importPath": "github.com/uber/zanzibar/examples/example-gateway/middlewares/example",
"name": "example",
Expand All @@ -3474,7 +3550,6 @@
"schema": "./middlewares/example_reader/example_reader_schema.json"
}
},
"PackageRoot": "github.com/uber/zanzibar/examples/example-gateway",
"Repository": "example-gateway",
"TargetGenDir": "./build",
"Team": "",
Expand Down

0 comments on commit 2f7728d

Please sign in to comment.