Skip to content

Commit 2745941

Browse files
authored
Added more write-only properties to the mock yaml files (#2123)
Details: * Added the following write-only properties to the mock yaml files mocked_hmc_z14.yaml and mocked_hmc_z16.yaml: - LdapServerDefinition.bind-password - Lpar.ssc-master-pw - ImageActivationProfile.ssc-master-pw - ImageActivationProfile.zaware-master-pw - Partition.ssc-master-pw: sscpass Signed-off-by: Andreas Maier <maiera@de.ibm.com>
1 parent 6cec55d commit 2745941

2 files changed

Lines changed: 86 additions & 18 deletions

File tree

tests/end2end/mocked_hmc_z14.yaml

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ hmc_definition:
323323
backup-hostname-ipaddr: null
324324
use-ssl: false
325325
tolerate-untrusted-certificates: null
326-
bind-distinguished-name: null
327-
bind-password: null
326+
bind-distinguished-name: abc
327+
bind-password: bla
328328
location-method: null
329329
search-scope: null
330330
search-filter: null
@@ -364,7 +364,6 @@ hmc_definition:
364364
text: foo
365365
timestamp: 1744826146533
366366
service-supported: true
367-
368367
cpcs:
369368
- properties:
370369
# class: created automatically
@@ -562,7 +561,7 @@ hmc_definition:
562561
- properties:
563562
object-id: lpar1
564563
name: "LPAR1"
565-
description: "Lpar LPAR1"
564+
description: "Lpar LPAR1 on CPC_CLA"
566565
partition-number: 0x41
567566
partition-identifier: 0x41
568567
status: "operating"
@@ -574,13 +573,29 @@ hmc_definition:
574573
- properties:
575574
object-id: lpar2
576575
name: "LPAR2"
577-
description: "Lpar LPAR1"
576+
description: "Lpar LPAR2 on CPC_CLA"
578577
partition-number: 0x42
579578
partition-identifier: 0x42
580-
status: "not-activated"
581-
activation-mode: "not-set"
579+
status: "operating"
580+
activation-mode: "ssc"
582581
next-activation-profile-name: "LPAR2"
583582
last-used-activation-profile: "LPAR2"
583+
has-unacceptable-status: false
584+
has-operating-system-messages: true
585+
ssc-host-name: lpar2
586+
ssc-master-userid: sscuser
587+
ssc-master-pw: sscpass
588+
ssc-boot-selection: installer
589+
- properties:
590+
object-id: lpar9
591+
name: "LPAR9"
592+
description: "Lpar LPAR9 on CPC_CLA"
593+
partition-number: 0x49
594+
partition-identifier: 0x49
595+
status: "not-activated"
596+
activation-mode: "not-set"
597+
next-activation-profile-name: "LPAR9"
598+
last-used-activation-profile: "LPAR9"
584599
has-unacceptable-status: true
585600
has-operating-system-messages: false
586601
reset_activation_profiles:
@@ -605,11 +620,25 @@ hmc_definition:
605620
image_activation_profiles:
606621
- properties:
607622
name: "LPAR1"
608-
description: "Image activation profile LPAR1"
623+
description: "Image activation profile LPAR1 for Linux"
624+
operating-mode: "linux-only"
609625
# TODO: Add more properties
610626
- properties:
611627
name: "LPAR2"
612-
description: "Image activation profile LPAR2"
628+
description: "Image activation profile LPAR2 for SSC"
629+
operating-mode: "ssc"
630+
ssc-host-name: lpar2
631+
ssc-master-userid: sscuser
632+
ssc-master-pw: sscpass
633+
ssc-boot-selection: installer
634+
# TODO: Add more properties
635+
- properties:
636+
name: "ZAWARE"
637+
description: "Image activation profile for zAware"
638+
operating-mode: "zaware"
639+
zaware-host-name: zaware
640+
zaware-master-userid: zawareuser
641+
zaware-master-pw: zawarepass
613642
# TODO: Add more properties
614643
hw_messages:
615644
- properties:
@@ -1064,8 +1093,14 @@ hmc_definition:
10641093
status: stopped
10651094
threads-per-processor: 1
10661095
type: ssc
1096+
ssc-host-name: part2
1097+
ssc-master-userid: sscuser
1098+
ssc-master-pw: sscpass
1099+
ssc-boot-selection: installer
10671100
ssc-ipv4-gateway: 10.11.12.13
10681101
ssc-ipv6-gateway: "10::11"
1102+
ssc-dns-servers:
1103+
- 10.11.12.2
10691104
available-features-list:
10701105
- name: dpm-storage-management
10711106
description: The DPM storage management approach in which FCP and FICON
@@ -1080,7 +1115,6 @@ hmc_definition:
10801115
type: osd
10811116
device-number: '0010'
10821117
virtual-switch-uri: /api/virtual-switches/vs-osa1
1083-
10841118
hw_messages:
10851119
- properties:
10861120
# class: created automatically

tests/end2end/mocked_hmc_z16.yaml

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ hmc_definition:
323323
backup-hostname-ipaddr: null
324324
use-ssl: false
325325
tolerate-untrusted-certificates: null
326-
bind-distinguished-name: null
327-
bind-password: null
326+
bind-distinguished-name: abc
327+
bind-password: bla
328328
location-method: null
329329
search-scope: null
330330
search-filter: null
@@ -374,7 +374,6 @@ hmc_definition:
374374
text: foo
375375
timestamp: 1744826146533
376376
service-supported: true
377-
378377
cpcs:
379378
- properties:
380379
# class: created automatically
@@ -587,10 +586,26 @@ hmc_definition:
587586
description: "Lpar LPAR2 on CPC_CLA"
588587
partition-number: 0x42
589588
partition-identifier: 0x42
590-
status: "not-activated"
591-
activation-mode: "not-set"
589+
status: "operating"
590+
activation-mode: "ssc"
592591
next-activation-profile-name: "LPAR2"
593592
last-used-activation-profile: "LPAR2"
593+
has-unacceptable-status: false
594+
has-operating-system-messages: true
595+
ssc-host-name: lpar2
596+
ssc-master-userid: sscuser
597+
ssc-master-pw: sscpass
598+
ssc-boot-selection: installer
599+
- properties:
600+
object-id: lpar9
601+
name: "LPAR9"
602+
description: "Lpar LPAR9 on CPC_CLA"
603+
partition-number: 0x49
604+
partition-identifier: 0x49
605+
status: "not-activated"
606+
activation-mode: "not-set"
607+
next-activation-profile-name: "LPAR9"
608+
last-used-activation-profile: "LPAR9"
594609
has-unacceptable-status: true
595610
has-operating-system-messages: false
596611
reset_activation_profiles:
@@ -615,11 +630,25 @@ hmc_definition:
615630
image_activation_profiles:
616631
- properties:
617632
name: "LPAR1"
618-
description: "Image activation profile LPAR1"
633+
description: "Image activation profile LPAR1 for Linux"
634+
operating-mode: "linux-only"
619635
# TODO: Add more properties
620636
- properties:
621637
name: "LPAR2"
622-
description: "Image activation profile LPAR2"
638+
description: "Image activation profile LPAR2 for SSC"
639+
operating-mode: "ssc"
640+
ssc-host-name: lpar2
641+
ssc-master-userid: sscuser
642+
ssc-master-pw: sscpass
643+
ssc-boot-selection: installer
644+
# TODO: Add more properties
645+
- properties:
646+
name: "ZAWARE"
647+
description: "Image activation profile for zAware"
648+
operating-mode: "zaware"
649+
zaware-host-name: zaware
650+
zaware-master-userid: zawareuser
651+
zaware-master-pw: zawarepass
623652
# TODO: Add more properties
624653
hw_messages:
625654
- properties:
@@ -630,7 +659,6 @@ hmc_definition:
630659
text: foo
631660
timestamp: 1744826146533
632661
service-supported: true
633-
634662
- properties:
635663
# class: created automatically
636664
# parent: created automatically
@@ -1075,8 +1103,14 @@ hmc_definition:
10751103
status: stopped
10761104
threads-per-processor: 1
10771105
type: ssc
1106+
ssc-host-name: part2
1107+
ssc-master-userid: sscuser
1108+
ssc-master-pw: sscpass
1109+
ssc-boot-selection: installer
10781110
ssc-ipv4-gateway: 10.11.12.13
10791111
ssc-ipv6-gateway: "10::11"
1112+
ssc-dns-servers:
1113+
- 10.11.12.2
10801114
available-features-list:
10811115
- name: dpm-storage-management
10821116
description: The DPM storage management approach in which FCP and FICON

0 commit comments

Comments
 (0)