26 Commits

Author SHA1 Message Date
Eric F Crist
c505a14be5
op_test.sh will now exit with status of unit tests
Fixed an issue where op_test.sh would exit with the status of the rm
command from cleanup, rather than from the unit tests it was running.

Closes #355

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2020-04-14 22:07:14 -05:00
Eric F Crist
8e862614fa
Failed to add the new op_test.sh script
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-09-25 08:15:04 -05:00
Richard Bonhomme
47eecc48a8
Improve usage text
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-09-20 17:17:46 +01:00
Richard Bonhomme
67bac6c7f1
optest.sh shellcheck compliance
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-09-20 16:57:25 +01:00
Richard Bonhomme
73523b0da3
Expand op_test: Inconsistent SAN behaviour
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-12 21:52:59 +01:00
Richard Bonhomme
ad3b35644d
Fix op_test.sh shellcheck SC2086
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-10 23:01:54 +01:00
Richard Bonhomme
70ddded80b
Tidy up op_test.sh verbose
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-10 21:08:21 +01:00
Richard Bonhomme
713f1d633e
Default SAN for serverClient, additional op_test
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-10 20:13:59 +01:00
Richard Bonhomme
38ad124088
op_test.sh: remove old style custom ssl lib tests
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-10 17:46:23 +01:00
Richard Bonhomme
fbb5e30858
op_test.sh: adhere to shellcheck
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-07 14:51:33 +01:00
Richard Bonhomme
f6e26cd42c
Improve op_test.sh: make wait_sec variable; Add server with SAN renew test.
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-07 14:38:38 +01:00
Richard Bonhomme
1c0a9dfddd
Add Windows operational test
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-06-04 17:27:02 +01:00
Eric F Crist
9621e2626c
make op_test.sh executable
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-02-04 13:35:48 -06:00
Richard Bonhomme
1a8962639b
Remove unused var 2019-01-29 22:06:16 +00:00
Richard Bonhomme
9bdb97d5e3
Update op_test.sh usage; Add error count and custom library hook
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-01-29 21:54:19 +00:00
Richard Bonhomme
88aa03ae50
Add server renew and tiny lag to verify date field
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-01-28 22:18:39 +00:00
Richard Bonhomme
64417dac68
Add renew_cert() to op_test.sh
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-01-27 18:40:49 +00:00
Richard Bonhomme
a55f58b5a5
Improve op_test.sh: Fine grain control "show ca/cert"
Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-01-26 15:00:33 -06:00
Richard Bonhomme
2ca66d331a
Improve op_test.sh
New op_test.sh was commited before it was ready:
* Improve TEMP_DIR management (./easyrsa3/temp must not exist)
* Use WORK_DIR (./easyrsa3)
* Clean up CUSTOM_OPTS
* Clean up Sample requests
* Clean up destroy_data (openssl_easyrsa.cnf must be restored)
* Added note to import_req
* Re-instate DEPS_DIR hooks
* Improve output (newline)
* Add required shellcheck exclusions (# shellcheck disable=SC2086 two instances)

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
2019-01-26 18:21:47 +00:00
Eric F Crist
16c5843716
Removing local-only code at tincantech's request
Conversation from IRC, times are Central Standard:

09:34:13 <@tincantech> i only added the rm as a "precaution" .. it is not really necessary because all the temp pki's are deleted first anyway
09:34:38 < ecrist> When I look at the code, you have a function, destroy_data() which deletes everything.  It's only called in setup() and in tear_down().
09:35:27 <@tincantech> https://github.com/OpenVPN/easy-rsa/blob/v3.0.6/op_test.sh#L564
09:35:28 < vpnHelper> Title: easy-rsa/op_test.sh at v3.0.6 · OpenVPN/easy-rsa · GitHub (at github.com)
09:37:08 < ecrist> what are you pointing out there?
09:37:44 <@tincantech> i am calling $TEMP_DIR/openssl.sh
09:38:51 < ecrist> and where does that file come from?
09:39:27 <@tincantech> i would prefer that https://github.com/OpenVPN/easy-rsa/blob/v3.0.6/op_test.sh#L215 is just removed completely
09:39:28 < vpnHelper> Title: easy-rsa/op_test.sh at v3.0.6 · OpenVPN/easy-rsa · GitHub (at github.com)
09:42:02 < ecrist> I'm still trying to address the $TEMP_DIR/openssl.sh
09:42:06 < ecrist> where is that file?
09:43:12 <@tincantech> it is only a local file
09:43:36 < ecrist> well, it doesn't make sense to build support in to the test script for things that aren't committed with the test script.
09:44:06 < ecrist> And temp is just that, temp.  If there are other dependencies, those should go in a sane location, like test_libs or something.
09:47:06 <@tincantech> then i guess remove line 564-568

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-01-25 10:39:03 -06:00
Eric F Crist
9d6077d915
rmdir with the ignore fail on non-empty is a linux thing
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-01-25 08:18:23 -06:00
Richard Bonhomme
941f381f52
Improve testing
Limitations, see: https://github.com/OpenVPN/easy-rsa/issues/282

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2019-01-25 07:14:29 -06:00
Eric F Crist
38575d870c
test suite fixes
* need the script to actually do more functional testing
* need to be able to test input, need something automated

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-12-11 20:39:21 -06:00
Eric F Crist
391948f267
Update op_test to support show-cert, add'l cmds
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-12-11 20:15:21 -06:00
Eric F Crist
fefee6aa9f additional automation
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 20:36:14 -06:00
Eric F Crist
ef2e21e757 More breakage for automated tests
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
2018-01-03 19:34:45 -06:00