Open 11megha123 opened 2 years ago
cc @fffonion / @lukego
++nitish ,
From: Colin Hutchinson @.> Reply-To: "Kong/docs.konghq.com" @.> Date: Wednesday, 11 May 2022 at 6:21 PM To: "Kong/docs.konghq.com" @.> Cc: Megha Goyal @.>, Author @.***> Subject: Re: [Kong/docs.konghq.com] Kong Performace testing framework (Issue #3923)
External Email. Treat hyperlinks and attachments in this email with caution.
cc @fffonionhttps://github.com/fffonion / @lukegohttps://github.com/lukego
— Reply to this email directly, view it on GitHubhttps://github.com/Kong/docs.konghq.com/issues/3923#issuecomment-1123720426, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZDX3IICZ3NW5CG5UEVV2CLVJOUMPANCNFSM5VUBDATQ. You are receiving this because you authored the thread.Message ID: @.***> “CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.”
@11megha123 You will need the bin/busted
script under kong repo to invoke test, instead of using the global busted
script.
@fffonion - tested with the same too - but getting same error
020-sandbox_spec.lua 06-timestamp_spec.lua 11-reports_spec.lua 17-concurrency_spec.lua 02-rockspec_meta_spec.lua 07-api_helpers_spec.lua 12-plugins_order_spec.lua 18-tools_uri_spec.lua 19:39:59 apb_user@:/usr/local/share/lua/5.1/kong/kong2.5/kong-release-2.5.x/spec/01-unit$ /usr/local/bin/busted test_spec.lua ✱ 0 successes / 0 failures / 1 error / 0 pending : 0.002051 seconds
Error → /usr/local/share/lua/5.1/spec/helpers/perf/logger.lua @ 14 suite test_spec.lua /usr/local/share/lua/5.1/spec/helpers/perf/logger.lua:14: attempt to index global 'ngx' (a nil value)
@11megha123 Try use the bin/busted
script shipped with Kong source tree (https://github.com/Kong/kong/blob/master/bin/busted).
@fffonion - thanks it resolved the issue. But pls improve the performance doc - it create lot of confusion with busted . 2)please add repo link too- https://github.com/Kong/kong
Where is the problem?
https://docs.konghq.com/gateway/latest/plan-and-deploy/performance-testing-framework/
What happened?
I Tried to execute lua script with kong performace testing framework as given in the above link: but on execution by following the steps. : got below error
Error → /usr/local/share/lua/5.1/spec/helpers/perf/logger.lua @ 14 suite /usr/local/bin/test_spec.lua /usr/local/share/lua/5.1/spec/helpers/perf/logger.lua:14: attempt to index global 'ngx' (a nil value)
Though nginx and kong is running. Please check for the openrusty dependency in testing framework
What did you expect to happen?
The script should get executed
Code of Conduct and Community Expectations