spec/vault_provision_spec.rb in vault-provision-0.1.11 vs spec/vault_provision_spec.rb in vault-provision-0.1.12
- old
+ new
@@ -171,7 +171,13 @@
expect(File.exist?(AUDIT_LOG_PATH)).to be true
expect(resp[:my_syslog]).to be
expect(resp[:my_syslog].options[:tag]).to be == AUDIT_LOG_TAG
expect(resp[:my_syslog].options[:facility]).to be == "LPR"
+
+ # File.unlink(AUDIT_LOG_PATH)
+ Vault::Provision.new(EXAMPLE_AUDIT_DIR).provision!
+ resp = client.sys.audits
+ expect(resp[:my_file].options[:file_path]).to be == ALT_AUDIT_LOG_PATH
+ expect(File.exist?(ALT_AUDIT_LOG_PATH)).to be true
end
end