adobe / athena Goto Github PK
View Code? Open in Web Editor NEW🛡A Performance and Functional Testing Engine for APIs
License: Apache License 2.0
🛡A Performance and Functional Testing Engine for APIs
License: Apache License 2.0
config.js
at repo root level.-t
option.Recommended solution: handle CLI with yargs
instead of commander
.
ensure that every child ref from parrent is overwritten with same model and nothing else
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet.
We recommend using:
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
Tests should not present a dependency to a suite.
Suite model is potentially wrong. A suite should look like:
.....
scenario:
given: >
....
then: >
....
when: >
....
tests:
- ref: "name"
version: "x.x"
pottential overriding fields (must respect test model)
Please change the entity parsing logic to refer tests inside suites not the other way around
Could you please take some time in the next few days to make changes to some terminology in your repos and content as much as is possible:
If you cannot remove the term because the writing for example reflects the UI or the code, please make a note and send me an email to [email protected] so we can bring it that team’s attention. Thanks for your efforts in this matter.
In order to speed up the writing and the debugging of Atena tests, a script that translates between cURL commands would be ideal. This assumes a stable enough and predictable model, as suggested here: #3.
Create unit test collection for the framework in order to test several critical parts.
Currently, when fixtures are defined and loaded, there is no system of skipping the already loaded fixtures resulting in potential conflicts.
manager
node.agents
to join an already set-up cluster using an access token generated by the manager node.athena
CLI to manage the cluster and delegate performance tests to all agents inside the cluster.manager
to aggregate the results from all working nodes and store them inside a local database (sqlite?).Currently, the passing tests simply show up in a simple list. A flag (e.g. --verbose
) should be provided so that each expected item within the passing test can be inspected. Examples where this is useful:
Ability to be injected arround k8 pod and on server around a docker image. Start tests and intercept outbound traffic.
N/A
N/A
N/A
0.X
Known issue
N/A
Ensure registration of pattern and context with overriding for referenced perf runs
In order to understand the state of a failing test, a list of all the failing assertions should be provided. See an example of faulty reporting below:
expect(response).to.have.header("pragma", "no-cache"),
expect(response).to.have.header("accept-ranges", "bytes"),
expect(response).to.have.header("X-First-Bad-Header", "this_header_enjoys_espresso"),
expect(response).to.have.header("X-Second-Bad-Header", "this_value_drinks_only_decaf")
AssertionError: expected header X-First-Bad-Header with value undefined to match this_header_enjoys_espresso
Need to register perfRun in perfPattern and map configs hooks and functions
By offering a plugin as part of the base platform, please also consider a more keyword-based / YAML-structured alternative to what is currently offered. While clearly flexible, the code-heavy model can be a source of inconsistency (e.g. numerous equivalent ways to express the same thing, arbitrary function calls). I raise this issue because many aspects related to API testing are pretty standard (there are only so many types of entities attached to a request or expected from a response).
The coding capabilities need not be removed from this alternative, but certain aspects look repetitive enough and can be addressed case by case (for instance, checking multiple headers requires the same lengthy call many times). I understand that this means adding custom logic where out-of-the-box functionalities already took care of things, yet I consider this feature valuable as long as it does not eat too much development time.
What do you think is the proper way to include this functionality?
The url should be set using an env variable
http://localhost:9200 should be the default if env variable ELASTICSEARCH_URL is missing
Elasticsearch url is hardcoded to http://localhost:9200
Json array stays as array when removing empty elements
Json array is transformed in map when removing empty elements
Set examples/performance/perfRun.yaml to
name: "apiKey"
version: "1.0"
description: ""
engine: autocannon
type: perfRun
config:
url: https://api-gateway-qe-d-ue1.adobe.io/test
connections: 2000
duration: 30
method: GET
requests: # Array of objects.
- headers:
host: keepalive-with-upstream-test-stage-service-1.adobe.io
method:
path:
- headers:
host: baseline-performance-testing-stage-service-1.adobe.io
hooks:
onInit:
onDestroy:
onRequest:
and run athena
Write a comprehensive integration test suite that goes through all functionalities exposed to the user.
The command line arguments given when running performance tests in cluster mode are not propagated to ManagerNode and are discarded.
When issuing a command to master to run performance tests from a given path, the tests located at the given path are executed.
When issuing a command to master to run performance tests from a given path, the tests that are located at the default path are used instead.
node athena.js cluster --init --addr 0.0.0.0
node athena.js cluster --join --addr 0.0.0.0:5000 --token abcd
node athena.js cluster --run --performance --tests gw-tests/performance/upstream-directive/baseline
pm2 logs athena-agent
pm2 logs athena-manager
Add REST API for starting up functional/performance tests. Since these might be a long running process present corelationId to client so he can later query for the status of the job.
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.