mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
skip old migration tests (#15130)
migrations are static and not meant to change, so these tests have successfully accomplished their purpose. the main motivation is to prevent CI from timming out, as each migration test runs all prior migrations from scratch, making these very time expensive.
This commit is contained in:
parent
70048f5f91
commit
6215d2e7d8
76 changed files with 229 additions and 22 deletions
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220208144831(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO software (name, version, source) VALUES ("authconfig", "6.2.8", "rpm_packages")`)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220215152203(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
execNoErr(t, db, `INSERT INTO host_munki_info (host_id, version) VALUES (1, "6.2.8")`)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220223113157(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
execNoErr(t, db, `INSERT INTO software_host_counts (software_id, hosts_count) VALUES (1, 1)`)
|
||||
|
|
|
|||
|
|
@ -39,6 +39,9 @@ func (t TeamConfig20220309133956) Value() (driver.Value, error) {
|
|||
}
|
||||
|
||||
func TestUp_20220309133956(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
teams := []Team20220309133956{
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220323152301(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
hosts := createHostsWithSoftware(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220330100659(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220404091216(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t) // must be done in top-level test as the migration comes from the test name
|
||||
t.Run("no entry", func(t *testing.T) {
|
||||
_, err := db.Exec(`DELETE FROM app_config_json`)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220419140750(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO host_software (host_id, software_id) VALUES (1, 1)`)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220428140039(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
const insStmt = `INSERT INTO host_emails (host_id, email, source) VALUES (?, ?, ?)`
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220503134048(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220524102918(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
res, err := db.Exec(`
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220526123327(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220608113128(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
var prevRaw []byte
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220627104817(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220704101843(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO software (id, name, version, source, bundle_identifier, vendor, arch)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220708095046(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
_, err := db.Exec(`INSERT INTO software (id, name, version, source, bundle_identifier, vendor, arch)
|
||||
VALUES (1, 'zchunk-libs', '1.2.1', 'rpm_packages', '', 'Fedora Project','x86_64');`)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220713091130(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220802135510(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220818101352(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO software (name, version, source, bundle_identifier, vendor, arch)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220822161445(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220831100151(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
package tables
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUp_20220908181826(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
zeroTime := time.Unix(0, 0).Add(24 * time.Hour)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
package tables
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUp_20220915165116(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20220928100158(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO host_device_auth (host_id, token) VALUES (1, 'abcd')`)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221014084130(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221101103952(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO host_disks (host_id, gigs_disk_space_available, percent_disk_space_available) VALUES (1, 35, 70.5)`)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221109100749(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO hosts (hostname, osquery_host_id, gigs_disk_space_available, percent_disk_space_available) VALUES ('h1', 'ohid', 35, 70.5)`)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221115104546(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221205112142(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
query := `
|
||||
INSERT INTO carve_metadata
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221220195934(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
var count int
|
||||
err := db.Get(&count, "SELECT COUNT(*) FROM scep_serials")
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221223174807(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
someString := func() string {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20221227163855(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
execNoErr(t, db, `
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230202224725(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230206163608(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
applyNext(t, db)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230214131519(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230303135738(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230313135301(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
stmt := `
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230313141819(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
oldInsertStmt := `
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230315104937(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
_, err := db.Exec("SET FOREIGN_KEY_CHECKS = 0")
|
||||
require.NoError(t, err)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230317173844(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
insertStmt := `
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230320133602(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
_, err := db.Exec(`INSERT INTO host_disk_encryption_keys (host_id, base64_encrypted, decryptable) VALUES (1, 'asdf', 0)
|
||||
`)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230330100011(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230330134823(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
_, err := db.Exec(`INSERT INTO software (id, name, version, source, bundle_identifier, vendor, arch)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230405232025(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230408084104(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
stmt := `
|
||||
INSERT INTO
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230411102858(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230421155932(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
var statuses []string
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230425082126(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// Apply current migration.
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230425105727(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230501154913(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
r, err := db.Exec(`INSERT INTO mdm_apple_setup_assistants (name, profile) VALUES (?, ?)`, "Test", "{}")
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230503101418(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
r, err := db.Exec(`INSERT INTO jobs (name, args, state) VALUES (?, ?, ?)`, "Test", "{}", "queued")
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230515144206(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// Apply current migration.
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230517152807(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
someString := func() string {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230518114155(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
insertStmt := `
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230520153236(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230530122103(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
var statuses []string
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230602111827(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
insertMDMSolutionStmt := `INSERT INTO mobile_device_management_solutions (id, name, server_url) VALUES (?, ?, ?)`
|
||||
_, err := db.Exec(insertMDMSolutionStmt, 1, "foo", "https://test.example.com?test=1")
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230608103123(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
insertProfStmt := "INSERT INTO mdm_apple_configuration_profiles (team_id, identifier, name, mobileconfig, checksum) VALUES (?, ?, ?, ?, 'made up')"
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
package tables
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestUp_20230629140529(t *testing.T) {
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
//
|
||||
// Insert data to test the migration
|
||||
//
|
||||
// ...
|
||||
|
||||
// Apply current migration.
|
||||
applyNext(t, db)
|
||||
|
||||
//
|
||||
// Check data, insert new entries, e.g. to verify migration is safe.
|
||||
//
|
||||
// ...
|
||||
}
|
||||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230629140530(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230711144622(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
stmt := `
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230721161508(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
dataStmts := `
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230814150442(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// Apply current migration.
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230823122728(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
insertStmt := `
|
||||
INSERT INTO mdm_idp_accounts
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230906152143(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230911163618(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
insertStmt := `
|
||||
INSERT INTO host_mdm_apple_profiles (
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230912101759(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
insertStmt := `
|
||||
INSERT INTO cve_meta
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230915101341(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
insertStmt := `
|
||||
INSERT INTO host_disk_encryption_keys
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20230918132351(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
insertStmt := `
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231004144339(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
dataStmts := `
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231009094542(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
idxExists := indexExists(db, "scripts", "idx_scripts_team_name")
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231009094543(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
applyNext(t, db)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231009094544(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// Apply current migration.
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231016091915(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
insertStmt := `INSERT INTO queries (
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231024174135(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func TestUp_20231025120016(t *testing.T) {
|
||||
// skipping old migration tests as migrations don't change and we're getting
|
||||
// timeouts in CI
|
||||
t.Skip("old migration test, not longer required to run")
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
type idpAcc struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue