Commit Graph
33 Commits
Author SHA1 Message Date
devydaveanddevydave 550c9aa48f test: introduce local integration testing (#902)
continuous-integration/drone/push Build is passing
This PR adds a declarative integration testing setup which includes 2 local VMs client and server which can be started and stopped via a command. The VMs are run with QEMU and created by https://github.com/microvm-nix/microvm.nix
The key pair is generated for this use case and is safe to commit, it resolves the problem that the readFile function can only be used with git tracked files.

---------

Co-authored-by: devydave <yannick-dev@tutanota.com>
Reviewed-on: #902
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
Co-authored-by: devydave <bittedanke@tutanota.com>
2026-10-31 08:28:04 +00:00
moritz 27ca0cd21e test(app new): cover a commit that only exists on another branch
continuous-integration/drone/push Build is passing
2026-09-07 14:34:27 +00:00
decentral1se ea48917e6c test: ensure ssh-agent is configured
continuous-integration/drone/push Build is passing
See https://build.coopcloud.tech/toolshed/abra/3594/1/7
2026-02-17 12:54:40 +00:00
iexos 44bacc582b feat!: always publish on recipe release 2026-02-16 09:18:41 +00:00
iexos c85d8ee6d1 small fixes 2026-02-13 12:13:50 +01:00
ammaratef45 1d24107956 fix regexp for _remove_tags bats output
continuous-integration/drone/push Build is passing
2026-01-26 07:05:51 +00:00
ammaratef45 182fc41c58 added integration test
continuous-integration/drone/push Build is failing
2026-01-16 14:27:27 -08:00
3wordchant 0bb6d9609c Add test to make sure non-chaos hash deploy fails..
continuous-integration/drone/push Build is passing
..and make sure _ensure_env_version passes through variable correctly.
2025-09-03 14:25:42 -04:00
decentral1se 9c37b9b748 test: app move (basics) 2025-09-01 11:17:39 +02:00
decentral1se 60b3af1fa4 test: retrieve abra-test-recipe by hand now
continuous-integration/drone/push Build is passing
2025-08-18 06:32:41 +00:00
decentral1se 4193d63d23 test: advertise locally to avoid multiple ip error
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-08-17 14:04:00 +02:00
p4u1 e58a716fe1 feat(deploy): Simplifies deploy overview (#508)
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
This simplifies the deploy overview, to only show 3 version fields:
- CURRENT DEPLOYMENT
- CURRENT ENV
- NEW DEPLOYMENT

It also fixes a few errors around version detection

Reviewed-on: #508
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net>
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
2025-03-12 16:13:24 +00:00
decentral1se 64ad60663f test: adjust for new abra-test-recipe version
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See #470
2025-01-09 13:14:47 +00:00
decentral1se c88fc66c99 test: moar chaos stability 😌 [ci skip] 2025-01-05 16:12:06 +01:00
decentral1se 81cdc843ec fix: coop-cloud -> toolshed 2025-01-03 20:23:27 +01:00
decentral1se 008582c3d9 test: fixes for test suite post-cobra migrate
continuous-integration/drone/push Build is passing
See toolshed/organising#650
2024-12-27 20:44:07 +01:00
decentral1se 8b8e158664 test: int suite fixes
continuous-integration/drone/push Build is passing
2024-07-17 14:05:46 +02:00
decentral1se eb9894e5bb test: dont clone if exists [ci skip] 2024-07-16 23:51:28 +02:00
decentral1se a2116774e8 test: ensure catalogue in place [ci skip] 2024-07-16 23:46:02 +02:00
decentral1se 2014cd6622 test: less fragile integration suite [ci skip]
See coop-cloud/organising#584
See coop-cloud/organising#595
2024-07-02 12:16:58 +02:00
p4u1 9ec99c7712 test: return/echo from git helper functions
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-06-22 17:04:33 +02:00
decentral1se 43990b6fae test: use more plumbung for git output
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-06-21 17:10:12 +02:00
decentral1se 91ea2c01a5 fix: fix old app version deploy wrt. compose files
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See coop-cloud/organising#617
2024-06-21 16:14:40 +02:00
decentral1se 316fdd3643 fix: abra app new checks out latest version
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See coop-cloud/organising#618
2024-06-21 15:51:34 +02:00
p4u1anddecentral1se 40c0fb4bac fix-integration-tests (!403)
continuous-integration/drone/push Build is passing
In preparation for the new abra release, let's fix all integration tests

After merging, this needs to be cherry-picked into the release-0-9 branch.

  - [x] app_backup.bats (skip this one)
  - [x] app_check.bats (fixed by bd21014fed)
  - [x] app_cmd.bats (partially fixed in 08232b74f6), has known regression coop-cloud/organising#581
  - [x] app_config.bats (no changes needed)
  - [x] app_cp.bats (no changes needed)
  - [x] app_deploy.bats
  - [x] app_errors.bats (no changes needed)
  - [x] app_list.bats (no changes needed)
  - [x] app_logs.bats (no changes needed)
  - [x] app_new.bats (no changes needed)
  - [x] app_ps.bats (no changes needed)
  - [x] app_remove.bats (fixed by [2f29fbeb2e](coop-cloud/abra#403/commits/2f29fbeb2e018656413fa25f8615b7a98cdcb083))
  - [x] app_restart.bats (no changes needed
  - [x] app_restore.bats (fixed by [f2dd5afc38](coop-cloud/abra#403/commits/f2dd5afc38a25a8316899fa0c6d59499445868d7))
  - [x] app_rollback.bats (partially fixed by 6e99b74c24)
  - [x] app_run.bats (no changes needed)
  - [x] app_secret.bats (fixed by bd069d32f6)
  - [x] app_services.bats (no changes needed)
  - [x] app_undeploy.bats (no changes needed)
  - [x] app_upgrade.bats (no changes needed)
  - [x] app_version.bats (partially fixed by ad323ad2bd)
  - [x] app_volume.bats (fixed by [03c3823770](coop-cloud/abra#403/commits/03c38237707ae795b723180eb07a7edc84a8de35))
  - [x] autocomplete.bats (no changes needed)
  - [x] catalogue.bats (no changes needed)
  - [x] dirs.bats (no changes needed)
  - [x] install.bats (failes, but is expected)
  - [x] recipe_diff.bats (no changes needed)
  - [x] recipe_fetch.bats (no changes needed)
  - [x] recipe_lint.bats (fixed by [b6b0808066](coop-cloud/abra#403/commits/b6b0808066a11e4bcd77517ec39600d500bcb944))
  - [x] recipe_list.bats (no changes needed)
  - [x] recipe_new.bats (fixed by [0aac464ded](coop-cloud/abra#403/commits/0aac464ded6b43afb3ec37ade2f64d6191b9838f))
  - [x] recipe_release.bats (no changes needed)
  - [x] recipe_reset.bats (no changes needed)
  - [x] recipe_sync.bats (no changes needed)
  - [x] recipe_upgrade.bats (fixed by [ab86904cf4](coop-cloud/abra#403/commits/ab86904cf45db89c7c189ca1fd9971909bd446dd))
  - [x] recipe_version.bats (fixed by 81897bf4da)
  - [x] server_add.bats
  - [x] server_list.bats
  - [x] server_prune.bats (no changes needed)
  - [x] server_remove.bats
  - [x] upgrade.bats
  - [x] version.bats (no changes needed)

Co-authored-by: decentral1se <cellarspoon@riseup.net>
Reviewed-on: coop-cloud/abra#403
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net>
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
2024-03-11 13:27:21 +00:00
p4u1 af8cd1f67a feat: abra release now asks for a release note (!393)
continuous-integration/drone/push Build is passing
This implements coop-cloud/organising#540 by checking if a`release/next` file exists and if so moves it to `release/<tag>`. When no release notes exists it prompts for them.

Reviewed-on: coop-cloud/abra#393
Reviewed-by: moritz <moritz.m@local-it.org>
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net>
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
2023-12-12 14:46:20 +00:00
decentral1se 316b59b465 test: support local-first testing
continuous-integration/drone/push Build is failing
Cherry-picked from coop-cloud/abra#389

Thanks @p4u1.
2023-11-27 10:41:46 +01:00
decentral1se b4fd39828f test: abra-integration-test-recipe -> abra-test-recipe
continuous-integration/drone/push Build is passing
See coop-cloud/abra-test-recipe#3
2023-10-05 14:22:11 +02:00
decentral1se c646263e9e fix: validate COMPOSE_FILE
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
See coop-cloud/organising#468.
See coop-cloud/organising#376.
2023-10-04 13:27:04 +02:00
decentral1se e1f900de14 test: fix app_secret generate tests [ci skip] 2023-09-25 16:32:16 +02:00
decentral1se c065ceb1f0 test: secret generation & --offline/chaos handling tests
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2023-09-25 10:33:15 +02:00
decentral1se ce7b4733d7 test: tag/git helpers & refactor [ci skip] 2023-09-23 23:19:49 +02:00
decentral1se 0be532692d test: moar integration tests [ci skip]
continuous-integration/drone/pr Build is failing
2023-09-20 13:51:06 +02:00