Skip to content

Commit 8248b75

Browse files
committed
Amend configuration, and work with updated GitHub Actions secrets
1 parent 596b9f7 commit 8248b75

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Presence.Posting.Lib/Connections/EnvironmentConfigReader.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public EnvironmentConfigReader(IDictionary env)
2020
prefix => prefix,
2121
prefix =>
2222
strings.Keys
23-
.Where(k => k.StartsWith(prefix))
23+
.Where(k => k.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
2424
.Select(k => k.Substring($"{prefix}_".Length))
25-
.Select(k => Enum.GetValues<SocialNetwork>().Where(n => k.StartsWith(n.ToString())))
25+
.Select(k => Enum.GetValues<SocialNetwork>().Where(n => k.StartsWith(n.ToString(), StringComparison.OrdinalIgnoreCase)))
2626
.Where(nn => nn.Count() != 0)
2727
.Select(nn => nn.Single())
2828
.Distinct()
@@ -42,7 +42,7 @@ private Dictionary<NetworkCredentialType,string> ExtractCredentials(string prefi
4242
.ToDictionary(kv => kv.Key.Trim(), kv => kv.Value.Trim())
4343
.Where(kv => kv.Key.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
4444
.ToDictionary(kv => kv.Key.Substring(prefix.Length).Trim('_'), kv => kv.Value)
45-
.Where(kv => kv.Key.StartsWith(network.ToString()))
45+
.Where(kv => kv.Key.StartsWith(network.ToString(), StringComparison.OrdinalIgnoreCase))
4646
.ToDictionary(kv => kv.Key.Substring(network.ToString().Length).Trim('_'), kv => kv.Value)
4747
.ToDictionary(kv => Enum.Parse<NetworkCredentialType>(kv.Key, true), kv => kv.Value);
4848

run-integration-tests.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ Runs the integration tests.
77
88
Options:
99
-f <filter> --filter <filter> Filter the tests by name (optional)
10-
-e <path> --env-file <path> Path to an environment file (optional)
10+
-e <path> --env-file <path> Path to an environment file (optional) eg. .env.accounts.integration
1111
-h --help Prints this help message and exits
1212
13-
Defaults:
14-
Environment file path = .env.accounts.integration
15-
1613
EOF
1714
}
1815

1916
# defaults
20-
ENV_PATH=".env.accounts.integration"
2117

2218
# parameters
2319
while [ -n "$1" ]; do

0 commit comments

Comments
 (0)