diff options
Diffstat (limited to 'test/integration/targets/apt_repository/tasks/apt.yml')
-rw-r--r-- | test/integration/targets/apt_repository/tasks/apt.yml | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/test/integration/targets/apt_repository/tasks/apt.yml b/test/integration/targets/apt_repository/tasks/apt.yml index 2ddf4140..9c15e647 100644 --- a/test/integration/targets/apt_repository/tasks/apt.yml +++ b/test/integration/targets/apt_repository/tasks/apt.yml @@ -152,11 +152,6 @@ - 'result.changed' - 'result.state == "present"' - 'result.repo == test_ppa_spec' - - '"sources_added" in result' - - 'result.sources_added | length == 1' - - '"git" in result.sources_added[0]' - - '"sources_removed" in result' - - 'result.sources_removed | length == 0' - result_cache is not changed - name: 'examine apt cache mtime' @@ -172,17 +167,6 @@ apt_repository: repo='{{test_ppa_spec}}' state=absent register: result -- assert: - that: - - 'result.changed' - - 'result.state == "absent"' - - 'result.repo == test_ppa_spec' - - '"sources_added" in result' - - 'result.sources_added | length == 0' - - '"sources_removed" in result' - - 'result.sources_removed | length == 1' - - '"git" in result.sources_removed[0]' - # When installing a repo with the spec, the key is *NOT* added - name: 'ensure ppa key is absent (expect: pass)' apt_key: id='{{test_ppa_key}}' state=absent @@ -240,7 +224,7 @@ - assert: that: - result is failed - - result.msg.startswith("argument 'repo' is of type <class 'NoneType'> and we were unable to convert to str") + - result.msg == 'Please set argument \'repo\' to a non-empty value' - name: Test apt_repository with an empty value for repo apt_repository: |