chore: remove go generate from CI tests (#10977)
This commit is contained in:
parent
bed3b4b01b
commit
ad2a0e52a4
|
|
@ -78,7 +78,6 @@ commands:
|
||||||
key: windows-go-<< parameters.cache_version >>-{{ checksum "go.sum" }}
|
key: windows-go-<< parameters.cache_version >>-{{ checksum "go.sum" }}
|
||||||
- run: 'sh ./scripts/installgo_windows.sh'
|
- run: 'sh ./scripts/installgo_windows.sh'
|
||||||
- run: choco install mingw
|
- run: choco install mingw
|
||||||
- run: 'make generate'
|
|
||||||
- run: mkdir -p test-results
|
- run: mkdir -p test-results
|
||||||
- run: ./scripts/install_gotestsum.sh << parameters.os >> << parameters.gotestsum >>
|
- run: ./scripts/install_gotestsum.sh << parameters.os >> << parameters.gotestsum >>
|
||||||
- unless:
|
- unless:
|
||||||
|
|
@ -121,7 +120,6 @@ commands:
|
||||||
paths:
|
paths:
|
||||||
- 'C:\Go'
|
- 'C:\Go'
|
||||||
- 'C:\Users\circleci\project\gotestsum.exe'
|
- 'C:\Users\circleci\project\gotestsum.exe'
|
||||||
- run: 'make generate-clean'
|
|
||||||
package-build:
|
package-build:
|
||||||
parameters:
|
parameters:
|
||||||
type:
|
type:
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,11 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/influxdata/toml"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/vmware/govmomi/object"
|
"github.com/vmware/govmomi/object"
|
||||||
"github.com/vmware/govmomi/simulator"
|
"github.com/vmware/govmomi/simulator"
|
||||||
|
|
@ -222,16 +220,6 @@ func TestAlignMetrics(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestParseConfig(t *testing.T) {
|
|
||||||
v := VSphere{}
|
|
||||||
c := v.SampleConfig()
|
|
||||||
p := regexp.MustCompile("\n#")
|
|
||||||
c = configHeader + "\n[[inputs.vsphere]]\n" + p.ReplaceAllLiteralString(c, "\n")
|
|
||||||
tab, err := toml.Parse([]byte(c))
|
|
||||||
require.NoError(t, err)
|
|
||||||
require.NotNil(t, tab)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestConfigDurationParsing(t *testing.T) {
|
func TestConfigDurationParsing(t *testing.T) {
|
||||||
v := defaultVSphere()
|
v := defaultVSphere()
|
||||||
require.Equal(t, int32(300), int32(time.Duration(v.HistoricalInterval).Seconds()), "HistoricalInterval.Seconds() with default duration should resolve 300")
|
require.Equal(t, int32(300), int32(time.Duration(v.HistoricalInterval).Seconds()), "HistoricalInterval.Seconds() with default duration should resolve 300")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue