Available Behat Test Steps

When writing tests, run ddev behat -dl for a list of available test steps.

The following test steps are currently available:

default | [When|*] I run the Rugged command :command
        | at `Rugged\RuggedContext::iRunRuggedCommand()`

default | [When|*] I fail to run the Rugged command :command
        | at `Rugged\RuggedContext::iFailRuggedCommand()`

default | [When|*] I try to run the Rugged command :command
        | at `Rugged\RuggedContext::iTryRuggedCommand()`

default | [Given|*] I rebuild fixtures
        | at `Rugged\RuggedContext::iRebuildFixtures()`

default | [Given|*] I reset Rugged
        | at `Rugged\RuggedContext::iResetRugged()`

default | [Given|*] I initialize a Rugged repo
        | at `Rugged\RuggedContext::iInitializeRuggedRepo()`

default | [Given|*] I generate a complete set of Rugged keys
        | at `Rugged\RuggedContext::iGenerateCompleteSetOfKeys()`

default | [Given|*] I generate complete partial root metadata
        | at `Rugged\RuggedContext::iGenerateCompletePartialRootMetadata()`

default | [Given|*] I generate signatures of partial root metadata
        | at `Rugged\RuggedContext::iGenerateSignaturesOfPartialRootMetadata()`

default | [When|*] I time the Rugged command :command
        | at `Rugged\RuggedContext::iTimeRuggedCommand()`

default | [When|*] I time :command
        | at `Rugged\RuggedContext::iTimeCommand()`

default | [Given|*] I publish TUF Metadata
        | at `Rugged\RuggedContext::iPublishTufMetadata()`

default | [Given|*] I register the Rugged repo with Composer
        | at `Rugged\RuggedContext::iRegisterRuggedRepoWithComposer()`

default | [Given|*] I use the :composer_file Composer file
        | at `Rugged\RuggedContext::iUseComposerFile()`

default | [Given|*] file :file contains :content
        | at `Rugged\RuggedContext::fileContains()`

default | [Given|*] the directory :directory exists
        | at `Rugged\RuggedContext::directoryExists()`

default | [Given|*] local Rugged directories exist
        | at `Rugged\RuggedContext::localRuggedDirectoriesExist()`

default | [Given|*] I wait :seconds seconds
        | at `Rugged\RuggedContext::iWaitSeconds()`

default | [When|*] I wait (up to :timeout seconds) for the file :filepath to change
        | at `Rugged\RuggedContext::iWaitForFileToChange()`

default | [When|*] I wait (up to :timeout seconds) for the file :filepath to contain :text
        | at `Rugged\RuggedContext::iWaitForFileToContain()`

default | [Given|*] I record the expiry timestamp from :filename
        | at `Rugged\RuggedContext::recordExpiryTimestamp()`

default | [Then|*] the expiry timestamp from :filename has not changed
        | at `Rugged\RuggedContext::ExpiryTimestampHasNotChanged()`

default | [Then|*] the expiry timestamp from :filename has changed
        | at `Rugged\RuggedContext::ExpiryTimestampHasChanged()`

default | [Then|*] the metadata version in :filename is :version
        | at `Rugged\RuggedContext::theMetadataVersionIs()`

default | [Then|*] the snapshot metadata version for :filename is :version
        | at `Rugged\RuggedContext::theSnapshotMetadataVersionIs()`

default | [Given|*] I invalidate the signature in :filename
        | at `Rugged\RuggedContext::iInvalidateTheSignatureIn()`

default | [Given|*] I invalidate all signatures in :filename
        | at `Rugged\RuggedContext::iInvalidateAllSignaturesIn()`

default | [When|*] I run :command
        | at `Rugged\RuggedContext::iRun()`

default | [When|*] I try to run :command
        | at `Rugged\RuggedContext::iTry()`

default | [When|*] I fail to run :command
        | at `Rugged\RuggedContext::iFail()`

default | [Then|*] I should get:
        | at `Rugged\RuggedContext::iShouldGet()`

default | [Then|*] I should not get:
        | at `Rugged\RuggedContext::iShouldNotGet()`

default | [Given|*] I am in a temporary directory
        | at `Rugged\RuggedContext::iAmInATemporaryDirectory()`

default | [Given|*] I am in the :dir directory
        | at `Rugged\RuggedContext::iAmInTheDirectory()`

default | [When|*] I execute :script
        | Execute a script in our project, even if we've moved to a temporary directory.
        | at `Rugged\RuggedContext::iExecute()`

default | [Then|*] executing :script should fail
        | at `Rugged\RuggedContext::executingShouldFail()`

default | [Given|*] executing :script fails
        | at `Rugged\RuggedContext::executingFails()`

default | [Then|*] the following files should exist:
        | at `Rugged\RuggedContext::theFollowingFilesShouldExist()`

default | [Then|*] the file :file exists
        | at `Rugged\RuggedContext::theFileExists()`

default | [Then|*] the file :file does not exist
        | at `Rugged\RuggedContext::theFileDoesNotExist()`

default | [Then|*] the :directory directory should exist
        | at `Rugged\RuggedContext::theDirectoryShouldExist()`

default | [Then|*] the :directory directory should not exist
        | at `Rugged\RuggedContext::theDirectoryShouldNotExist()`

default | [Given|*] the following files exist:
        | at `Rugged\RuggedContext::theFollowingFilesExist()`

default | [Then|*] the following files should not exist:
        | at `Rugged\RuggedContext::theFollowingFilesShouldNotExist()`

default | [Given|*] the following files do not exist:
        | at `Rugged\RuggedContext::theFollowingFilesDoNotExist()`

default | [Then|*] the file :file should contain:
        | at `Rugged\RuggedContext::theFileShouldContain()`

default | [Given|*] the file :file contains:
        | at `Rugged\RuggedContext::theFileContains()`

default | [Then|*] the file :file should not contain:
        | at `Rugged\RuggedContext::theFileShouldNotContain()`

default | [Given|*] the file :file does not contain:
        | at `Rugged\RuggedContext::theFileDoesNotContain()`

default | [Given|*] I record a reference hash of :filename
        | at `Rugged\RuggedContext::recordReferenceHash()`

default | [Then|*] file :filename has not changed
        | at `Rugged\RuggedContext::fileHasNotChanged()`

default | [Then|*] file :filename has changed
        | at `Rugged\RuggedContext::fileHasChanged()`

default | [Given|*] I record the timestamp of :filename
        | at `Rugged\RuggedContext::recordTimestamp()`

default | [Then|*] file :filename has not been updated
        | at `Rugged\RuggedContext::fileHasNotBeenUpdated()`

default | [Then|*] file :filename has been updated
        | at `Rugged\RuggedContext::fileHasBeenUpdated()`
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Rugged TUF Server is a trademark of Consensus Enterprises.