Skip to content

Commit 2baabcd

Browse files
Updated test_zos_apf
1 parent 652814b commit 2baabcd

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/functional/modules/test_zos_apf_func.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
<<<<<<< HEAD
43
# Copyright (c) IBM Corporation 2020, 2025
5-
=======
6-
# Copyright (c) IBM Corporation 2020, 2024
7-
>>>>>>> e7ffe6d0217a0dba440e7f34fbe27b524a07751c
84
# Licensed under the Apache License, Version 2.0 (the "License");
95
# you may not use this file except in compliance with the License.
106
# You may obtain a copy of the License at
@@ -16,15 +12,9 @@
1612
# limitations under the License.
1713

1814
from __future__ import absolute_import, division, print_function
19-
<<<<<<< HEAD
2015
from ibm_zos_core.tests.helpers.dataset import get_tmp_ds_name
2116
from ibm_zos_core.tests.helpers.volumes import Volume_Handler
2217
from ibm_zos_core.tests.helpers.version import get_zoau_version
23-
=======
24-
import pytest
25-
from ibm_zos_core.tests.helpers.dataset import get_tmp_ds_name
26-
from ibm_zos_core.tests.helpers.volumes import Volume_Handler
27-
>>>>>>> e7ffe6d0217a0dba440e7f34fbe27b524a07751c
2818

2919
__metaclass__ = type
3020

@@ -415,10 +405,6 @@ def test_operation_list_with_filter(ansible_zos_module, volumes_with_vvds):
415405
# Negative tests
416406
#
417407

418-
<<<<<<< HEAD
419-
=======
420-
421-
>>>>>>> e7ffe6d0217a0dba440e7f34fbe27b524a07751c
422408
def test_add_already_present(ansible_zos_module, volumes_with_vvds):
423409
try:
424410
hosts = ansible_zos_module
@@ -451,7 +437,6 @@ def test_add_already_present(ansible_zos_module, volumes_with_vvds):
451437
results = hosts.all.zos_apf(**test_info)
452438
for result in results.contacted.values():
453439
assert result.get("rc") == 0
454-
<<<<<<< HEAD
455440
# Second call to zos_apf, same as first but with different expectations
456441
results = hosts.all.zos_apf(**test_info)
457442
for result in results.contacted.values():
@@ -466,12 +451,6 @@ def test_add_already_present(ansible_zos_module, volumes_with_vvds):
466451
assert rc == 8
467452
else:
468453
assert rc == 16
469-
=======
470-
results = hosts.all.zos_apf(**test_info)
471-
for result in results.contacted.values():
472-
# Return code 16 if ZOAU < 1.2.0 and RC is 8 if ZOAU >= 1.2.0
473-
assert result.get("rc") == 16 or result.get("rc") == 8
474-
>>>>>>> e7ffe6d0217a0dba440e7f34fbe27b524a07751c
475454
test_info['state'] = 'absent'
476455
hosts.all.zos_apf(**test_info)
477456
finally:
@@ -509,7 +488,6 @@ def test_del_not_present(ansible_zos_module, volumes_with_vvds):
509488
test_info['state'] = 'absent'
510489
results = hosts.all.zos_apf(**test_info)
511490
for result in results.contacted.values():
512-
<<<<<<< HEAD
513491
# RC 0 should be allowed for ZOAU >= 1.3.4,
514492
# in zoau < 1.3.4 -i is not recognized in apfadm
515493
# Return code 16 if ZOAU < 1.2.0 and RC is 8 if ZOAU >= 1.2.0
@@ -521,10 +499,6 @@ def test_del_not_present(ansible_zos_module, volumes_with_vvds):
521499
assert rc == 8
522500
else:
523501
assert rc == 16
524-
=======
525-
# Return code 16 if ZOAU < 1.2.0 and RC is 8 if ZOAU >= 1.2.0
526-
assert result.get("rc") == 16 or result.get("rc") == 8
527-
>>>>>>> e7ffe6d0217a0dba440e7f34fbe27b524a07751c
528502
finally:
529503
clean_test_env(hosts, test_info)
530504

0 commit comments

Comments
 (0)