correct test env vars

This commit is contained in:
neha-Gupta1 2023-07-26 13:13:27 +05:30
parent 8fbe4ea326
commit 05bd2f5ea3
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ const (
EnvCorsoM365TestSiteID = "CORSO_M365_TEST_SITE_ID"
EnvCorsoM365TestSiteURL = "CORSO_M365_TEST_SITE_URL"
EnvCorsoM365TestTeamID = "CORSO_M365_TEST_TEAM_ID"
EnvCorsoM365TestGroupID = "CORSO_M365_TEST_Group_ID"
EnvCorsoM365TestGroupID = "CORSO_M365_TEST_GROUP_ID"
EnvCorsoM365TestUserID = "CORSO_M365_TEST_USER_ID"
EnvCorsoSecondaryM365TestUserID = "CORSO_SECONDARY_M365_TEST_USER_ID"
EnvCorsoTertiaryM365TestUserID = "CORSO_TERTIARY_M365_TEST_USER_ID"
@ -157,13 +157,13 @@ func ReadTestConfig() (map[string]string, error) {
TestCfgTeamID,
os.Getenv(EnvCorsoM365TestTeamID),
vpr.GetString(TestCfgTeamID),
"d288d6bc-4595-4ff5-87a1-6e7fd750aa42")
"6f24b40d-b13d-4752-980f-f5fb9fba7aa0")
fallbackTo(
testEnv,
TestCfgGroupID,
os.Getenv(EnvCorsoM365TestGroupID),
vpr.GetString(TestCfgGroupID),
"3d1129b1-52e1-4f49-a47a-a515b14c8a8e")
"6f24b40d-b13d-4752-980f-f5fb9fba7aa0")
fallbackTo(
testEnv,
TestCfgSiteURL,

View File

@ -226,7 +226,7 @@ func M365TeamsID(t *testing.T) string {
// Groups
// M365GroupID returns a groupID string representing the m365GroupID described
// by either the env var CORSO_M365_TEST_Group_ID, the corso_test.toml config
// by either the env var CORSO_M365_TEST_GROUP_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 M365GroupID(t *testing.T) string {