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