Skip to content

Commit

Permalink
Fix test env flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Dec 29, 2021
1 parent 4d988d0 commit d7f7080
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ ENABLE_GRAPH_SSL ?= false
ENABLE_META_SSL ?= false
CA_SIGNED ?= false
CONTAINERIZED ?= false
FAILED_LOGIN_ATTEMPTS ?= 0
PASSWORD_LOCK_TIME_IN_SECS ?= 0

# commands
gherkin_fmt = ~/.local/bin/reformat-gherkin
Expand Down
3 changes: 3 additions & 0 deletions tests/common/nebula_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def _make_params(self, **kwargs):
self.graphd_param['system_memory_high_watermark_ratio'] = '0.95'
self.graphd_param['num_rows_to_check_memory'] = '4'
self.graphd_param['session_reclaim_interval_secs'] = '2'
# Login retry
self.graphd_param['failed_login_attempts'] = '5'
self.graphd_param['password_lock_time_in_secs'] = '10'

self.storaged_param = copy.copy(_params)
self.storaged_param['local_config'] = 'false'
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/admin/Authentication.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Feature: Test Authentication
"""
When login "graphd[1]" with "user1" and "wrongPassword" should fail:
"""
5 times consecutive incorrect passwords has been input, user name: user2 has been blocked, try again in 10 seconds
5 times consecutive incorrect passwords has been input, user name: user1 has been blocked, try again in 10 seconds
"""
Then wait 11 seconds
When login "graphd[1]" with "user1" and "wrongPassword" should fail:
Expand Down

0 comments on commit d7f7080

Please sign in to comment.