inspec/test/unit
Aaron Lippold 1b58763aff updated postgres_session resource properly escape queries (#1939)
* fixed a small courner case in the error detection - error: vs error
fixed resource to use 'shellwords' module to escape the query
requested chances in method architecture for testing
added unit tests

Fixes: #1814

Signed-off-by: Aaron Lippold <lippold@gmail.com>

* updated resource and tests with requested review changes

Signed-off-by: Aaron Lippold <lippold@gmail.com>

* removed unneeded call to `escaped_query` in the `create_sql_cmd`.

Signed-off-by: Aaron Lippold <lippold@gmail.com>

* removed license info

Signed-off-by: Aaron Lippold <lippold@gmail.com>
2017-07-03 08:10:27 +02:00
..
bundles Extract Compliance::API version parsing to separate method (#1931) 2017-06-23 08:29:50 -07:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl Reduce warnings (#1917) 2017-06-15 12:10:47 -04:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
mock oracle_session and mssql_session improvement (#1857) 2017-06-29 11:01:32 -04:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00
resources updated postgres_session resource properly escape queries (#1939) 2017-07-03 08:10:27 +02:00
source_readers add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
utils add the Nginx parser 2017-06-03 17:25:00 +02:00
file_provider_test.rb add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
runner_test.rb Handle parse errors for attrs/secrets 2017-05-09 13:44:33 +02:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00