remove extra test func
This commit is contained in:
parent
93607f5cd5
commit
21d8ec9d4a
@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
type BackupMessagesHandler interface {
|
type BackupMessagesHandler interface {
|
||||||
GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error)
|
GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error)
|
||||||
NewMessagePager(teamID, channelID string) api.MessageItemDeltaEnumerator
|
NewMessagePager(teamID, channelID string) api.ChannelMessageDeltaEnumerator
|
||||||
GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error)
|
GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error)
|
||||||
GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error)
|
GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,6 @@ const (
|
|||||||
TestCfgSiteURL = "m365siteurl"
|
TestCfgSiteURL = "m365siteurl"
|
||||||
TestCfgTeamID = "m365teamid"
|
TestCfgTeamID = "m365teamid"
|
||||||
TestCfgGroupID = "m365groupid"
|
TestCfgGroupID = "m365groupid"
|
||||||
TestCfgChannelID = "m365channelid"
|
|
||||||
TestCfgUserID = "m365userid"
|
TestCfgUserID = "m365userid"
|
||||||
TestCfgSecondaryUserID = "secondarym365userid"
|
TestCfgSecondaryUserID = "secondarym365userid"
|
||||||
TestCfgSecondaryGroupID = "secondarym365groupid"
|
TestCfgSecondaryGroupID = "secondarym365groupid"
|
||||||
@ -169,12 +168,6 @@ func ReadTestConfig() (map[string]string, error) {
|
|||||||
os.Getenv(EnvCorsoM365TestGroupID),
|
os.Getenv(EnvCorsoM365TestGroupID),
|
||||||
vpr.GetString(TestCfgGroupID),
|
vpr.GetString(TestCfgGroupID),
|
||||||
"6f24b40d-b13d-4752-980f-f5fb9fba7aa0")
|
"6f24b40d-b13d-4752-980f-f5fb9fba7aa0")
|
||||||
fallbackTo(
|
|
||||||
testEnv,
|
|
||||||
TestCfgChannelID,
|
|
||||||
os.Getenv(EnvCorsoM365TestChannelID),
|
|
||||||
vpr.GetString(TestCfgChannelID),
|
|
||||||
"19:nY6QHZ3hnHJ6ylarBxPjCOLRJNvrL3oKI5iW15QxTPA1@thread.tacv2")
|
|
||||||
fallbackTo(
|
fallbackTo(
|
||||||
testEnv,
|
testEnv,
|
||||||
TestCfgSiteURL,
|
TestCfgSiteURL,
|
||||||
|
|||||||
@ -246,14 +246,3 @@ func M365GroupID(t *testing.T) string {
|
|||||||
|
|
||||||
return strings.ToLower(cfg[TestCfgTeamID])
|
return strings.ToLower(cfg[TestCfgTeamID])
|
||||||
}
|
}
|
||||||
|
|
||||||
// M365ChannelID returns a channelID string representing the m365TeamsID described
|
|
||||||
// by either the env var CORSO_M365_TEST_CHANNEL_ID, the corso_test.toml config
|
|
||||||
// file or the default value (in that order of priority). The default is a
|
|
||||||
// last-attempt fallback that will only work on alcion's testing org.
|
|
||||||
func M365ChannelID(t *testing.T) string {
|
|
||||||
cfg, err := ReadTestConfig()
|
|
||||||
require.NoError(t, err, "retrieving m365 channel id from test configuration: %+v", clues.ToCore(err))
|
|
||||||
|
|
||||||
return cfg[TestCfgChannelID]
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user