<commit_before>require 'minitest_helper'

class TestKanameAdapterReal < Minitest::Test
  def test_update_user_password
  end
end<commit_msg>stub request<commit_after>require 'minitest_helper'

class TestKanameAdapterReal < Minitest::Test
  def test_update_user_password
    credentials = {:openstack_current_user_id => "foo", :openstack_auth_token => "bar"}

    stub_request(:patch, "http://api-vip.u01.pbcloud.local:5000/v2.0/OS-KSCRUD/users/foo").
      with(:body => "{\"user\":{\"password\":\"<PASSWORD>\",\"original_password\":\"<PASSWORD>\"}}",
           :headers => {'Content-Type'=>'application/json', 'X-Auth-Token'=>'bar'}).
      to_return(:status => 200)

    Kaname::Adapter::Real.new.update_user_password(credentials, "<PASSWORD>", "new")
  end
end
{'fraction_non_alphanumeric': 0.17670157068062828, 'fraction_numerical': 0.014397905759162303, 'mean_word_length': 5.375, 'pattern_counts': {'":': 3, '<': 8, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4647646', 'n_tokens_mistral': 269, 'n_tokens_neox': 260, 'n_words': 35}