ISSUE-44: Adding integration tests and setting up workflow #88

Merged
hitanshu merged 6 commits from hitanshu/CFTunnels:ISSUE-44 into test 2025-11-14 19:48:28 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit b8bf2e8c67 - Show all commits

View File

@ -15,6 +15,9 @@ java {
test {
systemProperty 'spring.profiles.active', 'test'
useJUnitPlatform {
excludeTags 'integration'
}
}
repositories {

View File

@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.hithomelabs.CFTunnels.Config.CloudflareConfig;
import com.hithomelabs.CFTunnels.Headers.AuthKeyEmailHeader;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ -23,7 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("integration")
@Profile("!test")
@Tag("integration")
public class CoudflareApiIntegrationTest {
@Autowired