(t *testing.T)
| 737 | } |
| 738 | |
| 739 | func TestHostsWorksRightAfterMigration(t *testing.T) { |
| 740 | // Given we have logged in before migration |
| 741 | authCfg := newTestAuthConfig(t) |
| 742 | _, err := preMigrationLogin(authCfg, "ghe.io", "test-user", "test-token", "ssh", false) |
| 743 | require.NoError(t, err) |
| 744 | |
| 745 | // When we migrate |
| 746 | var m migration.MultiAccountDeprecated |
| 747 | c := cfg{cfg: authCfg.cfg} |
| 748 | require.NoError(t, c.Migrate(m)) |
| 749 | |
| 750 | // Then we can still get the hosts correctly |
| 751 | hosts := authCfg.Hosts() |
| 752 | require.Contains(t, hosts, "ghe.io") |
| 753 | } |
| 754 | |
| 755 | func TestDefaultHostWorksRightAfterMigration(t *testing.T) { |
| 756 | // Given we have logged in before migration to an enterprise host |
nothing calls this directly
no test coverage detected