inspec/test/functional
Nikita Mathur efc6f2c63a
CFINSPEC-246/CFINSPEC-247 Attestation changes for N/R outcomes (#6222)
* Added attestation file option to read attestation in various formats

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added method to add attestation data on control level

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Enhanced outcomes flag to be true when attestation file is passed

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added logic for attestation for reporters

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation integration with streaming reporters and lots of refactoring

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Support for mitre - with frequency, updated and explanation fields'

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* To only revise enhanced outcomes when attestation data is present for the control - fix in streaming reporter

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added test cases for attestation and also added validation warnings

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation test for different formats of attestation file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validating presence of status column to be mandtory for attestation files

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Build fix

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation build fix for windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* No justification and no status graceful handling

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* New class attestations added for logic and added missing test attestations file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Code comments and cli doc changes for attestation option

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Moved logic of attestations and enhanced outcomes to the base of streaming reporter

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation documentation added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added information on what happens if justification is missing in attestation file

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Attestation doc changes as per the review

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* File fields doc changes in attestation doc

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Content Review

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Edits

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Attestation test changes matching regex and separated logic for expiration using frequency and updated date

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Proof-read

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>

* Name changes for expiry calculation method

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Generic tests in attestations for cross platform

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Co-authored-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-09-30 09:53:32 -04:00
..
attestation_test.rb CFINSPEC-246/CFINSPEC-247 Attestation changes for N/R outcomes (#6222) 2022-09-30 09:53:32 -04:00
fetchers_test.rb These tests don't pass on a network cafe and just hang forever. 2020-02-03 13:18:56 -08:00
filter_table_test.rb Skipping on windows 2021-03-25 21:04:46 +05:30
git_fetcher_test.rb CFINSPEC-137: Fix the failing test and lint for the --target-option deprication changes 2022-03-11 15:47:50 +05:30
helper.rb Enhanced outcomes changes in json based and yaml reporter 2022-07-29 14:30:59 +05:30
inheritance_test.rb Fixes many of the old skip_windows instances 2020-09-14 15:55:10 +01:00
inputs_test.rb Undid changes of required validation to fix build errors 2021-04-21 12:33:54 +05:30
inspec_archive_test.rb Build fix for archive and vendor tests due to cookstyle offenses 2021-09-29 13:23:35 +05:30
inspec_check_test.rb CFINSPEC-181: Fix unable to upload inspec compliance profile using to Chef Automate. 2022-04-14 21:47:10 +05:30
inspec_clear_cache_test.rb Handles edge cases for parallelization 2021-03-16 15:41:55 -04:00
inspec_detect_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_exec_automate_test.rb Put back passthrough automate reporter output. 2021-03-15 13:17:54 -04:00
inspec_exec_json_test.rb Enhanced outcomes changes in json based and yaml reporter 2022-07-29 14:30:59 +05:30
inspec_exec_jsonmin_test.rb Ran chefstyle -a 2021-05-09 23:59:04 -04:00
inspec_exec_junit_test.rb Fixed failing test 2021-06-04 17:24:28 +05:30
inspec_exec_signed_profile_test.rb Updated sign and verify command to directly accept the path of the profile instead of additional option to provide those. Updated docs for the same. 2022-06-02 10:36:50 +05:30
inspec_exec_streaming_progress_bar_test.rb Exit code logic to consider error count and build fixes 2022-07-29 14:30:59 +05:30
inspec_exec_test.rb Enhanced outcomes build fix for windows 2022-07-29 14:42:37 +05:30
inspec_export_test.rb Add ability to export metadata and README 2022-05-13 00:31:32 +05:30
inspec_json_profile_test.rb CFINSPEC-250: Fix for inspec json command does not populate the attribues/inputs for the profile 2022-05-12 13:34:32 +05:30
inspec_report_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_schema_test.rb Minitest deprecation warning fix for nil check 2022-07-29 14:31:40 +05:30
inspec_shell_test.rb Enhanced outcomes changes in cli reporter 2022-07-29 14:30:58 +05:30
inspec_supermarket_test.rb Test cases and documentation added 2021-11-29 19:12:30 +05:30
inspec_test.rb Updated to generate binary format of the signed profile 2022-05-13 00:31:32 +05:30
inspec_vendor_test.rb Build fix for vendor test 2021-09-29 13:23:35 +05:30
license_test.rb Fixes many of the old skip_windows instances 2020-09-14 15:55:10 +01:00
logging_test.rb Add a failing test case for silencing deprecations 2020-05-13 22:45:58 -04:00
plugins_test.rb Basic test case added for streaming reporter plugin type 2022-02-04 17:28:09 +05:30
profile_gem_dependency_test.rb CFINSPEC-252: Fix profile gem dependency installation is failing when gem version is not specified. 2022-05-13 00:18:03 +05:30
telemetry_test.rb Add a functional test to check Thor run context detection 2020-05-25 21:00:24 -04:00
ui_test.rb no color change where no ansi code is used at all 2021-05-19 14:39:10 +05:30
waivers_test.rb CFINSPEC-240 Extended file format support for waivers (#6193) 2022-08-01 09:19:35 -04:00