Rename croneval

This commit renames croneval to elasticsearch-croneval
This commit is contained in:
Ryan Ernst 2018-04-11 08:27:16 -07:00
parent 7ba2defdbf
commit 6dbb7be067
5 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@ WARNING: While `cron` triggers are super powerful, we recommend using one of
the other schedule types if you can, as they are much more the other schedule types if you can, as they are much more
straightforward to configure. If you use `cron`, construct your `cron` straightforward to configure. If you use `cron`, construct your `cron`
expressions with care to be sure you are actually setting the schedule expressions with care to be sure you are actually setting the schedule
you want. You can use the <<croneval, `croneval`>> tool to validate you want. You can use the <<croneval, `elasticsearch-croneval`>> tool to validate
your cron expressions and see what the resulting trigger times will be. your cron expressions and see what the resulting trigger times will be.
===== Cron Expressions ===== Cron Expressions
@ -211,18 +211,18 @@ minute during the weekend:
[[croneval]] [[croneval]]
===== Verifying Cron Expressions ===== Verifying Cron Expressions
{xpack} ships with a `croneval` command line tool that you can use to verify that {xpack} ships with a `elasticsearch-croneval` command line tool that you can use to verify that
your cron expressions are valid and produce the expected results. This tool is your cron expressions are valid and produce the expected results. This tool is
provided in the `$ES_HOME/bin/x-pack` directory. provided in the `$ES_HOME/bin/x-pack` directory.
To verify a cron expression, simply pass it in as a parameter to `croneval`: To verify a cron expression, simply pass it in as a parameter to `elasticsearch-croneval`:
[source,bash] [source,bash]
-------------------------------------------------- --------------------------------------------------
bin/x-pack/croneval "0 0/1 * * * ?" bin/elasticsearch-croneval "0 0/1 * * * ?"
-------------------------------------------------- --------------------------------------------------
If the cron expression is valid, `croneval` displays the next 10 times that the If the cron expression is valid, `elasticsearch-croneval` displays the next 10 times that the
schedule will be triggered. schedule will be triggered.
You can specify the `-c` option to control how many future trigger times are You can specify the `-c` option to control how many future trigger times are
@ -230,5 +230,5 @@ displayed. For example, the following command displays the next 20 trigger times
[source,bash] [source,bash]
-------------------------------------------------- --------------------------------------------------
bin/x-pack/croneval "0 0/1 * * * ?" -c 20 bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
-------------------------------------------------- --------------------------------------------------

View File

@ -36,7 +36,7 @@ setup() {
} }
@test "[X-PACK] verify croneval works" { @test "[X-PACK] verify croneval works" {
run $ESHOME/bin/croneval "0 0 20 ? * MON-THU" -c 2 run $ESHOME/bin/elasticsearch-croneval "0 0 20 ? * MON-THU" -c 2
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
[[ "$output" == *"Valid!"* ]] || { [[ "$output" == *"Valid!"* ]] || {
echo "Expected output message to contain [Valid!] but found: $output" echo "Expected output message to contain [Valid!] but found: $output"

View File

@ -18,8 +18,8 @@ verify_xpack_installation() {
'elasticsearch-certgen.bat' 'elasticsearch-certgen.bat'
'elasticsearch-certutil' 'elasticsearch-certutil'
'elasticsearch-certutil.bat' 'elasticsearch-certutil.bat'
'croneval' 'elasticsearch-croneval'
'croneval.bat' 'elasticsearch-croneval.bat'
'migrate' 'migrate'
'migrate.bat' 'migrate.bat'
'saml-metadata' 'saml-metadata'