New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ejabberd: refactor module, add test #59731
Conversation
nixos/tests/ejabberd.nix
Outdated
client = { nodes, pkgs, ... }: { | ||
environment.systemPackages = let | ||
sendMessage = pkgs.writeScriptBin "send-message" '' | ||
#!/usr/bin/env python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#!/usr/bin/env python3 | |
#! ${(pkgs.python3.withPackages (ps: [ ps.sleekxmpp ])).interpreter} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This python script is lifted from the prosody test, so this should probably be fixed there, as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a necessity because both ways work fine. However, it would be nice to have a single file for the script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about something like this?
Seems like |
802f40c
to
b8d4914
Compare
@GrahamcOfBorg test ejabberd |
How does that even happen? It worked on aarch64 but not x86_64? It works fine on my laptop and desktop. |
|
It's worth a try. I don't know if it makes a difference though, since it was already working for me on my machines. I mean, how and why would the mode of the directory influence the mode of its contents? |
It was just a guess based on the error message. With the current mode of the directory the file is accessible to more than just the owner. I'm also confused by this error because it worked on my machine as well. |
@ajs124 Fantastic work! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! I did not test it though since I do not run ejabberd yet.
You might want to change the last commit message to use nixos/ejabberd
.
@GrahamcOfBorg test ejabberd |
Motivation for this change
I run ejabberd.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)