package com.product.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 map=new HashMap<>(); map.put("url/api", "/api/passwordsecurity/find-pwdsecurity/v1"); map.put("~table~", "product_sys_password_security"); map.put("uuid","0a48f5c1-34c5-4a44-ad5c-46e1c3fc7e3f"); testPost(map); return ""; } /** * @Date: 2020-05-30 13:54 * @Author: ZhouJie * @Description: 修改密码强度设置信息测试 */ public static String updatePwdSecurity() { Map 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 ""; } }