Skip to content

Commit

Permalink
ci pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyBit64 committed Dec 13, 2024
1 parent 01b1f32 commit 2593ae3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,19 @@
public enum OperationType {

/**
* Insert
* Insert.
*/
INSERT("I"),

/**
* Update
* Update.
*/
UPDATE("U"),

/**
* Delete
* Delete.
*/
DELETE("D"),

/**
* Select
*/
SELECT("S");
DELETE("D");

/**
* operation type value.
Expand All @@ -52,12 +47,12 @@ public enum OperationType {
this.value = value;
}

public void setValue(String value){
public void setValue(String value) {
this.value = value;
}

public String getValue() {
return this.value;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.alibaba.nacos.config.server.service;

import com.alibaba.nacos.config.server.enums.OperationType;
import com.alibaba.nacos.config.server.model.ConfigHistoryInfo;
import com.alibaba.nacos.config.server.model.ConfigHistoryInfoPair;
import com.alibaba.nacos.config.server.model.ConfigInfoWrapper;
Expand Down Expand Up @@ -58,7 +59,7 @@ class HistoryServiceTest {

private static final String TEST_UPDATED_CONTENT = "test config updated";

private static final String TEST_OP_INSERT = "U";
private static final String TEST_OP_TYPE = OperationType.UPDATE.getValue();

private static final String TEST_MD5 = "77963b7a931377ad4ab5ad6a9cd718aa";

Expand Down Expand Up @@ -183,7 +184,7 @@ void testGetConfigHistoryInfoPair() throws Exception {
configHistoryInfo.setGroup(TEST_GROUP);
configHistoryInfo.setContent(TEST_CONTENT);
configHistoryInfo.setTenant(TEST_TENANT);
configHistoryInfo.setOpType(TEST_OP_INSERT);
configHistoryInfo.setOpType(TEST_OP_TYPE);
configHistoryInfo.setMd5(TEST_MD5);
configHistoryInfo.setCreatedTime(new Timestamp(new Date().getTime()));
configHistoryInfo.setLastModifiedTime(new Timestamp(new Date().getTime()));
Expand All @@ -194,7 +195,7 @@ void testGetConfigHistoryInfoPair() throws Exception {
configHistoryInfoUpdated.setDataId(TEST_DATA_ID);
configHistoryInfoUpdated.setGroup(TEST_GROUP);
configHistoryInfoUpdated.setTenant(TEST_TENANT);
configHistoryInfoUpdated.setOpType(TEST_OP_INSERT);
configHistoryInfoUpdated.setOpType(TEST_OP_TYPE);
configHistoryInfoUpdated.setMd5(TEST_UPDATED_MD5);
configHistoryInfoUpdated.setContent(TEST_UPDATED_CONTENT);
configHistoryInfoUpdated.setCreatedTime(new Timestamp(new Date().getTime()));
Expand Down

0 comments on commit 2593ae3

Please sign in to comment.