'Create & load secrets file.'

def setUp(self):

    config_dir = get_test_config_dir()
    yaml.clear_secret_cache()
    self._yaml_path = os.path.join(config_dir, YAML_CONFIG_FILE)
    self._secret_path = os.path.join(config_dir, yaml._SECRET_YAML)
    self._sub_folder_path = os.path.join(config_dir, 'subFolder')
    self._unrelated_path = os.path.join(config_dir, 'unrelated')
    load_yaml(self._secret_path, 'http_pw:    pwhttp\ncomp1_un:    un1\ncomp1_pw:    pw1\nstale_pw:    not_used\nlogger:    debug\n')
    self._yaml = load_yaml(self._yaml_path, 'http:\n        api_password:    !secret    http_pw\ncomponent:\n        username:    !secret    comp1_un\n        password:    !secret    comp1_pw\n')
