blippar / aragorn Goto Github PK
View Code? Open in Web Editor NEWRegression tests made easy
License: Apache License 2.0
Regression tests made easy
License: Apache License 2.0
Some tests might contain image or file fields as a request or response documents.
proto3 bytes fields expect a base64 string.
https://developers.google.com/protocol-buffers/docs/proto3#json
We need to provide a way to refer to a file with a syntax like "@image.png"
that will be transformed to a base64 format "YWJjMTIzIT8kKiYoKSctPUB+"
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)
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)
).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.