Skip to content

Commit

Permalink
Issue 4575 - Update test docstrings metadata
Browse files Browse the repository at this point in the history
Description: Added customerscenario tag in test metadata for all customer tests cases

Relates: #4575

Reviewed by: @vashirov
  • Loading branch information
aadhikar committed Jan 27, 2021
1 parent ba0e91b commit 1e5b815
Show file tree
Hide file tree
Showing 20 changed files with 76 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dirsrvtests/tests/suites/acl/keywords_part2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_access_from_certain_network_only_ip(topo, add_user, aci_of_user):
User can access the data when connecting from certain network only as per the ACI.
:id: 4ec38296-7ac5-11e8-9816-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -93,6 +94,7 @@ def test_connectin_from_an_unauthorized_network(topo, add_user, aci_of_user):
User cannot access the data when connectin from an unauthorized network as per the ACI.
:id: 52d1ecce-7ac5-11e8-9ad9-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -133,6 +135,7 @@ def test_ip_keyword_test_noip_cannot(topo, add_user, aci_of_user):
User NoIP cannot assess the data as per the ACI.
:id: 570bc7f6-7ac5-11e8-88c1-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -162,6 +165,7 @@ def test_user_can_access_the_data_at_any_time(topo, add_user, aci_of_user):
User can access the data at any time as per the ACI.
:id: 5b4da91a-7ac5-11e8-bbda-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -191,6 +195,7 @@ def test_user_can_access_the_data_only_in_the_morning(topo, add_user, aci_of_use
User can access the data only in the morning as per the ACI.
:id: 5f7d380c-7ac5-11e8-8124-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -224,6 +229,7 @@ def test_user_can_access_the_data_only_in_the_afternoon(topo, add_user, aci_of_u
User can access the data only in the afternoon as per the ACI.
:id: 63eb5b1c-7ac5-11e8-bd46-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -258,6 +264,7 @@ def test_timeofday_keyword(topo, add_user, aci_of_user):
ACI it cant.
:id: 681dd58e-7ac5-11e8-bed1-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -297,6 +304,7 @@ def test_dayofweek_keyword_test_everyday_can_access(topo, add_user, aci_of_user)
User can access the data EVERYDAY_KEY as per the ACI.
:id: 6c5922ca-7ac5-11e8-8f01-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -326,6 +334,7 @@ def test_dayofweek_keyword_today_can_access(topo, add_user, aci_of_user):
User can access the data one day per week as per the ACI.
:id: 7131dc88-7ac5-11e8-acc2-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -356,6 +365,7 @@ def test_user_cannot_access_the_data_at_all(topo, add_user, aci_of_user):
User cannot access the data at all as per the ACI.
:id: 75cdac5e-7ac5-11e8-968a-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down
15 changes: 15 additions & 0 deletions dirsrvtests/tests/suites/acl/keywords_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def test_user_binds_with_a_password_and_can_access_the_data(topo, add_user, aci_
"""User binds with a password and can access the data as per the ACI.
:id: f6c4b6f0-7ac4-11e8-a517-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -80,6 +81,7 @@ def test_user_binds_with_a_bad_password_and_cannot_access_the_data(topo, add_use
"""User binds with a BAD password and cannot access the data .
:id: 0397744e-7ac5-11e8-bfb1-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -99,6 +101,7 @@ def test_anonymous_user_cannot_access_the_data(topo, add_user, aci_of_user):
"""Anonymous user cannot access the data
:id: 0821a55c-7ac5-11e8-b214-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -124,6 +127,7 @@ def test_authenticated_but_has_no_rigth_on_the_data(topo, add_user, aci_of_user)
"""User has a password. He is authenticated but has no rigth on the data.
:id: 11be7ebe-7ac5-11e8-b754-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -149,6 +153,7 @@ def test_the_bind_client_is_accessing_the_directory(topo, add_user, aci_of_user)
"""The bind rule is evaluated to be true if the client is accessing the directory as per the ACI.
:id: 1715bfb2-7ac5-11e8-8f2c-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -173,6 +178,7 @@ def test_users_binds_with_a_password_and_can_access_the_data(
"""User binds with a password and can access the data as per the ACI.
:id: 1bd01cb4-7ac5-11e8-a2f1-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand All @@ -196,6 +202,7 @@ def test_user_binds_without_any_password_and_cannot_access_the_data(topo, add_us
"""User binds without any password and cannot access the data
:id: 205777fa-7ac5-11e8-ba2f-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -223,6 +230,7 @@ def test_user_can_access_the_data_when_connecting_from_any_machine(
"""User can access the data when connecting from any machine as per the ACI.
:id: 28cbc008-7ac5-11e8-934e-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -251,6 +259,7 @@ def test_user_can_access_the_data_when_connecting_from_internal_ds_network_only(
"""User can access the data when connecting from internal ICNC network only as per the ACI.
:id: 2cac2136-7ac5-11e8-8328-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -283,6 +292,7 @@ def test_user_can_access_the_data_when_connecting_from_some_network_only(
"""User can access the data when connecting from some network only as per the ACI.
:id: 3098512a-7ac5-11e8-af85-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -311,6 +321,7 @@ def test_from_an_unauthorized_network(topo, add_user, aci_of_user):
"""User cannot access the data when connecting from an unauthorized network as per the ACI.
:id: 34cf9726-7ac5-11e8-bc12-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -338,6 +349,7 @@ def test_user_cannot_access_the_data_when_connecting_from_an_unauthorized_networ
"""User cannot access the data when connecting from an unauthorized network as per the ACI.
:id: 396bdd44-7ac5-11e8-8014-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -365,6 +377,7 @@ def test_user_cannot_access_the_data_if_not_from_a_certain_domain(topo, add_user
"""User cannot access the data if not from a certain domain as per the ACI.
:id: 3d658972-7ac5-11e8-930f-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -394,6 +407,7 @@ def test_dnsalias_keyword_test_nodns_cannot(topo, add_user, aci_of_user):
"""Dnsalias Keyword NODNS_KEY cannot assess data as per the ACI.
:id: 41b467be-7ac5-11e8-89a3-8c16451d917b
:customerscenario: True
:setup: Standalone Server
:steps:
1. Add test entry
Expand Down Expand Up @@ -425,6 +439,7 @@ def test_user_can_access_from_ipv4_or_ipv6_address(topo, add_user, aci_of_user,
"""User can modify the data when accessing the server from the allowed IPv4 and IPv6 addresses
:id: 461e761e-7ac5-11e8-9ae4-8c16451d917b
:customerscenario: True
:parametrized: yes
:setup: Standalone Server
:steps:
Expand Down
3 changes: 3 additions & 0 deletions dirsrvtests/tests/suites/basic/basic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ def test_bind_invalid_entry(topology_st):
:id: 5cd9b083-eea6-426b-84ca-83c26fc49a6f
:customerscenario: True
:setup: Standalone instance
:steps:
Expand Down Expand Up @@ -1488,6 +1490,7 @@ def test_dscreate_with_different_rdn(dscreate_test_rdn_value):
"""Test that dscreate works with different RDN attributes as suffix
:id: 77ed6300-6a2f-4e79-a862-1f1105f1e3ef
:customerscenario: True
:parametrized: yes
:setup: None
:steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_dsidm_organizational_unit_delete(topology_st, create_test_ou):
""" Test dsidm organizationalunit delete
:id: 5d35a5ee-85c2-4b83-9101-938ba7732ccd
:customerscenario: True
:setup: Standalone instance
:steps:
1. Run dsidm organizationalunit delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ def test_readonly_on_threshold(topo, setup, reset_logs):
"""Verify that nsslapd-disk-monitoring-readonly-on-threshold switches the server to read-only mode
:id: 06814c19-ef3c-4800-93c9-c7c6e76fcbb9
:customerscenario: True
:setup: Standalone
:steps:
1. Verify that the backend is in read-only mode
Expand Down Expand Up @@ -536,6 +537,7 @@ def test_readonly_on_threshold_below_half_of_the_threshold(topo, setup, reset_lo
"""Go below 1/2 of the threshold when readonly on threshold is enabled
:id: 10262663-b41f-420e-a2d0-9532dd54fa7c
:customerscenario: True
:setup: Standalone
:steps:
:expectedresults:
Expand Down Expand Up @@ -587,6 +589,7 @@ def test_below_half_of_the_threshold_not_starting_after_shutdown(topo, setup, re
"""Test that the instance won't start if we are below 1/2 of the threshold
:id: cceeaefd-9fa4-45c5-9ac6-9887a0671ef8
:customerscenario: True
:setup: Standalone
:steps:
1. Go straight below 1/2 of the threshold
Expand Down
3 changes: 3 additions & 0 deletions dirsrvtests/tests/suites/ds_logs/ds_logs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ def test_optime_and_wtime_keywords(topology_st, clean_access_logs, remove_users,
"""Test that the new optime and wtime keywords are present in the access log and have correct values
:id: dfb4a49d-1cfc-400e-ba43-c107f58d62cf
:customerscenario: True
:setup: Standalone instance
:steps:
1. Unset log buffering for the access log
Expand Down Expand Up @@ -986,6 +987,8 @@ def test_audit_log_rotate_and_check_string(topology_st, clean_access_logs, set_a
:id: 14dffb22-2f9c-11e9-8a03-54e1ad30572c
:customerscenario: True
:setup: Standalone instance
:steps:
Expand Down
10 changes: 10 additions & 0 deletions dirsrvtests/tests/suites/ds_tools/replcheck_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_state(topo_tls_ldapi):
"""Check "state" report
:id: 1cc6b28b-8a42-45fb-ab50-9552db0ac178
:customerscenario: True
:setup: Two master replication
:steps:
1. Get the replication state value
Expand All @@ -191,6 +192,7 @@ def test_check_ruv(topo_tls_ldapi):
"""Check that the report has RUV
:id: 1cc6b28b-8a42-45fb-ab50-9552db0ac179
:customerscenario: True
:setup: Two master replication
:steps:
1. Get RUV from master and replica
Expand All @@ -216,6 +218,7 @@ def test_missing_entries(topo_tls_ldapi):
"""Check that the report has missing entries
:id: f91b6798-6e6e-420a-ad2f-3222bb908b7d
:customerscenario: True
:setup: Two master replication
:steps:
1. Pause replication between master and replica
Expand Down Expand Up @@ -257,6 +260,7 @@ def test_tombstones(topo_tls_ldapi):
"""Check that the report mentions right number of tombstones
:id: bd27de78-0046-431c-8240-a93052df1cdc
:customerscenario: True
:setup: Two master replication
:steps:
1. Add an entry to master and wait for replication
Expand Down Expand Up @@ -293,6 +297,7 @@ def test_conflict_entries(topo_tls_ldapi):
"""Check that the report has conflict entries
:id: 4eda0c5d-0824-4cfd-896e-845faf49ddaf
:customerscenario: True
:setup: Two master replication
:steps:
1. Pause replication between master and replica
Expand Down Expand Up @@ -336,6 +341,7 @@ def test_inconsistencies(topo_tls_ldapi):
"""Check that the report mentions inconsistencies with attributes
:id: c8fe3e84-b346-4969-8f5d-3462b643a1d2
:customerscenario: True
:setup: Two master replication
:steps:
1. Add an entry to master and wait for replication
Expand Down Expand Up @@ -408,6 +414,7 @@ def test_suffix_exists(topo_tls_ldapi):
to validate suffix.
:id: ce75debc-c07f-4e72-8787-8f99cbfaf1e2
:customerscenario: True
:setup: Two master replication
:steps:
1. Run ds-replcheck with wrong suffix (Non Existing)
Expand Down Expand Up @@ -436,6 +443,7 @@ def test_check_missing_tombstones(topo_tls_ldapi):
"""Check missing tombstone entries is not reported.
:id: 93067a5a-416e-4243-9418-c4dfcf42e093
:customerscenario: True
:setup: Two master replication
:steps:
1. Pause replication between master and replica
Expand Down Expand Up @@ -469,6 +477,7 @@ def test_dsreplcheck_with_password_file(topo_tls_ldapi, tmpdir):
with -y option.
:id: 0d847ec7-6eaf-4cb5-a9c6-e4a5a1778f93
:customerscenario: True
:setup: Two master replication
:steps:
1. Create a password file with the default password of the server.
Expand Down Expand Up @@ -503,6 +512,7 @@ def test_dsreplcheck_timeout_connection_mechanisms(topo_tls_ldapi):
"""Check that ds-replcheck timeout option works with various connection mechanisms
:id: aeeb99c9-09e2-45dc-bd75-9f95409babe7
:customerscenario: True
:setup: Two master replication
:steps:
1. Create two masters with various connection mechanisms configured
Expand Down
1 change: 1 addition & 0 deletions dirsrvtests/tests/suites/indexes/regression_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def test_reindex_task_creates_abandoned_index_file(topo):
the case of for example 1 letter, results in abandoned indexfile
:id: 07ae5274-481a-4fa8-8074-e0de50d89ac6
:customerscenario: True
:setup: Standalone instance
:steps:
1. Create a user object with additional attributes:
Expand Down

0 comments on commit 1e5b815

Please sign in to comment.