Commit Graph

666 Commits

Author SHA1 Message Date
YuanSheng Wang
dae069d51a
bugfix: returned 404 response if the service is not existing. (#107)
* bugfix: returned 404 response if the service is not existing.
2019-06-15 22:34:26 +08:00
Yuansheng
c3490ce7fb feature: supported to fetch all of dependencies library to deps folder. 2019-06-14 23:51:02 -04:00
YuanSheng Wang
16f5f27c90
feature: used schema to check the upstream configuration in etcd. (#105)
* feature: used schema to check the upstream configuration in etcd.
* change: used Lua table to avoid concat JSON string by manual for schema.
* optimize: changed a smaller wait time, faster way to know if there has new data coming.
2019-06-15 11:49:58 +08:00
WenMing
379a6eba4b
doc: added image for apisix. (#106) 2019-06-15 10:50:00 +08:00
YuanSheng Wang
32110aeba0
feature: returned 502 if there is no any valid upstream. (#100)
* feature: returned 502 if there is no any valid upstream.
2019-06-15 08:32:51 +08:00
Yuansheng
180cca723b feature: the minimum is 1 if the route id is integer. 2019-06-15 08:32:28 +08:00
Yuansheng
7a60149b6d feature: checked the id of route. 2019-06-15 07:17:34 +08:00
Yuansheng
a07894e7ac bugfix: checked the service id if it is valid. 2019-06-14 22:55:57 +08:00
Yuansheng
5db79419db test: added more test cases about the schema of route. 2019-06-14 22:05:53 +08:00
Yuansheng
09cd32eb62 bugfix: return directly if failed to fetch service attribute by
service id.
2019-06-14 17:56:13 +08:00
Yuansheng
66b3408204 makefile: create temporary dir for core file of apisix.
test: removed the sleep step, it is invalid.
2019-06-14 17:28:16 +08:00
YuanSheng Wang
f560316803
test: check the service config with json schema after fetched it form etcd. (#96)
* test: check the service config with `json schema` after fetched it form etcd.
* test: sleep one more seconds waiting for the etcd sync.
2019-06-14 17:08:44 +08:00
WenMing
ba576985b1
bugfix: added the plugin load. (#95)
* bugfix: added the plugin load.

* test: added test cases for limit count.

* test: added Lua sleep at the end of init_worker.

left enough time for read data from etcd, otherwise worker maybe deal with request before get data from etcd.

* test: added no_shuffle();
2019-06-14 16:11:14 +08:00
WenMing
17a4f3c8e8
doc: fixed typo of doc. (#94) 2019-06-14 12:00:28 +08:00
YuanSheng Wang
f270c6ff63
feature: used schema to check the etcd data if it is valid. (#91)
* feature: used schema to check the etcd data if it is valid.
2019-06-14 10:46:42 +08:00
YuanSheng Wang
2ebc2cee69
test: added a fully test case for gateway node. (#90)
* test: added a fully test case for gateway node.
2019-06-14 10:27:45 +08:00
Yuansheng
9ee285661f test: renamed test cases. 2019-06-14 08:08:59 +08:00
WenMing
1602268833
bugfix: only accept client IP as key now. (#85) 2019-06-13 19:11:15 +08:00
Yuansheng
e27195c334 git: added ignore file. 2019-06-13 17:26:41 +08:00
WenMing
c6e69cbcc9
feature: changed plugin_config to plugins. (#84) 2019-06-13 17:25:39 +08:00
Yuansheng
10a0fb03f7 test: moved the different test file to different folder. 2019-06-13 16:16:50 +08:00
WenMing
fd8618e731 feature: added schema check for plugins. 2019-06-13 14:39:35 +08:00
WenMing
2a4a57a30e
Update README.md 2019-06-13 12:37:06 +08:00
WenMing
fad17404b4
Update README_CN.md 2019-06-13 12:36:14 +08:00
WenMing
6cb541e3d4
doc: added white paper. (#83) 2019-06-13 12:34:43 +08:00
YuanSheng Wang
8cfd7d4180
feature: implemented routes API for admin user, allowed user to manage route. (#79)
* feature: supported to generate admin API basic configurations when the admin API is enabled.
* feature: supported to manage route API for admin user, it contains: PUT, GET, DELETE and POST.
* feature: used json schema to check if the request configuration is valid.
2019-06-13 12:01:36 +08:00
Yuansheng
9471bcfdc6 doc: supported consistent hash for dynamic load balancing. 2019-06-12 13:24:25 +08:00
YuanSheng Wang
17fecb3e53
feature: supported to cache non-table Lua object by lrucache library. (#80)
* feature: supported to cache non-table Lua object by `lrucache` library.
* bug: used a table to avoid one bug of `rapidjson`, fix it later.
2019-06-12 10:34:45 +08:00
Yuansheng
48e9312d7b change: updated the internal version to v0.5-beta. 2019-06-12 06:18:42 +08:00
Yuansheng
c86e778925 test: checked the error log if it contains error level log. 2019-06-12 06:13:39 +08:00
YuanSheng Wang
463e5601b3
optimize: used lru way to cache the validator object for schema. (#77)
* optimize: used `lru` way to cache the validator object for schema.

Fix #76.
2019-06-11 23:47:00 +08:00
YuanSheng Wang
0bac20f4d4
feature: implemented plugin limit-conn. (#75)
* feature: implemented plugin `limit-conn`.
* luarocks: updated the library `lua-resty-ngxvar` version to 0.3.
2019-06-11 17:31:40 +08:00
Yuansheng
a25c55bba1 luarocks: used branch master for version 0.5 now. 2019-06-11 14:29:21 +08:00
Yuansheng
73640f96a9 makefile: added default section. 2019-06-11 12:21:49 +08:00
YuanSheng Wang
45e28199a9
feature: supported consistent hash for dynamic load balancing. (#69)
* feature: supported consistent hash for dynamic load balancing.
2019-06-11 12:20:57 +08:00
orangleliu
7afc7384c9 doc: fix 2019-06-11 11:18:54 +08:00
Yuansheng
a66c393536 bugfix: supported for the json library encoding cdata type. 2019-06-11 11:16:03 +08:00
Yuansheng
6fbb06eb33 optimize: reduced the similar code. 2019-06-11 10:20:13 +08:00
WenMing
9b901727af
CI: added luacheck in CI. (#68) 2019-06-11 09:38:00 +08:00
Yuansheng
16e5b64a37 bugfix: used smaller timeout for etcd, avoided socket leak. 2019-06-11 07:41:49 +08:00
WenMing
1737fb702e
feature: added rapidjson for schema validation. (#67) 2019-06-10 23:41:43 +08:00
YuanSheng Wang
10e63c637e
optimize: returns a fetch function when creating a new lrucache object, which can be used directly to get cached data. (#66)
* optimize: returns a fetch function when creating a new `lrucache`
object, which can be used directly to get cached data.
* test: added test case for `core.lrucache` library.
2019-06-10 20:40:39 +08:00
Yuansheng
ff51c42e0a doc: fixed wrong typo. 2019-06-10 19:10:53 +08:00
Yuansheng
0ab3e53cb9 test: added test case about core.id and core.utils library. 2019-06-10 17:25:49 +08:00
Yuansheng
a41d54a653 change: added a global swith to control if enable the feature heartbeat.
optimize: used a shorter `user-agent` name.
2019-06-10 17:25:49 +08:00
Yuansheng
d5fa0598fa feature: generated an uuid for each apisix instance, and this uuid will
be reported to heartbeat service center.
2019-06-10 17:25:49 +08:00
Yuansheng
2e318e53c2 change: used GET method to report information. 2019-06-10 17:25:49 +08:00
Yuansheng
884120f180 test: added test case for core/timer library. 2019-06-10 17:25:49 +08:00
Yuansheng
c9d0879194 test: checked the error log.
plugin prometheus: renamed the share dict name to `prometheus-metrics`.
2019-06-10 17:25:49 +08:00
Yuansheng
ea5353a3e3 test: added tests for core/json library. 2019-06-10 17:25:49 +08:00