# zriz > zriz runs end-to-end tests of your own app: HTTP calls and database checks, from pipeline files in your repo. The CLI is `zz`. Each command prints one JSON object. Its `hints` name the next command. **Start.** Run these in the folder of your service: curl -fsSL https://zriz.io/install | sh ~/.local/bin/zz login ~/.local/bin/zz init --url http://localhost:3000 ~/.local/bin/zz run hello In a folder that has `.zriz` already, run `zz` to see its pipelines, then `zz run `. `zz run` with no name runs them all. **Done** is a run with status `pass`. Nothing less. ## Rules - `zz` is right. If a page and `zz` differ, do what `zz` says. - Run `zz guide` before you write a pipeline. Do not guess the format. - To log in, run `zz login --no-wait`. Give the URL and the code to your user. Then run `zz login` again. - Keep secrets out of resource files. Put them in `environments/local.json` and list them in `sensitive`. Only `local` may hold a secret value. For another env, set the name in the process environment. In CI, use a secret of the same name. `zz validate` gives `secret-in-file` for a value in any other env file. - `zz:` at the top of a page is the lowest version the page is true for. `zz version` shows yours. `zz upgrade` updates it. - `draft` means not tested or not approved. Tell your user before you use it. - `Your user must` marks a step you cannot do. Ask your user. - If a step fails and `If not` does not name what you see, stop and tell your user. - A list of supported items is complete. What is not in it is not supported. - A failed run names a reason. Read `https://zriz.io/docs/errors.md#`. - In a code block, `` is text you replace. `sh` and `sql` are things to run. `json` and `yaml` are files. - Compare `You should see` with the output line by line, in order. The output can have more lines. `` there matches any text. ## Pages and questions - [zriz quick start](https://zriz.io/docs.md): Install zz, log in, make a project, and run the first test. The work is done when the run has status pass. (draft) - [zriz pipelines](https://zriz.io/docs/pipelines.md): zriz runs API tests: a pipeline calls HTTP endpoints and SQL queries, then checks the replies. zz runs pipelines. - [Errors of zriz](https://zriz.io/docs/errors.md): A run that does not pass has a cause. This page has one entry for each of the 61 reason words. 53 are for a run, 5 are for zz and 3 are op words. - [Deploy a zriz runner](https://zriz.io/docs/runner.md): A runner calls your resources from inside your network. zz has one inside for http and sql. Deploy one for browser and cli, or for a shared env. (draft) - [Run zriz tests in GitHub Actions](https://zriz.io/docs/ci.md): Run zz ci github --env staging in your repository. It writes the workflow and stores a CI key as a GitHub secret. (draft) - [Team, e-mail and limits of zriz](https://zriz.io/docs/team.md): An admin invites people with zz members invite. Run e-mail is off by default, and a member turns it on with the Account switch. The free tier gives 50 runs a day. (draft) - [How do I invite a person?](https://zriz.io/docs/team.md#invite): An admin runs zz members invite . The invite gives the role member and stays open for 7 days. (draft) - [What can each role do?](https://zriz.io/docs/team.md#roles): An admin does all. A member starts runs but cannot manage members or keys. A viewer only reads. (draft) - [Which org does zz use?](https://zriz.io/docs/team.md#which-org): The order is: --org , ZZ_KEY in CI, org in project.json, the only login. (draft) - [What is a key?](https://zriz.io/docs/team.md#keys): A key is a credential. It has one of three kinds: personal (zz login), ci (zz ci github) and runner (zz runners init). (draft) - [When does zriz send e-mail?](https://zriz.io/docs/team.md#email): Run e-mail is off by default. To turn it on, open the page Account of the web app and use the switches in the section Notifications. (draft) - [Where do I set e-mail choices?](https://zriz.io/docs/team.md#choices): On the page Account of the web app, in the section Notifications. Each group has a switch. (draft) - [What does the web app show?](https://zriz.io/docs/team.md#web-app): Home (/app) shows the status of the runs of CI. Runs lists all runs. (draft) - [How many runs can I do?](https://zriz.io/docs/team.md#runs-a-day): The free tier gives each org 50 runs a day and one run at a time. The count starts again at 00:00 UTC. (draft) - [What happens at the limit?](https://zriz.io/docs/team.md#at-the-limit): zz run ends with too-many-runs and the time of the reset, 00:00 UTC. In CI, the job fails with zriz limit, not your tests. This job stays red until then. (draft) - [How long does zriz keep a run?](https://zriz.io/docs/team.md#keep-runs): The free tier keeps a run for 7 days after it ends. Then the cloud removes it. A run in work stays. (draft) - [How do I share with the team?](https://zriz.io/docs/team.md#space): Members of an org share a space. zz space inbox reads new posts. zz space post "" --ask --body "..." asks the team. (draft) - [Is zriz safe? Security and your data](https://zriz.io/docs/security.md): zriz is built so that database passwords and connection strings stay in your network. A value that you do not list in sensitive goes to the cloud. (draft) - [Does the cloud see my database password?](https://zriz.io/docs/security.md#database-password): No, for a database connection. The runner holds the connection string, and the cloud has no database driver. (draft) - [What never leaves my network?](https://zriz.io/docs/security.md#never-leaves): The connection of an SQL resource, the base-url of an HTTP resource, and each value whose name is in sensitive. (draft) - [What goes to zriz.io?](https://zriz.io/docs/security.md#goes-to-zriz): The pipeline file, the resource files without base-url and connection, and the env values not in sensitive. (draft) - [Which connections does the runner make?](https://zriz.io/docs/security.md#outbound): Outbound connections only: to zriz.io, and to the resources in its config. Nothing listens. You open no port. (draft) - [What can the runner do?](https://zriz.io/docs/security.md#runner-may): Only what the allowlist in its config permits. A pipeline cannot make the runner call another target. (draft) - [Can a zriz test change my data?](https://zriz.io/docs/security.md#change-data): Yes, when a step writes. An HTTP, cli or browser step can change data. An SQL step on a resource with read-only cannot. (draft) - [Is my data kept apart from other orgs?](https://zriz.io/docs/security.md#data-scope): Yes. Each record in the cloud belongs to one org. Each query reads the records of one org only. (draft) - [What do the logs of zriz hold?](https://zriz.io/docs/security.md#logs): Ids, kinds, reasons, and times. They hold no request body, no reply body, no key, and no e-mail. (draft) - [Where does a runner run?](https://zriz.io/docs/security.md#runner-place): zz has a runner inside for http and sql. It runs on your computer and opens no port. A deployed runner never has zz next to it. (draft) - [Where is the code?](https://zriz.io/docs/security.md#where-is-the-code): The runner library is open source (Apache 2): github.com/ZrizTech/runner. zz is not open source. (draft) - [Which resources does zriz test?](https://zriz.io/docs/security.md#supported): Four types: http, sql (Postgres and MySQL), browser and cli. It tests no other type and no other database. (draft) - [Which systems does zz run on?](https://zriz.io/docs/security.md#operating-systems): macOS and Linux, on arm64 and x86_64. There is no install for Windows. zz asks no question, so it runs in CI. (draft) - [How do I report a security problem?](https://zriz.io/docs/security.md#report): Send an e-mail to security@zriz.io. We answer in 3 work days. (draft) ## Learn - [Learn API testing](https://zriz.io/learn.md): Short lessons on API and database tests. Each lesson solves one test problem with one zriz pipeline that you can copy.