Commit a203b89a authored by ibuler's avatar ibuler

Merge branches 'master' and 'wangyong' of gitcafe.com:ibuler/jumpserver

parents 0a8198b2 b65f620f
...@@ -99,7 +99,7 @@ def test_add_asset(): ...@@ -99,7 +99,7 @@ def test_add_asset():
bis_group_all = BisGroup.objects.all() bis_group_all = BisGroup.objects.all()
dept_all = DEPT.objects.all() dept_all = DEPT.objects.all()
for i in range(1, 500): for i in range(1, 500):
ip = '192.168.1.' + str(i) ip = '192.168.5.' + str(i)
asset = Asset(ip=ip, port=22, login_type='L', idc=test_idc, is_active=True, comment='test') asset = Asset(ip=ip, port=22, login_type='L', idc=test_idc, is_active=True, comment='test')
asset.save() asset.save()
asset.bis_group = [random.choice(bis_group_all) for i in range(2)] asset.bis_group = [random.choice(bis_group_all) for i in range(2)]
...@@ -128,13 +128,13 @@ def test_add_log(): ...@@ -128,13 +128,13 @@ def test_add_log():
if __name__ == '__main__': if __name__ == '__main__':
#install() #install()
test_add_dept() #test_add_dept()
test_add_group() #test_add_group()
test_add_user() #test_add_user()
test_add_idc() #test_add_idc()
test_add_asset_group() #test_add_asset_group()
test_add_asset() test_add_asset()
test_add_log() #test_add_log()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment