diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 33614d2..a24c48d 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -78,6 +78,8 @@ assertion for the accepted policy. ### 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 adopting new WeatherReporter behavior. diff --git a/go.mod b/go.mod index 9f90895..cebf912 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require gopkg.in/yaml.v3 v3.0.1 require ( 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 golang.org/x/sys v0.45.0 ) diff --git a/go.sum b/go.sum index 0d79ae1..30081f6 100644 --- a/go.sum +++ b/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/go.mod h1:G03FCFZPHpsUKC6SeMgTdbfNRpPQBdyTtDUj04e1Tu8= -gitea.maximumdirect.net/eric/promptkit v0.5.0 h1:jnpazLyyNhWrB2xzwwtUkNUfktkTdkENTwuSPnKiYrc= -gitea.maximumdirect.net/eric/promptkit v0.5.0/go.mod h1:R95NM6fbMDGDC0/UomgnSBP6ui2ns+8SZb8bESNvrDQ= +gitea.maximumdirect.net/eric/promptkit v0.8.0 h1:NGd9hDLu0UMxKbvittMrqM5Ua94eFb+kOE7UIir8l08= +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/go.mod h1:+HsoOEX80qAVUitj1A2DhCNTjmb3edVyuDypb6LNEeo= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11 h1:h5+3VT69KUBK24grGuuA5saDJTj2IIjLb9au668Fo5I= diff --git a/internal/adapters/promptkit/adapter_test.go b/internal/adapters/promptkit/adapter_test.go index 76211c3..90eae54 100644 --- a/internal/adapters/promptkit/adapter_test.go +++ b/internal/adapters/promptkit/adapter_test.go @@ -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", "") profiles := testProfileDirectory(t, `id: local-profile backend: local @@ -546,8 +546,8 @@ api_key_env: WEATHERREPORTER_TEST_MISSING_KEY request := testExecuteRequest() request.ProfileID = "credential-profile" result, err := credentialAdapter.Execute(context.Background(), request, nil) - if result != nil || promptexec.CategoryOf(err) != promptexec.MissingCredential || client.callCount() != 0 { - t.Fatalf("credential result/category/calls = %#v/%q/%d", result, promptexec.CategoryOf(err), client.callCount()) + if err != nil || result == nil || client.callCount() != 1 { + t.Fatalf("credential result/error/calls = %#v/%v/%d", result, err, client.callCount()) } }