Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@hostname: ~/go/src $ go get github.com/skeema/tengo
- user@hostname: ~/go/src $ cd $GOPATH/src/github.com/skeema/tengo/
- user@hostname: ~/go/src/github.com/skeema/tengo $ git checkout fk-order-mysql55
- Branch 'fk-order-mysql55' set up to track remote branch 'fk-order-mysql55' from 'origin'.
- Switched to a new branch 'fk-order-mysql55'
- user@hostname: ~/go/src/github.com/skeema/tengo $ dep ensure
- user@hostname: ~/go/src/github.com/skeema/tengo $ SKEEMA_TEST_IMAGES=mysql:5.5,mysql:5.6,mysql:5.7,mysql:8.0,percona:5.5,percona:5.6,percona:5.7,percona:8.0,mariadb:10.1,mariadb:10.2,mariadb:10.3 go test -v -run Integration/SchemaIntrospection
- === RUN TestIntegration
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.5
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.6
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.7
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:8.0
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.5
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.6
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.7
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:8.0
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.1
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.2
- === RUN TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.3
- --- FAIL: TestIntegration (134.85s)
- --- FAIL: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.5 (0.11s)
- instance_test.go:541: Table grab_bag: expected UnsupportedDDL==false, instead found true
- Expected SHOW CREATE TABLE:
- CREATE TABLE `grab_bag` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `owner_id` int(10) unsigned DEFAULT NULL,
- `name` varchar(100) NOT NULL,
- `code` char(8) NOT NULL DEFAULT 'XYZ01234',
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `alive` tinyint(1) DEFAULT '1' COMMENT 'column comment',
- `flags` bit(8) DEFAULT b'1',
- `metadata` blob,
- PRIMARY KEY (`id`,`code`),
- UNIQUE KEY `name_idx` (`name`),
- KEY `recency` (`updated_at`,`created_at`),
- KEY `owner_idx` (`owner_id`) COMMENT 'index comment',
- CONSTRAINT `Ab` FOREIGN KEY (`id`, `code`) REFERENCES `sometable1` (`somecol1a`, `somecol1b`),
- CONSTRAINT `_aa` FOREIGN KEY (`updated_at`, `created_at`) REFERENCES `sometable2` (`somecol2a`, `somecol2b`),
- CONSTRAINT `aa` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `bb` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `cc` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`)
- ) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=latin1
- Actual SHOW CREATE TABLE:
- CREATE TABLE `grab_bag` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `owner_id` int(10) unsigned DEFAULT NULL,
- `name` varchar(100) NOT NULL,
- `code` char(8) NOT NULL DEFAULT 'XYZ01234',
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `alive` tinyint(1) DEFAULT '1' COMMENT 'column comment',
- `flags` bit(8) DEFAULT b'1',
- `metadata` blob,
- PRIMARY KEY (`id`,`code`),
- UNIQUE KEY `name_idx` (`name`),
- KEY `recency` (`updated_at`,`created_at`),
- KEY `owner_idx` (`owner_id`) COMMENT 'index comment',
- CONSTRAINT `Ab` FOREIGN KEY (`id`, `code`) REFERENCES `sometable1` (`somecol1a`, `somecol1b`),
- CONSTRAINT `_aa` FOREIGN KEY (`updated_at`, `created_at`) REFERENCES `sometable2` (`somecol2a`, `somecol2b`),
- CONSTRAINT `cc` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `aa` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `bb` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`)
- ) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=latin1
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.6 (0.10s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:5.7 (0.15s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mysql:8.0 (0.39s)
- --- FAIL: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.5 (0.10s)
- instance_test.go:541: Table grab_bag: expected UnsupportedDDL==false, instead found true
- Expected SHOW CREATE TABLE:
- CREATE TABLE `grab_bag` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `owner_id` int(10) unsigned DEFAULT NULL,
- `name` varchar(100) NOT NULL,
- `code` char(8) NOT NULL DEFAULT 'XYZ01234',
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `alive` tinyint(1) DEFAULT '1' COMMENT 'column comment',
- `flags` bit(8) DEFAULT b'1',
- `metadata` blob,
- PRIMARY KEY (`id`,`code`),
- UNIQUE KEY `name_idx` (`name`),
- KEY `recency` (`updated_at`,`created_at`),
- KEY `owner_idx` (`owner_id`) COMMENT 'index comment',
- CONSTRAINT `Ab` FOREIGN KEY (`id`, `code`) REFERENCES `sometable1` (`somecol1a`, `somecol1b`),
- CONSTRAINT `_aa` FOREIGN KEY (`updated_at`, `created_at`) REFERENCES `sometable2` (`somecol2a`, `somecol2b`),
- CONSTRAINT `aa` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `bb` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `cc` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`)
- ) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=latin1
- Actual SHOW CREATE TABLE:
- CREATE TABLE `grab_bag` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `owner_id` int(10) unsigned DEFAULT NULL,
- `name` varchar(100) NOT NULL,
- `code` char(8) NOT NULL DEFAULT 'XYZ01234',
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `alive` tinyint(1) DEFAULT '1' COMMENT 'column comment',
- `flags` bit(8) DEFAULT b'1',
- `metadata` blob,
- PRIMARY KEY (`id`,`code`),
- UNIQUE KEY `name_idx` (`name`),
- KEY `recency` (`updated_at`,`created_at`),
- KEY `owner_idx` (`owner_id`) COMMENT 'index comment',
- CONSTRAINT `Ab` FOREIGN KEY (`id`, `code`) REFERENCES `sometable1` (`somecol1a`, `somecol1b`),
- CONSTRAINT `_aa` FOREIGN KEY (`updated_at`, `created_at`) REFERENCES `sometable2` (`somecol2a`, `somecol2b`),
- CONSTRAINT `cc` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `aa` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`),
- CONSTRAINT `bb` FOREIGN KEY (`name`) REFERENCES `sometable3` (`somecol3`)
- ) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=latin1
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.6 (0.16s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:5.7 (0.17s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:percona:8.0 (0.40s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.1 (0.12s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.2 (0.20s)
- --- PASS: TestIntegration/TengoIntegrationSuite.TestInstanceSchemaIntrospection:mariadb:10.3 (0.16s)
- FAIL
- exit status 1
- FAIL github.com/skeema/tengo 134.862s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement