Module: TddiumConstant::Text::Process

Defined in:
lib/tddium/constant.rb

Constant Summary collapse

SSH_KEY_NEEDED =
"\nIt looks like you haven't authorized an SSH key to use with Solano CI.\n\n"
DEFAULT_KEY_ADDED =
"SSH key authorized."
NO_KEYS =
"No authorized keys."
ADD_KEYS_ADD =
"Adding key '%s'"
ADD_KEYS_ADD_DONE =
<<EOF
Authorized key '%s'.

Assuming your private key is in %s, you can just add the following 
to ~/.ssh/config to use this new key with Solano CI:

# Solano CI SSH Config
Host %s
  IdentityFile %s
  IdentitiesOnly yes
EOF
ADD_KEYS_GENERATE =
"Generating key '%s'"
ADD_KEYS_GENERATE_DONE =
<<EOF
Generated and authorized key '%s'.

Append the following to ~/.ssh/config to use this new key with Solano CI:

# Solano CI SSH Config
Host %s
  IdentityFile %s
  IdentitiesOnly yes
EOF
REMOVE_KEYS =
"Removing key '%s'"
REMOVE_KEYS_DONE =
"Removed key '%s'"
NO_CONFIG =
"No environment variables configured."
ADD_CONFIG =
"Adding config %s=%s to %s"
ADD_CONFIG_DONE =
"Added config %s=%s to %s"
REMOVE_CONFIG =
"Removing config '%s' from %s"
REMOVE_CONFIG_DONE =
"Removed config '%s' from %s"
CONFIG_EDIT_COMMANDS =
<<EOF

Use `tddium config:add <scope> <key> <value>` to set a config key.
Use `tddium config:remove <scope> <key>` to remove a key.

EOF
KEYS_EDIT_COMMANDS =
<<EOF

Use `tddium keys:add` to generate and authorize a new SSH keypair.
Use `tddium keys:remove` to remove an authorized key from Solano CI.

Use `ssh-keygen -lf <filename>` to print fingerprint of an existing public key.

EOF
TEST_PATTERN_INSTRUCTIONS =
<<EOF

>>> Solano CI selects tests to run by default (e.g., in CI) by matching against a
    list of Ruby glob patterns.  Use "," to join multiple globs.

    You can instead specify a list of test patterns in config/solano.yml.

    Read more here: https://docs.solanolabs.com/

EOF
NO_CONFIGURED_SUITE =
"Looks like you haven't configured Solano CI on this computer for %s/%s...\n"
FOUND_EXISTING_SUITE =
"Found a suite in Solano CI for\n\n%s\n\n(on branch %s)."
TERMINATE_INSTRUCTION =
">>> Press Ctrl-C to stop waiting.  Tests will continue running.\n"
INTERRUPT =
"Interrupted"
SCM_PUSH =
">>> Pushing changes to Solano CI..."
SCM_REPO_WAIT =
">>> Waiting for your repository to be prepared. Sleeping for 10 seconds..."
STARTING_TEST =
">>> Starting Session with %s tests..."
CHECK_TEST_STATUS =
">>> Use 'tddium status' to check on pending jobs"
FINISHED_TEST =
"Finished in %s seconds"
RUN_TDDIUM_WEB =
"\n>>> Run `tddium web` to open the latest test results in your browser.\n"
CHECK_TEST_REPORT =
">>> To view results, visit: %s"
FAILED_TESTS =
"Failed tests:"
SUMMARY_STATUS =
"Final result: %s."
EXISTING_SUITE =
"\nCurrent suite:\n"
USING_EXISTING_SUITE =
"Using suite '%s/%s'."
CREATING_SUITE =
"Creating suite '%s/%s'.  This will take a few seconds."
CREATING_SUITE_CI_DISABLED =
"Disabling automatic CI for this new branch."
CREATED_SUITE =
"\nCreated suite.\n"
PASSWORD_CONFIRMATION_INCORRECT =
"Password confirmation incorrect"
PASSWORD_CHANGED =
"Your password has been changed."
NEXT_STEPS =
"

Next, you should register your test suite and start tests by running:

$ tddium run

"
ALREADY_LOGGED_IN =
"You're already logged in"
LOGGED_IN_SUCCESSFULLY =
"Logged in successfully"
LOGGED_OUT_SUCCESSFULLY =
"Logged out successfully"
USING_SPEC_OPTION =
{:max_parallelism => "Max number of tests in parallel = %s",
:user_data_file => "Sending user data from %s",
:test_pattern => "Selecting tests that match '%s'",
:test_exclude_pattern => "Excluding tests that match '%s'"}
REMEMBERED =
" (Remembered value)"
UPDATED_SUITE =
"Updated suite successfully."
UPDATED_TEST_PATTERN =
"Updated test pattern to '%s'"
UPDATED_TEST_EXCLUDE_PATTERN =
"Updated test exclude pattern to '%s'"
UPDATED_RUBY_VERSION =
"Updated ruby version to '%s'"
UPDATED_BUNDLER_VERSION =
"Updated bundler version to '%s'"
UPDATED_PYTHON_CONFIG =
"Updated Python configuration:\n%s"
UPDATED_TEST_CONFIGS =
"Updated test configurations:\n%s"
DEPENDENCY_VERSION =
"... Detected %s %s"
CONFIGURED_VERSION =
"Configured %s %s from %s"
CONFIGURED_PATTERN =
<<EOF;
... Configured test pattern from %s:

%s

>>> To change the pattern:
    1. Edit %s
    2. Run `tddium suite --edit` again.
EO
CONFIGURED_EXCLUDE_PATTERN =
<<EOF;
... Configured test exclude pattern from %s:

%s

>>> To change the pattern:
    1. Edit %s
    2. Run `tddium suite --edit` again.
EO
DETECTED_BRANCH =
"... Detected branch %s"
SETUP_CI =
<<EOF;

>>> To set up Hosted CI, enter a git URL to pull from. 
    You can also set a git URL to push to after tests pass.

>>> Set both pull and push URLs to 'disable' to disable hosted CI completely.

EO
SETUP_CAMPFIRE =
<<EOF;


EO
ADDING_MEMBER =
"Adding %s as %s..."
ADDED_MEMBER =
"Added %s"
REMOVING_MEMBER =
"Removing %s. This may take a few seconds..."
REMOVED_MEMBER =
"Removed %s"
USING_ACCOUNT_FROM_FLAG =
"Using organization '%s' (from command line)."
USING_ACCOUNT =
"Using organization '%s'."
CONFIRM_DELETE_SUITE =
<<EOF.rstrip
Are you sure you want to delete the suite %s/%s
in organization %s?
This will delete all sessions associated with this suite, and cannot be un-done.
y/[n]:
EOF
SUITE_IN_MULTIPLE_ACCOUNTS =
"The suite %s/%s exists in multiple organization:"
SUITE_IN_MULTIPLE_ACCOUNTS_PROMPT =
"Which organization do you want to delete it from:"
ABORTING =
"Aborting."
DESCRIBE_SESSION =
<<EOF

Session %d%s
Showing %s tests

EOF
RERUN_SESSION =
<<EOF

Re-run failures from a session with `tddium rerun <session_id>`.
Extract details of a session with `tddium describe <session_id>`.

EOF
OPTIONS_SAVED =
'Options have been successfully saved.'
NOT_SAVED_OPTIONS =
'There is no server information saved. Run `tddium server:set`.'
BUILD_CONTINUES =
'Session will continue running.'