Giter Club home page Giter Club logo

aragorn's People

Contributors

0rax avatar dal-papa avatar post-l avatar skwair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rahulch888

aragorn's Issues

better error when the config or suite json is invalid

using a json schema validation or disallow unknown fields.

observe right now:

./bin/aragorn exec ./test/config.json
./test/config.json: unsupported test suite type: ""
./bin/aragorn exec -config ./test/photos.schema.json
(no output)

Allow insecure SSL url via an option (equivalent to `curl -k`)

Some of our geobalanced services are running being a TLS connection with SSL certificate only valid for *.domain.org which is valid for the geobalanced domain name service.domain.org but not the datacenter specific one dc1.service.domain.org though when testing those service we would like to be able to test all datacenter separately which requires us to be able to allow any SSL certificate for such endpoint.

Would it be possible to add an option under the suite.base and suite.tests.[].request to allow this behavior. We could call this option insecure to follow curl nomenclature (for reference: curl: -k, --insecure Allow connections to SSL sites without certs (H)).

jsonValues validation on JSON Array

When trying to validate values from a document returned as a JSON Document ([]interface{}), aragorn panic with the following error:

panic: interface conversion: interface {} is []interface {}, not map[string]interface {}
goroutine 1 [running]:
github.com/blippar/aragorn/vendor/github.com/jmoiron/jsonq.NewQuery(...)
    /Users/orax/Projects/Go/src/github.com/blippar/aragorn/vendor/github.com/jmoiron/jsonq/jsonq.go:85
github.com/blippar/aragorn/testsuite/httpexpect.(*Response).ContainsJSONValues(0xc42032c190, 0xc4201cc930)
    /Users/orax/Projects/Go/src/github.com/blippar/aragorn/testsuite/httpexpect/response.go:103 +0x43b
github.com/blippar/aragorn/testsuite/httpexpect.(*Suite).runTest(0xc4202e8540, 0xc4201fa780, 0x1971168, 0xc4201fb4a0, 0x0, 0x0)
    /Users/orax/Projects/Go/src/github.com/blippar/aragorn/testsuite/httpexpect/httpexpect.go:123 +0x4c2
github.com/blippar/aragorn/testsuite/httpexpect.(*Suite).runTestWithRetry(0xc4202e8540, 0xc4201fa780, 0x1971168, 0xc4201fb4a0)

This issue comes from the jsonq library itself (see jsonq.go:85), it seems that this is a know issue (see jmoiron/jsonq#12 & jmoiron/jsonq#5) which as not yet been fixed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.