package main

import (
	"testing"

	assert "github.com/stretchr/testify/require"
	"go.skia.org/infra/go/testutils"
	"go.skia.org/infra/proberk/go/types"
)

func TestProbeSSL(t *testing.T) {
	testutils.LargeTest(t)
	probes := &types.Probe{
		URLs: []string{
			"https://skia.org",
			"https://skia.org:443",
			"https://35.201.76.220",
		},
		Method: "SSL",
	}

	// Verify the Certs are valid. This implies they are valid for 10 days.
	for _, url := range probes.URLs {
		assert.NoError(t, probeSSL(probes, url))
	}

	// Verify failure by expecting certs to be valid for 20 years.
	probes.Expected = []int{7300}
	for _, url := range probes.URLs {
		assert.Error(t, probeSSL(probes, url))
	}
}

package main

import (
	"testing"

	assert "github.com/stretchr/testify/require"
	"go.skia.org/infra/go/testutils"
	"go.skia.org/infra/proberk/go/types"
)

func TestProbeSSL(t *testing.T) {
	t.Skip()
	testutils.LargeTest(t)
	probes := &types.Probe{
		URLs: []string{
			"https://skia.org",
			"https://skia.org:443",
			"https://35.201.76.220",
		},
		Method: "SSL",
	}

	// Verify the Certs are valid. This implies they are valid for 10 days.
	for _, url := range probes.URLs {
		assert.NoError(t, probeSSL(probes, url))
	}

	// Verify failure by expecting certs to be valid for 20 years.
	probes.Expected = []int{7300}
	for _, url := range probes.URLs {
		assert.Error(t, probeSSL(probes, url))
	}
}

Disable test which is covered by an alert
[proberk] Disable test which is covered by an alert

TBR=borenet
Bug: skia:
Change-Id: I26d62f1c108f471a92b298c8bd37a2c845d80542
Reviewed-on: https://skia-review.googlesource.com/c/177910
Reviewed-by: Stephan Altmueller <43343ec95731c0e8daa7359daf7f2f3935582b24@google.com>
Commit-Queue: Stephan Altmueller <43343ec95731c0e8daa7359daf7f2f3935582b24@google.com>
