temporarily skip non-failing tests

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2025-04-08 19:09:52 -06:00
parent 29080dc70a
commit de8778797f
20 changed files with 59 additions and 0 deletions

View file

@ -43,6 +43,7 @@ func NewClientWithMockGHClient(hasNextPage bool) Client {
}
func TestGetByDigest(t *testing.T) {
t.Skip()
c := NewClientWithMockGHClient(false)
attestations, err := c.GetByRepoAndDigest(testRepo, testDigest, DefaultLimit)
require.NoError(t, err)
@ -60,6 +61,7 @@ func TestGetByDigest(t *testing.T) {
}
func TestGetByDigestGreaterThanLimit(t *testing.T) {
t.Skip()
c := NewClientWithMockGHClient(false)
limit := 3
@ -80,6 +82,7 @@ func TestGetByDigestGreaterThanLimit(t *testing.T) {
}
func TestGetByDigestWithNextPage(t *testing.T) {
t.Skip()
c := NewClientWithMockGHClient(true)
attestations, err := c.GetByRepoAndDigest(testRepo, testDigest, DefaultLimit)
require.NoError(t, err)
@ -97,6 +100,7 @@ func TestGetByDigestWithNextPage(t *testing.T) {
}
func TestGetByDigestGreaterThanLimitWithNextPage(t *testing.T) {
t.Skip()
c := NewClientWithMockGHClient(true)
limit := 7
@ -117,6 +121,7 @@ func TestGetByDigestGreaterThanLimitWithNextPage(t *testing.T) {
}
func TestGetByDigest_NoAttestationsFound(t *testing.T) {
t.Skip()
fetcher := mockDataGenerator{
NumAttestations: 5,
}
@ -142,6 +147,7 @@ func TestGetByDigest_NoAttestationsFound(t *testing.T) {
}
func TestGetByDigest_Error(t *testing.T) {
t.Skip()
fetcher := mockDataGenerator{
NumAttestations: 5,
}
@ -163,6 +169,7 @@ func TestGetByDigest_Error(t *testing.T) {
}
func TestFetchBundleFromAttestations_BundleURL(t *testing.T) {
t.Skip()
httpClient := &mockHttpClient{}
client := LiveClient{
httpClient: httpClient,
@ -180,6 +187,7 @@ func TestFetchBundleFromAttestations_BundleURL(t *testing.T) {
}
func TestFetchBundleFromAttestations_MissingBundleAndBundleURLFields(t *testing.T) {
t.Skip()
httpClient := &mockHttpClient{}
client := LiveClient{
httpClient: httpClient,
@ -196,6 +204,7 @@ func TestFetchBundleFromAttestations_MissingBundleAndBundleURLFields(t *testing.
}
func TestFetchBundleFromAttestations_FailOnTheSecondAttestation(t *testing.T) {
t.Skip()
mockHTTPClient := &failAfterNCallsHttpClient{
// the initial HTTP request will succeed, which returns a bundle for the first attestation
// all following HTTP requests will fail, which means the function fails to fetch a bundle
@ -218,6 +227,7 @@ func TestFetchBundleFromAttestations_FailOnTheSecondAttestation(t *testing.T) {
}
func TestFetchBundleFromAttestations_FailAfterRetrying(t *testing.T) {
t.Skip()
mockHTTPClient := &reqFailHttpClient{}
c := &LiveClient{
@ -234,6 +244,7 @@ func TestFetchBundleFromAttestations_FailAfterRetrying(t *testing.T) {
}
func TestFetchBundleFromAttestations_FallbackToBundleField(t *testing.T) {
t.Skip()
mockHTTPClient := &mockHttpClient{}
c := &LiveClient{
@ -252,6 +263,7 @@ func TestFetchBundleFromAttestations_FallbackToBundleField(t *testing.T) {
// getBundle successfully fetches a bundle on the first HTTP request attempt
func TestGetBundle(t *testing.T) {
t.Skip()
mockHTTPClient := &mockHttpClient{}
c := &LiveClient{
@ -268,6 +280,7 @@ func TestGetBundle(t *testing.T) {
// getBundle retries successfully when the initial HTTP request returns
// a 5XX status code
func TestGetBundle_SuccessfulRetry(t *testing.T) {
t.Skip()
mockHTTPClient := &failAfterNCallsHttpClient{
FailOnCallN: 1,
FailOnAllSubsequentCalls: false,
@ -286,6 +299,7 @@ func TestGetBundle_SuccessfulRetry(t *testing.T) {
// getBundle does not retry when the function fails with a permanent backoff error condition
func TestGetBundle_PermanentBackoffFail(t *testing.T) {
t.Skip()
mockHTTPClient := &invalidBundleClient{}
c := &LiveClient{
httpClient: mockHTTPClient,
@ -302,6 +316,7 @@ func TestGetBundle_PermanentBackoffFail(t *testing.T) {
// getBundle retries when the HTTP request fails
func TestGetBundle_RequestFail(t *testing.T) {
t.Skip()
mockHTTPClient := &reqFailHttpClient{}
c := &LiveClient{
@ -316,6 +331,7 @@ func TestGetBundle_RequestFail(t *testing.T) {
}
func TestGetTrustDomain(t *testing.T) {
t.Skip()
fetcher := mockMetaGenerator{
TrustDomain: "foo",
}
@ -348,6 +364,7 @@ func TestGetTrustDomain(t *testing.T) {
}
func TestGetAttestationsRetries(t *testing.T) {
t.Skip()
getAttestationRetryInterval = 0
fetcher := mockDataGenerator{
@ -388,6 +405,7 @@ func TestGetAttestationsRetries(t *testing.T) {
// test total retries
func TestGetAttestationsMaxRetries(t *testing.T) {
t.Skip()
getAttestationRetryInterval = 0
fetcher := mockDataGenerator{