Skip to content
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

GitHub Action to test calendars #120

Closed
leog opened this issue Jun 18, 2022 · 3 comments
Closed

GitHub Action to test calendars #120

leog opened this issue Jun 18, 2022 · 3 comments

Comments

@leog
Copy link

leog commented Jun 18, 2022

Hello! First of all, thank you very much for your work, it is a very useful tool.

I was wondering how would a GitHub Action setup would be created around this docker version of Radicale in order to automate having a calendar created to be used by integration tests of a system using CalDav calendars.

I guess that once a service with Radicale is up, you can always automate creating a calendar through the admin UI, then configuring some events in the calendar programatically (no need to configure a calendar client as it's an automation use case) to then test if the system using CalDav interacts correctly with the calendar. Other than this approach, maybe there is a way to do most of this workflow already through some variable/instruction available from the configuration of the docker version.

Anyway, any guidance would be much appreciated, even if it is to confirm the approach I described :)

@tomsquest
Copy link
Owner

Hi @leog ,

I am understood well, you are proposting to add some end-to-end tests to the test suites to assert that Radicale is working properly.
You imagine a scenario that, given Radicale is running (the container, in the Python test), then some API calls could be made to create a calendar for example.

If I am correct in my understanding, I think this is a good idea!

Do you know/want to give it a try?

@leog
Copy link
Author

leog commented Jun 23, 2022

Hi @tomsquest.

Actually, I'm thinking about using radicale to test our integration with CalDav from our system for scheduling, and for that I wanted to know if there is a way to create a calendar spinning up radicale from docker instead of having to automate creating one through the admin website.

@tomsquest
Copy link
Owner

Ah this I don't know personnaly.
BUT, @silaslenz did a PR a while ago and provided a Python snippet to create events:
#77 (comment)

I hope this will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants