mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
update vendor/ dir to latest w/o heroku, moby
had to lock a lot of things in place
This commit is contained in:
10
vendor/github.com/go-openapi/spec/expander_test.go
generated
vendored
10
vendor/github.com/go-openapi/spec/expander_test.go
generated
vendored
@@ -214,6 +214,16 @@ func TestContinueOnErrorExpansion(t *testing.T) {
|
||||
err = ExpandSpec(testCase.Input, opts)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, testCase.Input, testCase.Expected, "Should continue expanding spec when a definition can't be found.")
|
||||
|
||||
doc, err := jsonDoc("fixtures/expansion/missingItemRef.json")
|
||||
spec := new(Swagger)
|
||||
err = json.Unmarshal(doc, spec)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.NotPanics(t, func() {
|
||||
err = ExpandSpec(spec, opts)
|
||||
assert.NoError(t, err)
|
||||
}, "Array of missing refs should not cause a panic, and continue to expand spec.")
|
||||
}
|
||||
|
||||
func TestIssue415(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user