Skip to content
Snippets Groups Projects
Verified Commit 102af2ae authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Improve testing slightly

parent b436344f
No related branches found
No related tags found
No related merge requests found
Pipeline #109627 failed
......@@ -2,6 +2,8 @@
source 'https://rubygems.org'
gem 'passwordstate', git: 'https://gitlab.liu.se/ITI/ruby-passwordstate'
# Specify your gem's dependencies in foreman_passwordstate.gemspec
gemspec
......
......@@ -12,7 +12,7 @@ class ForemanPasswordstate::HostInfoProviderTest < ActiveSupport::TestCase
test 'it generates reasonable passwordstate info' do
assert host.passwordstate_facet
pwlist = FactoryBot.build(:passwordstate_password_list)
pwlist = ::Passwordstate::Resources::PasswordList.new(password_list_id: 5, password_list: 'Test', tree_path: '\\Passwords'
get_pwlist = stub_request(:get, 'https://passwordstate.localhost.localdomain/winapi/passwordlists/5')
host.passwordstate_facet.stubs(:password_list).returns(pwlist)
host.stubs(:host_pass) # Avoid server availability testing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment