-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add basic integration test for each module
- Loading branch information
Showing
20 changed files
with
148 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Add docker host | ||
lucasheld.uptime_kuma.docker_host: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
name: Docker host 1 | ||
dockerType: socket | ||
dockerDaemon: /var/run/docker.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all docker hosts | ||
lucasheld.uptime_kuma.docker_host_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: login | ||
lucasheld.uptime_kuma.login: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Add a maintenance | ||
lucasheld.uptime_kuma.maintenance: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
title: maintenance 1 | ||
strategy: single | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all maintenances | ||
lucasheld.uptime_kuma.maintenance_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- name: Add a monitor | ||
lucasheld.uptime_kuma.monitor: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
type: keyword | ||
name: Monitor 1 | ||
url: http://127.0.0.1 | ||
keyword: healthy | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all monitors | ||
lucasheld.uptime_kuma.monitor_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- name: Add notification | ||
lucasheld.uptime_kuma.notification: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
name: Notification 1 | ||
type: telegram | ||
isDefault: false | ||
applyExisting: false | ||
telegramBotToken: 1111 | ||
telegramChatID: 2222 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all notifications | ||
lucasheld.uptime_kuma.notification_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- name: Add proxy | ||
lucasheld.uptime_kuma.proxy: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
protocol: http | ||
host: 127.0.0.1 | ||
port: 8080 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all proxies | ||
lucasheld.uptime_kuma.proxy_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- name: Enable beta version update check | ||
lucasheld.uptime_kuma.settings: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
checkBeta: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get settings | ||
lucasheld.uptime_kuma.settings_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: Setup | ||
lucasheld.uptime_kuma.setup: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Add status page | ||
lucasheld.uptime_kuma.status_page: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
slug: testslug | ||
title: testtitle | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all status_pages | ||
lucasheld.uptime_kuma.status_page_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Add tag | ||
lucasheld.uptime_kuma.tag: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 | ||
name: Tag 1 | ||
color: "#ff0000" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- name: get all tags | ||
lucasheld.uptime_kuma.tag_info: | ||
api_url: http://127.0.0.1:3001 | ||
api_username: admin | ||
api_password: secret123 |