Azure / Azure/azure-functions-java-library

Provide access to settings through context parameter

オープン
#89 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:java-functions new-feature P2
主要言語
Java
スター
45
フォーク
49
PR マージ指標
30日以内にマージされた PR はありません

説明

I created the following issue on the java worker repo, but this repo seems to be a better fit. https://github.com/Azure/azure-functions-java-worker/issues/281

Currently it is hard to unit test a function that uses an app setting by reading it from the environment variables. It would be much easier if there was a getSetting(settingName) method on the context parameter, as the context parameter can be mocked in unit tests. At runtime the host can continue to read the value from an environment variable via the method in the context parameter, so there wouldn't be any breaking changes to the runtime.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、Java のコンテキストパラメータ API と、issue に記載されている既存の環境変数アクセス経路を特定します。次に、ホストが実行時にコンテキストをどのように提供するかを追跡し、そのうえで、モックしたコンテキストから設定を提供できる一方、実行時のアクセスでは引き続き環境変数が読み取られることを検証するために必要な単体テストのカバレッジを特定します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, java
領域
backend, cloud
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。