apisix/t/node
YuanSheng Wang 748e33756b
refactory: collect upstream logic and put them in a single file. (#1734)
feature: support dynamic upstream in plugin.

here is a mini  example in `access` phase of plugin:

```lua
    local up_conf = {
        type = "roundrobin",
        nodes = {
            {host = conf.upstream.ip, port = conf.upstream.port, weight = 1},
        }
    }

    local ok, err = upstream.check_schema(up_conf)
    if not ok then
        return 500, err
    end

    local matched_route = ctx.matched_route
    upstream.set(ctx, up_conf.type .. "#route_" .. matched_route.value.id,
                 ctx.conf_version, up_conf, matched_route)
    return
```
2020-06-22 14:21:42 +08:00
..
chash-balance.t bugfix: fail to get the http request header by ngx.var. * (#1348) 2020-03-27 23:13:46 +08:00
chash-hashon.t bugfix: fail to get the http request header by ngx.var. * (#1348) 2020-03-27 23:13:46 +08:00
consumer-plugin.t license: add ASF header. (#743) 2019-10-31 09:27:28 +08:00
filter_func.t test: add test case for route with filter_func. (#1683) 2020-06-11 11:03:02 +08:00
global-rule.t fix: skip tombstone mark when iterating the global values (#1517) 2020-04-28 17:25:55 +08:00
healthcheck-ipv6.t change: don't strip square brackets from the IPv6 (#822) 2019-11-11 09:49:22 +08:00
healthcheck-multiple-worker.t license: add ASF header. (#743) 2019-10-31 09:27:28 +08:00
healthcheck-stop-checker.t license: add ASF header. (#743) 2019-10-31 09:27:28 +08:00
healthcheck.t bugfix: init clean_handlers when add new item from etcd. (#1412) 2020-04-28 16:01:04 +08:00
hosts.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
invalid-route.t bugfix: should not drop the error msg of dns_parse. (#1398) 2020-04-06 11:04:09 +08:00
invalid-service.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
invalid-upstream.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
merge-route.t bugfix: check if the service's upstream node is host. (#1402) 2020-04-12 09:31:58 +08:00
not-exist-service.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
not-exist-upstream.t refactory: collect upstream logic and put them in a single file. (#1734) 2020-06-22 14:21:42 +08:00
remote_addrs.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
remote-addr-ipv6.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
remote-addr.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
route-domain-with-local-dns.t test: fix regex usage in some cases (#1504) 2020-04-26 10:43:08 +08:00
route-domain.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
route-filter-func.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
route-host.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
route-uris.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
rr-balance.t license: add ASF header. (#743) 2019-10-31 09:27:28 +08:00
sanity-radixtree.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
timeout-upstream.t license: add ASF header. (#743) 2019-10-31 09:27:28 +08:00
upstream-array-nodes.t test: updated style. (#1606) 2020-05-22 21:34:58 +08:00
upstream-domain.t test: wait a longer time. (#1323) 2020-03-23 00:03:51 +08:00
upstream-ipv6.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00
upstream-websocket.t feature: supported to enable Websocket in upstream object (#1051) 2020-01-14 14:37:24 +08:00
upstream.t test: reindex by tools reindex. (#1519) 2020-04-28 18:54:14 +08:00
vars.t change: update resty-radixtree to version 1.9 . (#1730) 2020-06-19 12:24:52 +08:00
wildcard-host.t change: responsed a better tip when failed to match any route. (#1013) 2020-01-03 10:11:37 +08:00