Sha256: 2ef7dd440b06dc1c3bbad4ea4512a3120674247c7b663bd2d2564bc57b8f8782
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require "logstash/devutils/rspec/spec_helper" require "logstash/outputs/jira" describe LogStash::Outputs::Jira do let(:plugin) { described_class.new(config) } describe "debugging `password`" do let(:config) {{ "username" => "jira-user-name", "password" => "$ecre&-key", "projectid" => "my-project-id", "issuetypeid" => "issue-type-id", "summary" => "JIRA issue summary", "priority" => "High" }} it "should not show origin value" do expect(plugin.logger).to receive(:debug).with('<password>') plugin.register plugin.logger.send(:debug, plugin.password.to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-output-jira-3.0.5 | spec/outputs/jira_spec.rb |