Gavin Chappell g-a-c
  • UK
  • Joined on 2022-06-08
g-a-c opened issue borgmatic-collective/borgmatic#565 2022-07-23 13:17:39 +00:00
Check frequency can cause an invalid set of options
g-a-c commented on issue borgmatic-collective/borgmatic#561 2022-07-06 09:06:52 +00:00
Order of operations between normalise and override

No need to apologise, it's a breakage of my own making since I probably didn't bother reading the release notes last time I upgraded :)

It's just an unfortunate one because the config being…

g-a-c opened issue borgmatic-collective/borgmatic#561 2022-07-05 21:05:55 +00:00
Order of operations between normalise and override
g-a-c created branch feat/ntfy-self-hosted-auth in g-a-c/borgmatic 2022-07-03 20:50:47 +00:00
g-a-c pushed to feat/ntfy-self-hosted-auth at g-a-c/borgmatic 2022-07-03 20:50:47 +00:00
7a9c17928a add support for basic auth on self-hosted instances
673ed1a2d3 Clarify check frequency documentation in regards to multiple configuration files.
992f62edd2 Bump version for release.
f1ffa1da1d Add another recommended flag to the backup documentation (#554).
457ed80744 Fix environment variable plumbing so options in one configuration file aren't used for others (#555).
Compare 10 commits »
g-a-c deleted branch feat/ntfy from g-a-c/borgmatic 2022-06-09 21:04:23 +00:00
g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 20:13:05 +00:00
add a hook for sending push notifications via ntfy.sh

I've squashed everything down to a single commit instead of my chopping and hacking around, 100% code coverage, black, isort and flake8 are all happy so I think this is ready for reviewing…

g-a-c pushed to feat/ntfy at g-a-c/borgmatic 2022-06-09 20:11:09 +00:00
a8b8d507b6 add a hook for sending push notifications via ntfy.sh
3561c93d74 Fix Healthchecks tests that leak global state, breaking downstream tests (discovered in #543).
Compare 2 commits »
g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 19:56:09 +00:00
add a hook for sending push notifications via ntfy.sh

It is an enum, but my understanding (which appears to be backed up by my testing) is that when it's retrieved, because the enum is capitalised on the left hand side the .name is uppercase,…

g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 19:44:11 +00:00
add a hook for sending push notifications via ntfy.sh

Sorry you had to discover this the hard way.

💩 happens! Sounds like it was an experience for both of us.

That does make a ton of sense, because when I ran just my ntfy test to…

g-a-c pushed to master at g-a-c/borgmatic 2022-06-09 19:32:46 +00:00
3561c93d74 Fix Healthchecks tests that leak global state, breaking downstream tests (discovered in #543).
g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 19:26:12 +00:00
add a hook for sending push notifications via ntfy.sh

I think one of the auto-formatters may have done this, as I don't remember doing it for these simple single-element dicts.

I'll clean it up and see if it comes back when black or flake8

g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 19:24:52 +00:00
add a hook for sending push notifications via ntfy.sh

Yeah, I actually wasn't aware of the f-string until I was poking around in other modules to try and work out that test issue, but I do find that cleaner to read so I think I'll refactor to use those.

g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 14:02:46 +00:00
add a hook for sending push notifications via ntfy.sh

So I realised I was missing one last test to get 100% code coverage, which is the "connection error" test. I stole the one from one of the other tests as this seemed a relatively simple one, but…

g-a-c pushed to feat/ntfy at g-a-c/borgmatic 2022-06-09 13:58:11 +00:00
e0be85cbcb having trouble with this last test...
g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 11:54:07 +00:00
add a hook for sending push notifications via ntfy.sh

Too much multi-tasking with my day job and a couple of force-pushed later, and this should be reviewable...the tests don't exhaustively cover every possible scenario but they do cover:

-…

g-a-c pushed to feat/ntfy at g-a-c/borgmatic 2022-06-09 11:36:43 +00:00
d0bb740171 add some unit tests for ntfy hook
b6a0b53fef removed some redundant lines of code
Compare 2 commits »
g-a-c commented on pull request borgmatic-collective/borgmatic#543 2022-06-09 11:29:50 +00:00
add a hook for sending push notifications via ntfy.sh

This is not really necessary, but had to be done to keep flake8 happy because otherwise borgmatic.hooks.monitor was imported due to being required by the tests, even though it was not referenced within this hook directly.

g-a-c pushed to feat/ntfy at g-a-c/borgmatic 2022-06-09 11:27:18 +00:00
a7a99799fc add some unit tests for ntfy hook
g-a-c pushed to feat/ntfy at g-a-c/borgmatic 2022-06-09 11:25:08 +00:00
4a91f6a741 add some unit tests for ntfy hook
e0cf0c7d76 removed some redundant lines of code
Compare 2 commits »