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

Initial Icinga Notifications Support #25

Closed
wants to merge 2 commits into from

Conversation

oxzi
Copy link
Member

@oxzi oxzi commented Dec 20, 2023

  • Initial support for Icinga Notifications

    Inspired by the existing code for the Icinga DB, support for Icinga
    Notifications was added. Thus, there might be some level of code
    duplication between those two.

    The custom Icinga 2 configuration was sourced from the Icinga
    Notifications repository, but edited to not being parsed as a faulty Go
    template.

  • Update dependencies and gofmt code

    • Update all (transitive) Go dependencies
    • Update GitHub Actions
    • gofmt code, as also tested by GitHub Actions

I forked the repository and created the PR from a fork in my user's namespace as I don't have permissions to push to this repo.

- Update all (transitive) Go dependencies
- Update GitHub Actions
- gofmt code, as also tested by GitHub Actions
@cla-bot cla-bot bot added the cla/signed label Dec 20, 2023
oxzi added a commit to Icinga/icinga-notifications that referenced this pull request Dec 20, 2023
Heavily inspired by the already existing integration tests from Icinga
DB, the icinga-testing project was extended to support Icinga
Notifications[0].

Based on those changes, an initial integration test was implemented for
Icinga Notifications, currently just launching PostgreSQL, Icinga 2, and
Icinga Notifications, waiting for Icinga Notifications to scan the
available channels and write them into the database.

[0] Icinga/icinga-testing#25
@oxzi oxzi marked this pull request as draft December 21, 2023 15:20
@oxzi
Copy link
Member Author

oxzi commented Dec 21, 2023

Marked as draft as there might be still changes. Should be merged together - but before - Icinga/icinga-notifications#144.

oxzi added a commit to Icinga/icinga-notifications that referenced this pull request Jan 2, 2024
Heavily inspired by the already existing integration tests from Icinga
DB, the icinga-testing project was extended to support Icinga
Notifications[0].

Based on those changes, an initial integration test was implemented for
Icinga Notifications, currently just launching PostgreSQL, Icinga 2, and
Icinga Notifications, waiting for Icinga Notifications to scan the
available channels and write them into the database.

[0] Icinga/icinga-testing#25
@oxzi oxzi force-pushed the icinga-notifications-init branch from 8f5c4c4 to 04e31ac Compare January 3, 2024 09:54
@oxzi
Copy link
Member Author

oxzi commented Jan 3, 2024

Changed logic to use icinga-notification's Dockerfile.

oxzi added a commit to Icinga/icinga-notifications that referenced this pull request Jan 3, 2024
Heavily inspired by the already existing integration tests from Icinga
DB, the icinga-testing project was extended to support Icinga
Notifications[0].

Based on those changes, an initial integration test was implemented for
Icinga Notifications, currently just launching PostgreSQL, Icinga 2, and
Icinga Notifications, waiting for Icinga Notifications to scan the
available channels and write them into the database.

[0] Icinga/icinga-testing#25
Inspired by the existing code for the Icinga DB, support for Icinga
Notifications was added. Thus, there might be some level of code
duplication between those two.

The custom Icinga 2 configuration was sourced from the Icinga
Notifications repository, but edited to not being parsed as a faulty Go
template.
@oxzi oxzi force-pushed the icinga-notifications-init branch from 04e31ac to 091308c Compare January 3, 2024 16:22
@julianbrost
Copy link
Collaborator

  • Update dependencies and gofmt code

    • Update all (transitive) Go dependencies
    • Update GitHub Actions
    • gofmt code, as also tested by GitHub Actions

Would you mind making a separate PR for that? That should be faster to merge and then keeps this PR smaller and focused on topic.

I forked the repository and created the PR from a fork in my user's namespace as I don't have permissions to push to this repo.

This project missed some access rule for a team, should be fixed.

@oxzi
Copy link
Member Author

oxzi commented Jan 4, 2024

  • Update dependencies and gofmt code

    • Update all (transitive) Go dependencies
    • Update GitHub Actions
    • gofmt code, as also tested by GitHub Actions

Would you mind making a separate PR for that? That should be faster to merge and then keeps this PR smaller and focused on topic.

#26

I forked the repository and created the PR from a fork in my user's namespace as I don't have permissions to push to this repo.

This project missed some access rule for a team, should be fixed.

#27 as I am now using this repository as the git remote.

@oxzi oxzi closed this Jan 4, 2024
@oxzi oxzi deleted the icinga-notifications-init branch January 4, 2024 15:24
oxzi added a commit to Icinga/icinga-notifications that referenced this pull request Jan 9, 2024
Heavily inspired by the already existing integration tests from Icinga
DB, the icinga-testing project was extended to support Icinga
Notifications[0].

Based on those changes, an initial integration test was implemented for
Icinga Notifications, currently just launching PostgreSQL, Icinga 2, and
Icinga Notifications, waiting for Icinga Notifications to scan the
available channels and write them into the database.

[0] Icinga/icinga-testing#25
oxzi added a commit to Icinga/icinga-notifications that referenced this pull request Jan 12, 2024
Heavily inspired by the already existing integration tests from Icinga
DB, the icinga-testing project was extended to support Icinga
Notifications[0].

Based on those changes, an initial integration test was implemented for
Icinga Notifications, currently just launching PostgreSQL, Icinga 2, and
Icinga Notifications, waiting for Icinga Notifications to scan the
available channels and write them into the database.

[0] Icinga/icinga-testing#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants