mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 15:49:57 +00:00
Turn off some tests for windows
This commit is contained in:
@@ -3,6 +3,8 @@ package org.kohsuke.github;
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.Iterables;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.kohsuke.github.GHCommit.File;
|
||||
@@ -896,6 +898,8 @@ public class AppTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void blob() throws Exception {
|
||||
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
|
||||
|
||||
GHRepository r = gitHub.getRepository("github-api/github-api");
|
||||
String sha1 = "a12243f2fc5b8c2ba47dd677d0b0c7583539584d";
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.kohsuke.github.GHOrganization.Permission;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.File;
|
||||
@@ -14,6 +16,8 @@ import static org.hamcrest.core.Is.is;
|
||||
public class LifecycleTest extends AbstractGitHubWireMockTest {
|
||||
@Test
|
||||
public void testCreateRepository() throws IOException {
|
||||
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
|
||||
|
||||
GHMyself myself = gitHub.getMyself();
|
||||
// GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ import com.squareup.okhttp.Cache;
|
||||
import com.squareup.okhttp.OkHttpClient;
|
||||
import com.squareup.okhttp.OkUrlFactory;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.kohsuke.github.AbstractGitHubWireMockTest;
|
||||
@@ -54,6 +56,8 @@ public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void testCached404() throws Exception {
|
||||
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
|
||||
|
||||
// ISSUE #669
|
||||
snapshotNotAllowed();
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemp
|
||||
import okhttp3.Cache;
|
||||
import okhttp3.OkHttpClient;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.kohsuke.github.AbstractGitHubWireMockTest;
|
||||
@@ -55,6 +57,8 @@ public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void testCached404() throws Exception {
|
||||
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
|
||||
|
||||
// ISSUE #669
|
||||
snapshotNotAllowed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user