Browse Source

Change download url in backend.yml (#15526)

Wenjun Ruan 1 year ago
parent
commit
419cb49311

+ 2 - 2
.github/workflows/backend.yml

@@ -149,7 +149,7 @@ jobs:
       fail-fast: false
       matrix:
         db: ["mysql", "postgresql"]
-        version: ["2.0.9", "3.0.6", "3.1.8"]
+        version: ["2.0.9", "3.0.6", "3.1.8", "3.2.0"]
     steps:
       - name: Set up JDK 8
         uses: actions/setup-java@v2
@@ -171,7 +171,7 @@ jobs:
           echo "DATABASE_VERSION=${VERSION//\./}" >> $GITHUB_ENV
       - name: Prepare
         run: |
-          wget https://dlcdn.apache.org/dolphinscheduler/${{ matrix.version }}/apache-dolphinscheduler-${{ matrix.version }}-bin.tar.gz -P dolphinscheduler/${{ matrix.version }}
+          wget https://archive.apache.org/dist/dolphinscheduler/${{ matrix.version }}/apache-dolphinscheduler-${{ matrix.version }}-bin.tar.gz -P dolphinscheduler/${{ matrix.version }}
           tar -xzf dolphinscheduler/${{ matrix.version }}/apache-dolphinscheduler-${{ matrix.version }}-bin.tar.gz -C dolphinscheduler/${{ matrix.version }} --strip-components 1
           tar -xzf dolphinscheduler/dev/apache-dolphinscheduler-*-bin.tar.gz -C dolphinscheduler/dev --strip-components 1
 

+ 3 - 6
dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/mapper/AuditLogMapperTest.java

@@ -34,15 +34,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 public class AuditLogMapperTest extends BaseDaoTest {
 
     @Autowired
-    AuditLogMapper logMapper;
+    private AuditLogMapper logMapper;
 
     @Autowired
     private ProjectMapper projectMapper;
 
-    /**
-     * insert
-     * @return
-     */
     private void insertOne(AuditResourceType resourceType) {
         AuditLog auditLog = new AuditLog();
         auditLog.setUserId(1);
@@ -84,7 +80,8 @@ public class AuditLogMapperTest extends BaseDaoTest {
         String resourceNameByUser = logMapper.queryResourceNameByType(AuditResourceType.USER_MODULE.getMsg(), 1);
         Assertions.assertEquals("admin", resourceNameByUser);
         Project project = insertProject();
-        String resourceNameByProject = logMapper.queryResourceNameByType(AuditResourceType.PROJECT_MODULE.getMsg(), 1);
+        String resourceNameByProject =
+                logMapper.queryResourceNameByType(AuditResourceType.PROJECT_MODULE.getMsg(), project.getId());
         Assertions.assertEquals(project.getName(), resourceNameByProject);
         int delete = projectMapper.deleteById(project.getId());
         Assertions.assertEquals(delete, 1);