Skip to content

Commit

Permalink
feat: 提交测试用例【认证】【应用】
Browse files Browse the repository at this point in the history
  • Loading branch information
KouShenhai committed Dec 28, 2024
1 parent e1a4507 commit 29372ef
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ image::doc/image/jb_beam.png[jb_beam,100,100,link=https://www.jetbrains.com/comm
[width=100%]
|===
|时间 |网名 |赞助 |备注
|2024/12/08 |t* |¥49.00 |无
|2024/12/08 |t* |¥199.00 |无
|2024/12/02 |'c* |¥399.00 |无
|2024/11/25 |tio* |¥520.00 |希望KCloud飞起,实现专精特新!
|2024/08/01 |*ckai |¥88.00 |加油~
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2022-2024 KCloud-Platform-IoT Author or Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package org.laokou.auth;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.Instant;

/**
* @author laokou
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
class InstantTest implements Serializable {

private Instant instant;

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@

package org.laokou.auth;

import lombok.*;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.laokou.auth.dto.TokenRemoveCmd;
import org.laokou.auth.gateway.CaptchaGateway;
import org.laokou.common.core.annotation.EnableTaskExecutor;
import org.laokou.common.core.utils.*;
import org.laokou.common.core.utils.HttpUtil;
import org.laokou.common.core.utils.IdGenerator;
import org.laokou.common.core.utils.MDCUtil;
import org.laokou.common.core.utils.ThreadUtil;
import org.laokou.common.crypto.utils.RSAUtil;
import org.laokou.common.i18n.utils.DateUtil;
import org.laokou.common.i18n.utils.JacksonUtil;
Expand All @@ -43,9 +47,7 @@
import org.springframework.util.Assert;
import org.springframework.web.client.RestClient;

import java.io.Serializable;
import java.net.URI;
import java.time.Instant;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ExecutorService;
Expand Down Expand Up @@ -226,13 +228,6 @@ void testLogoutApi() {
log.info("---------- 登录已注销,结束令牌清除 ----------");
}

@Test
void testRemoveCache() {
MDCUtil.put("0", "0");
// rocketMQDomainEventPublisher.publish(new RemoveCacheEvent(TENANTS, "1"),
// SendMessageType.ASYNC);
}

private Map<String, String> deviceAuthorizationCodeAuth(String deviceCode) {
try {
String apiUrl = getOAuthApiUrl();
Expand Down Expand Up @@ -421,13 +416,4 @@ private boolean disabledSsl() {
return serverProperties.getSsl().isEnabled();
}

@Data
@NoArgsConstructor
@AllArgsConstructor
static class InstantTest implements Serializable {

private Instant instant;

}

}

0 comments on commit 29372ef

Please sign in to comment.