1
1
# -*- coding: utf-8 -*-
2
2
3
- < << << << HEAD
4
3
# Copyright (c) IBM Corporation 2020, 2025
5
- == == == =
6
- # Copyright (c) IBM Corporation 2020, 2024
7
- >> >> >> > e7ffe6d0217a0dba440e7f34fbe27b524a07751c
8
4
# Licensed under the Apache License, Version 2.0 (the "License");
9
5
# you may not use this file except in compliance with the License.
10
6
# You may obtain a copy of the License at
16
12
# limitations under the License.
17
13
18
14
from __future__ import absolute_import , division , print_function
19
- < << << << HEAD
20
15
from ibm_zos_core .tests .helpers .dataset import get_tmp_ds_name
21
16
from ibm_zos_core .tests .helpers .volumes import Volume_Handler
22
17
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
28
18
29
19
__metaclass__ = type
30
20
@@ -415,10 +405,6 @@ def test_operation_list_with_filter(ansible_zos_module, volumes_with_vvds):
415
405
# Negative tests
416
406
#
417
407
418
- < << << << HEAD
419
- == == == =
420
-
421
- >> >> >> > e7ffe6d0217a0dba440e7f34fbe27b524a07751c
422
408
def test_add_already_present (ansible_zos_module , volumes_with_vvds ):
423
409
try :
424
410
hosts = ansible_zos_module
@@ -451,7 +437,6 @@ def test_add_already_present(ansible_zos_module, volumes_with_vvds):
451
437
results = hosts .all .zos_apf (** test_info )
452
438
for result in results .contacted .values ():
453
439
assert result .get ("rc" ) == 0
454
- << << << < HEAD
455
440
# Second call to zos_apf, same as first but with different expectations
456
441
results = hosts .all .zos_apf (** test_info )
457
442
for result in results .contacted .values ():
@@ -466,12 +451,6 @@ def test_add_already_present(ansible_zos_module, volumes_with_vvds):
466
451
assert rc == 8
467
452
else :
468
453
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
475
454
test_info ['state' ] = 'absent'
476
455
hosts .all .zos_apf (** test_info )
477
456
finally :
@@ -509,7 +488,6 @@ def test_del_not_present(ansible_zos_module, volumes_with_vvds):
509
488
test_info ['state' ] = 'absent'
510
489
results = hosts .all .zos_apf (** test_info )
511
490
for result in results .contacted .values ():
512
- << << << < HEAD
513
491
# RC 0 should be allowed for ZOAU >= 1.3.4,
514
492
# in zoau < 1.3.4 -i is not recognized in apfadm
515
493
# 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):
521
499
assert rc == 8
522
500
else :
523
501
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
528
502
finally :
529
503
clean_test_env (hosts , test_info )
530
504
0 commit comments