A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/sentinel/docs/commands/test below:

Command: test | Sentinel | HashiCorp Developer

The sentinel test command runs policies against the Sentinel test framework.

To learn more about testing, see the testing policies page.

Usage: sentinel test [options] [PATH] ...

This command runs the defined test cases against a set of policies.

The test cases are expected to live at the path test/<policy>/*.[hcl|json] relative to the policy being tested. <policy> should be the name of the policy excluding the file extension. The files should be in the configuration file structure. The test key is used for assertions. Test cases ignore the root level configuration file and must have all required configuration provided in each test case.

The PATH arguments specified may be a list of zero or more files or directories. When no arguments are given, it defaults to the current directory. When a directory is given, all policies ending with the extension .sentinel are tested.

The command-line flags are all optional. The list of available flags are:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4