Rename croneval
This commit renames croneval to elasticsearch-croneval
This commit is contained in:
parent
7ba2defdbf
commit
6dbb7be067
|
@ -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
|
||||
straightforward to configure. If you use `cron`, construct your `cron`
|
||||
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.
|
||||
|
||||
===== Cron Expressions
|
||||
|
@ -211,18 +211,18 @@ minute during the weekend:
|
|||
[[croneval]]
|
||||
===== 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
|
||||
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]
|
||||
--------------------------------------------------
|
||||
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.
|
||||
|
||||
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]
|
||||
--------------------------------------------------
|
||||
bin/x-pack/croneval "0 0/1 * * * ?" -c 20
|
||||
bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
|
||||
--------------------------------------------------
|
||||
|
|
|
@ -36,7 +36,7 @@ setup() {
|
|||
}
|
||||
|
||||
@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 ]
|
||||
[[ "$output" == *"Valid!"* ]] || {
|
||||
echo "Expected output message to contain [Valid!] but found: $output"
|
||||
|
|
|
@ -18,8 +18,8 @@ verify_xpack_installation() {
|
|||
'elasticsearch-certgen.bat'
|
||||
'elasticsearch-certutil'
|
||||
'elasticsearch-certutil.bat'
|
||||
'croneval'
|
||||
'croneval.bat'
|
||||
'elasticsearch-croneval'
|
||||
'elasticsearch-croneval.bat'
|
||||
'migrate'
|
||||
'migrate.bat'
|
||||
'saml-metadata'
|
||||
|
|
Loading…
Reference in New Issue