Skip to content

Commit

Permalink
Update ut
Browse files Browse the repository at this point in the history
  • Loading branch information
ganglyu committed Jun 18, 2022
1 parent 577bb9a commit 6356f5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_gnmi_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_gnmi_set_with_jwt_neg(self):
def test_gnmi_set_with_jwt(self):
username = 'gnmitest1'
password = 'password1'
run_cmd('sudo useradd -p %s %s'%(password, username))
run_cmd('sudo userdel %s'%(username))
run_cmd('sudo useradd %s'%(username))
ret, msg = gnoi_authenticate(username, password)
assert ret == 0, msg
assert 'access_token' in msg
Expand Down Expand Up @@ -75,7 +76,8 @@ class TestGNOIAuth:
def test_gnoi_authenticate(self):
username = 'gnmitest2'
password = 'password2'
run_cmd('sudo useradd -p %s %s'%(password, username))
run_cmd('sudo userdel %s'%(username))
run_cmd('sudo useradd %s'%(username))
ret, msg = gnoi_authenticate(username, password)
assert ret == 0, msg
assert 'access_token' in msg
Expand Down

0 comments on commit 6356f5d

Please sign in to comment.