<commit_before>---

- name: Import a certificate, key and CA chain, password protected key
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'cert2.crt') }}"
      chain_content: "{{ lookup('file', 'ca-chain.crt') }}"
      key_content: "{{ lookup('file', 'cert2.key') }}"
      name: "cert2"
      passphrase: "<PASSWORD>"
      state: "present"
  register: result

- name: Assert Import a certificate, key and CA chain, password protected key
  assert:
    that:
        - result|changed

- name: Import a certificate, key and CA chain, password protected key - Idempotent check
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'cert2.crt') }}"
      chain_content: "{{ lookup('file', 'ca-chain.crt') }}"
      key_content: "{{ lookup('file', 'cert2.key') }}"
      name: "cert2"
      passphrase: "<PASSWORD>"
      state: "present"
  register: result

- name: Assert Import a certificate, key and CA chain, password protected key - Idempotent check
  assert:
    that:
        - not result|changed

- name: Import a certificate, key and CA chain, password protected key
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'cert2.crt') }}"
      chain_content: "{{ lookup('file', 'ca-chain.crt') }}"
      key_content: "{{ lookup('file', 'cert2.key') }}"
      name: "cert2"
      state: "absent"
  register: result

- name: Assert Import a certificate, key and CA chain, password protected key
  assert:
    that:
        - result|changed

- name: Import a certificate, key and CA chain, password protected key - Idempotent check
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'cert2.crt') }}"
      chain_content: "{{ lookup('file', 'ca-chain.crt') }}"
      key_content: "{{ lookup('file', 'cert2.key') }}"
      name: "cert2"
      state: "absent"
  register: result

- name: Assert Import a certificate, key and CA chain, password protected key - Idempotent check
  assert:
    that:
        - not result|changed<commit_msg>fixes incorrect tests for bug 00222<commit_after>---

- name: Issue 00222 - Import a CA chain certificate
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'chain2.crt') }}"
      name: "cert2"
      state: "absent"
  register: result

- name: Issue 00222 - Assert Import a CA chain certificate
  assert:
    that:
        - result|changed

- name: Issue 00222 - Import a CA chain certificate - Idempotent check
  bigip_ssl_certificate:
      cert_content: "{{ lookup('file', 'chain2.crt') }}"
      name: "cert2"
      state: "absent"
  register: result

- name: Issue 00222 - Assert Import a CA chain certificate - Idempotent check
  assert:
    that:
        - not result|changed

- name: Issue 00222 - Remove CA chain certificate
  bigip_ssl_certificate:
      name: "cert2"
      state: "absent"
  register: result
{'fraction_non_alphanumeric': 0.13071200850159406, 'fraction_numerical': 0.01664895501239816, 'mean_word_length': 3.128654970760234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3141397', 'n_tokens_mistral': 911, 'n_tokens_neox': 880, 'n_words': 267}