Skip snmp tests that require docker in short mode

This commit is contained in:
Cameron Sparr 2016-02-19 16:15:14 -07:00 committed by Michele Fadda
parent 9813420d25
commit 17cd3cf03f
1 changed files with 21 additions and 0 deletions

View File

@ -69,6 +69,9 @@ func TestSNMPErrorBulk(t *testing.T) {
} }
func TestSNMPGet1(t *testing.T) { func TestSNMPGet1(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
get1 := Data{ get1 := Data{
Name: "oid1", Name: "oid1",
Unit: "octets", Unit: "octets",
@ -104,6 +107,9 @@ func TestSNMPGet1(t *testing.T) {
} }
func TestSNMPGet2(t *testing.T) { func TestSNMPGet2(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
get1 := Data{ get1 := Data{
Name: "oid1", Name: "oid1",
Oid: "ifNumber", Oid: "ifNumber",
@ -139,6 +145,9 @@ func TestSNMPGet2(t *testing.T) {
} }
func TestSNMPGet3(t *testing.T) { func TestSNMPGet3(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
get1 := Data{ get1 := Data{
Name: "oid1", Name: "oid1",
Unit: "octets", Unit: "octets",
@ -177,6 +186,9 @@ func TestSNMPGet3(t *testing.T) {
} }
func TestSNMPEasyGet4(t *testing.T) { func TestSNMPEasyGet4(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
get1 := Data{ get1 := Data{
Name: "oid1", Name: "oid1",
Unit: "octets", Unit: "octets",
@ -227,6 +239,9 @@ func TestSNMPEasyGet4(t *testing.T) {
} }
func TestSNMPEasyGet5(t *testing.T) { func TestSNMPEasyGet5(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
get1 := Data{ get1 := Data{
Name: "oid1", Name: "oid1",
Unit: "octets", Unit: "octets",
@ -277,6 +292,9 @@ func TestSNMPEasyGet5(t *testing.T) {
} }
func TestSNMPEasyGet6(t *testing.T) { func TestSNMPEasyGet6(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
h := Host{ h := Host{
Address: testutil.GetLocalHost() + ":31161", Address: testutil.GetLocalHost() + ":31161",
Community: "telegraf", Community: "telegraf",
@ -307,6 +325,9 @@ func TestSNMPEasyGet6(t *testing.T) {
} }
func TestSNMPBulk1(t *testing.T) { func TestSNMPBulk1(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
bulk1 := Data{ bulk1 := Data{
Name: "oid1", Name: "oid1",
Unit: "octets", Unit: "octets",