Project

General

Profile

Actions

Idea #3163

closed

[Tests] Non-destructive test script suitable for running on a production VM/server in order to verify correct operation of basic features.

Added by Tom Clegg almost 10 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Low
Assigned To:
-
Category:
Git hosting
Target version:
-
Start date:
Due date:
Story points:
2.0

Description

The script should be suitable for invoking automatically (e.g., crontab, post-deploy) on a shell VM.
  • Run in an unprivileged account.
  • API token, API host:port, and Workbench URL are provided via environment variables or command line args.
  • Avoid doing anything that could be destructive or disruptive in a live environment. For example, don't try to delete existing non-writable objects in order to confirm that the permission system is working.

This version of the script should test a small subset of functionality. (Future versions will support bigger/different subsets, e.g., submit a long-running pipeline and make sure it produces the expected result.)

Specific things to check:
  • Store a tiny collection in Keep using arv-put, read it back with arv-get, and verify data integrity.
  • Get a list of shared/available projects. Make sure it's not empty.
  • Load the front page of Workbench. Make sure it has a "log in" button.

The objective here is to stub a starting point, rather than to start testing a lot of things right away. We'll start running the initial version regularly in live environments, then add more tests later.

Actions

Also available in: Atom PDF