Azure / Azure/azure-functions-java-library
Provide access to settings through context parameter
- 主要言語
- 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