Skip to content

Commit

Permalink
Remove the HDB string from UT (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot authored Oct 9, 2024
1 parent 82abd2b commit cf1269a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/qesap/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def config_yaml_sample():
hana_vars:
sap_hana_install_software_directory: /hana/shared/install
sap_hana_install_master_password: 'DoNotUseThisPassw0rd'
sap_hana_install_sid: 'HDB'
sap_hana_install_sid: 'UT0'
sap_hana_install_instance_number: '00'
sap_domain: "qe-test.example.com"
primary_site: 'goofy'
Expand Down Expand Up @@ -120,7 +120,7 @@ def config_yaml_sample_for_terraform():
hana_vars:
sap_hana_install_software_directory: /hana/shared/install
sap_hana_install_master_password: 'DoNotUseThisPassw0rd'
sap_hana_install_sid: 'HDB'
sap_hana_install_sid: 'UT0'
sap_hana_install_instance_number: '00'
sap_domain: "qe-test.example.com"
primary_site: 'goofy'
Expand Down
12 changes: 6 additions & 6 deletions scripts/qesap/test/unit/test_qesap_configure_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_configure_ansible_hanavar_content(configure_helper):
hana_vars:
sap_hana_install_software_directory: /hana/shared/install
sap_hana_install_master_password: 'DoNotUseThisPassw0rd'
sap_hana_install_sid: 'HDB'
sap_hana_install_sid: 'UT0'
sap_hana_install_instance_number: '00'
sap_domain: "qe-test.example.com"
primary_site: 'goofy'
Expand Down Expand Up @@ -242,11 +242,11 @@ def test_configure_ansible_hanavar_values(configure_helper):
secondary_site: 'miky'
"""
args, _, _, hana_vars = configure_helper(
provider, conf.format(provider, "/aaa/bbb/ccc", "HDB", "00")
provider, conf.format(provider, "/aaa/bbb/ccc", "UT0", "00")
)
assert main(args) == 0
args, _, _, hana_vars = configure_helper(
provider, conf.format(provider, "ccc", "HDB", "00")
provider, conf.format(provider, "ccc", "UT0", "00")
)
assert (
main(args) != 0
Expand All @@ -256,17 +256,17 @@ def test_configure_ansible_hanavar_values(configure_helper):
)
assert main(args) != 0, "Wrong 'sap_hana_install_sid'='HD' not detected."
args, _, _, hana_vars = configure_helper(
provider, conf.format(provider, "/aaa/bbb/ccc", "HDB", "0")
provider, conf.format(provider, "/aaa/bbb/ccc", "UT0", "0")
)
assert main(args) != 0, "Wrong 'sap_hana_install_instance_number'='0' not detected."
args, _, _, hana_vars = configure_helper(
provider, conf.format(provider, "/aaa/bbb/ccc", "HDB", "AA")
provider, conf.format(provider, "/aaa/bbb/ccc", "UT0", "AA")
)
assert (
main(args) != 0
), "Wrong 'sap_hana_install_instance_number'='AA' not detected."
args, _, _, hana_vars = configure_helper(
provider, conf.format(provider, "/aaa/bbb/ccc", "HDB", "000")
provider, conf.format(provider, "/aaa/bbb/ccc", "UT0", "000")
)
assert (
main(args) != 0
Expand Down

0 comments on commit cf1269a

Please sign in to comment.