(t *testing.T)
| 721 | } |
| 722 | |
| 723 | func TestHostsWorksRightAfterMigration(t *testing.T) { |
| 724 | // Given we have logged in before migration |
| 725 | authCfg := newTestAuthConfig(t) |
| 726 | _, err := preMigrationLogin(authCfg, "ghe.io", "test-user", "test-token", "ssh", false) |
| 727 | require.NoError(t, err) |
| 728 | |
| 729 | // When we migrate |
| 730 | var m migration.MultiAccount |
| 731 | c := cfg{authCfg.cfg} |
| 732 | require.NoError(t, c.Migrate(m)) |
| 733 | |
| 734 | // Then we can still get the hosts correctly |
| 735 | hosts := authCfg.Hosts() |
| 736 | require.Contains(t, hosts, "ghe.io") |
| 737 | } |
| 738 | |
| 739 | func TestDefaultHostWorksRightAfterMigration(t *testing.T) { |
| 740 | // Given we have logged in before migration to an enterprise host |
nothing calls this directly
no test coverage detected