

One way or another, it should allow http and https access to two files: To pass this test you need a web daemon on your ejabberd XMPP server. XEP-0156: Discovering Alternative XMPP Connection Methods (HTTP) Once you configure ejabberd XMPP server with custom_headers, it will pass this XMPP compliance test. Execute the following command: chown ejabberd:ejabberd /var/www/upload Make sure /var/www/upload directory is owned by ejabberd. "Access-Control-Allow-Headers": "Content-Type" "Access-Control-Allow-Origin": "GET,HEAD,PUT,OPTIONS" Make sure it’s allowed by your server’s firewall. Remember that file upload operates on port 5443. I also recommend creating a dedicated directory at /var/No PHP scripts or web servers. You need to configure ejabberd to add custom headers to pass this XMPP compliance test. XEP-0363: HTTP File Upload (CORS Headers) I’m assuming the configuration from my previous two tutorials on setting up your ejabberd real time IM server and configuring ejabberd video & voice calling. To get a 100% result, you need to configure a few things to pass the remaining 3 tests. Luckily, Daniel Gultsch and Rishi Raj created an XMPP compliance test that will assist you in this process.Įjabberd XMPP server passes most of the XMPP compliance test checks out-of-the box, in default configuration. Testing your ejabberd configuration can be a tricky task. If you have specific questions, first be sure to consult the official ejabberd documentation. Your best place to start is this hands-on ejabberd installation tutorial and this ejabberd STUN/TURN tutorial. But configuring everything requires several steps. I basically want to run some specific functions in the module for various inputs and make sure the output is correct and I do need the server part running for this?Īny suggestions/pointers would be really appreciated.Your ejabberd XMPP server is a powerful piece of software. home/ec2-user/ejabberd/logs/raw.log 2>&1 failed with error: 1 and output:ĮRROR: ct failed while processing /home/ec2-user/ejabberd: rebar_abortĪlso, is there a recommended framework to write ejabberd/erlang unit tests? include /home/ec2-user/ejabberd/deps/xmpp/include >

include /home/ec2-user/ejabberd/deps/fast_xml/include include /home/ec2-user/ejabberd/include -include /home/ec2-user/ejabberd/deps/p1_utils/include group mnesia -ct_hooks cth_surefire -include /home/ec2-user/ejabberd/tools cover /home/ec2-user/ejabberd/cover.spec -suite test/ejabberd_SUITE.erl "/home/ec2-user/ejabberd/logs" -env TEST_DIR "/home/ec2-user/ejabberd/test" "/usr/local/bin/rebar" "/home/ec2-user/ejabberd/." -include "/home/ec2-user/ejabberd/include" "/home/ec2-user/ejabberd/deps/lager/ebin" "/usr/local/bin/rebar/rebar/ebin" "/home/ec2-user/ejabberd/deps/uuid/ebin" "/home/ec2-user/ejabberd/deps/erlcloud/ebin" "/home/ec2-user/ejabberd/deps/xmpp/ebin" "/home/ec2-user/ejabberd/deps/cache_tab/ebin" "/home/ec2-user/ejabberd/deps/pkix/ebin" "/home/ec2-user/ejabberd/deps/p1_oauth2/ebin"

"/home/ec2-user/ejabberd/deps/mqtree/ebin" "/home/ec2-user/ejabberd/deps/eimp/ebin" "/home/ec2-user/ejabberd/deps/p1_mysql/ebin" "/home/ec2-user/ejabberd/deps/p1_acme/ebin" "/home/ec2-user/ejabberd/deps/meck/ebin" "/home/ec2-user/ejabberd/deps/goldrush/ebin" "/home/ec2-user/ejabberd/deps/eini/ebin" "/home/ec2-user/ejabberd/deps/jsx/ebin" "/home/ec2-user/ejabberd/deps/lhttpc/ebin" "/home/ec2-user/ejabberd/deps/proper/ebin" "/home/ec2-user/ejabberd/deps/base16/ebin" "/home/ec2-user/ejabberd/deps/fast_xml/ebin" "/home/ec2-user/ejabberd/deps/unicode_util_compat/ebin"

"/home/ec2-user/ejabberd/deps/ezlib/ebin" "/home/ec2-user/ejabberd/deps/fast_tls/ebin" "/home/ec2-user/ejabberd/deps/fast_yaml/ebin" "/home/ec2-user/ejabberd/deps/stringprep/ebin" "/home/ec2-user/ejabberd/deps/p1_utils/ebin" "/home/ec2-user/ejabberd/deps/base64url/ebin" "/home/ec2-user/ejabberd/deps/yconf/ebin" "/home/ec2-user/ejabberd/deps/jiffy/ebin" "/home/ec2-user/ejabberd/deps/jose/ebin" "/home/ec2-user/ejabberd/deps/idna/ebin" I installed rebar and made sure to have a running ejabberd server and followed the steps here to:īut I get the following error: ejabberd]$CT_BACKENDS=mnesia rebar ct suites=ejabberd groups=mnesiaĮRROR: ct_run -noshell -pa "/home/ec2-user/ejabberd/ebin" How do I run ejabberd tests in the test folder?
