Upgrade PromptKit to v0.8.0
This commit is contained in:
@@ -78,6 +78,8 @@ assertion for the accepted policy.
|
|||||||
|
|
||||||
### Stage 1: Upgrade The Dependency And Establish A v0.8.0 Baseline
|
### Stage 1: Upgrade The Dependency And Establish A v0.8.0 Baseline
|
||||||
|
|
||||||
|
Status: Complete.
|
||||||
|
|
||||||
Purpose: move to the tagged dependency and isolate compatibility changes before
|
Purpose: move to the tagged dependency and isolate compatibility changes before
|
||||||
adopting new WeatherReporter behavior.
|
adopting new WeatherReporter behavior.
|
||||||
|
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -6,7 +6,7 @@ require gopkg.in/yaml.v3 v3.0.1
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.maximumdirect.net/eric/distributor v0.5.0
|
gitea.maximumdirect.net/eric/distributor v0.5.0
|
||||||
gitea.maximumdirect.net/eric/promptkit v0.5.0
|
gitea.maximumdirect.net/eric/promptkit v0.8.0
|
||||||
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
|
||||||
golang.org/x/sys v0.45.0
|
golang.org/x/sys v0.45.0
|
||||||
)
|
)
|
||||||
|
|||||||
4
go.sum
4
go.sum
@@ -1,7 +1,7 @@
|
|||||||
gitea.maximumdirect.net/eric/distributor v0.5.0 h1:+al7Bw+kMv6V35a3Sm5rUtCTQhwOn5b9x3RsclPMKJk=
|
gitea.maximumdirect.net/eric/distributor v0.5.0 h1:+al7Bw+kMv6V35a3Sm5rUtCTQhwOn5b9x3RsclPMKJk=
|
||||||
gitea.maximumdirect.net/eric/distributor v0.5.0/go.mod h1:G03FCFZPHpsUKC6SeMgTdbfNRpPQBdyTtDUj04e1Tu8=
|
gitea.maximumdirect.net/eric/distributor v0.5.0/go.mod h1:G03FCFZPHpsUKC6SeMgTdbfNRpPQBdyTtDUj04e1Tu8=
|
||||||
gitea.maximumdirect.net/eric/promptkit v0.5.0 h1:jnpazLyyNhWrB2xzwwtUkNUfktkTdkENTwuSPnKiYrc=
|
gitea.maximumdirect.net/eric/promptkit v0.8.0 h1:NGd9hDLu0UMxKbvittMrqM5Ua94eFb+kOE7UIir8l08=
|
||||||
gitea.maximumdirect.net/eric/promptkit v0.5.0/go.mod h1:R95NM6fbMDGDC0/UomgnSBP6ui2ns+8SZb8bESNvrDQ=
|
gitea.maximumdirect.net/eric/promptkit v0.8.0/go.mod h1:R95NM6fbMDGDC0/UomgnSBP6ui2ns+8SZb8bESNvrDQ=
|
||||||
github.com/aws/aws-sdk-go-v2 v1.41.9 h1:/rYeyO2+HrMztAmxAq9++XJtFMqSIpSsNA0yDGALYq4=
|
github.com/aws/aws-sdk-go-v2 v1.41.9 h1:/rYeyO2+HrMztAmxAq9++XJtFMqSIpSsNA0yDGALYq4=
|
||||||
github.com/aws/aws-sdk-go-v2 v1.41.9/go.mod h1:+HsoOEX80qAVUitj1A2DhCNTjmb3edVyuDypb6LNEeo=
|
github.com/aws/aws-sdk-go-v2 v1.41.9/go.mod h1:+HsoOEX80qAVUitj1A2DhCNTjmb3edVyuDypb6LNEeo=
|
||||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11 h1:h5+3VT69KUBK24grGuuA5saDJTj2IIjLb9au668Fo5I=
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11 h1:h5+3VT69KUBK24grGuuA5saDJTj2IIjLb9au668Fo5I=
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ func TestNewValidatesConfiguration(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestLocalBackendAndMissingCredentialBehavior(t *testing.T) {
|
func TestLocalBackendAndOptionalCredentialSourceBehavior(t *testing.T) {
|
||||||
t.Setenv("WEATHERREPORTER_TEST_MISSING_KEY", "")
|
t.Setenv("WEATHERREPORTER_TEST_MISSING_KEY", "")
|
||||||
profiles := testProfileDirectory(t, `id: local-profile
|
profiles := testProfileDirectory(t, `id: local-profile
|
||||||
backend: local
|
backend: local
|
||||||
@@ -546,8 +546,8 @@ api_key_env: WEATHERREPORTER_TEST_MISSING_KEY
|
|||||||
request := testExecuteRequest()
|
request := testExecuteRequest()
|
||||||
request.ProfileID = "credential-profile"
|
request.ProfileID = "credential-profile"
|
||||||
result, err := credentialAdapter.Execute(context.Background(), request, nil)
|
result, err := credentialAdapter.Execute(context.Background(), request, nil)
|
||||||
if result != nil || promptexec.CategoryOf(err) != promptexec.MissingCredential || client.callCount() != 0 {
|
if err != nil || result == nil || client.callCount() != 1 {
|
||||||
t.Fatalf("credential result/category/calls = %#v/%q/%d", result, promptexec.CategoryOf(err), client.callCount())
|
t.Fatalf("credential result/error/calls = %#v/%v/%d", result, err, client.callCount())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user