shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.product.org.admin.test;
 
import java.util.HashMap;
import java.util.Map;
 
import com.product.common.utils.HttpTest;
 
/**
 * Copyright  LX-BASE
 * @Title: PasswordSecurityTest
 * @Project: LX-BASE-SERVER
 * @Date:  2020-05-30 17:30   
 * @Author: ZhouJie
 * @Description: 密码安全设置测试类
 */
public class PasswordSecurityTest extends HttpTest {
    
    public static void main(String[] args) {
        findPwdSecurity();
        //updatePwdSecurity();
    }
    
    /**
     * @Date: 2020-05-30 13:54   
     * @Author: ZhouJie
     * @Description: 查看密码强度信息测试
     */
    public static String findPwdSecurity() {
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/passwordsecurity/find-pwdsecurity/v1");
        map.put("~table~", "product_sys_password_security");
        map.put("uuid","security_uuid_01");
        testPost(map);
        return "";    
    }
 
    /**
     * @Date: 2020-05-30 13:54   
     * @Author: ZhouJie
     * @Description: 修改密码强度设置信息测试
     */
    public static String updatePwdSecurity() {
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/passwordsecurity/update-pwdsecurity/v1");
        map.put("~table~", "product_sys_password_security");
        map.put("security_id","01");
        map.put("uuid","security_uuid_01");
        map.put("security_upper","0");
        map.put("security_lower","0");
        map.put("security_number","0");
        map.put("security_other","0");
        map.put("security_password","0");
        map.put("security_password_length","6");
        
        testPost(map);
        return "";    
    }
    
    
    
}