Error: error parsing config file: error unmarshalling config: yaml: unmarshal errors: line 18: field user not found in type v2.MetadataTest
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go, yaml
- 領域
- testing-qa
調査の方向性
リンクされた config.yml から始め、提供された container-structure-test コマンドを実行して unmarshalling エラーを再現します。metadataTest セクションを、サポートされている v2 設定スキーマまたはドキュメントと比較します。意図した設定が field-not-found エラーなしで受け入れられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I'm exploring this tool and wrote a super basic config.yml:
schemaVersion: 2.0.0
fileExistenceTests:
- name: 'Pure Test directory exists'
path: '/tmp/.pure/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 1000
gid: 1000
isExecutableBy: 'group'
metadataTest:
user: "luke"
Error
❯ container-structure-test test \
--image pure \
--config config.yml
===================================
====== Test file: config.yml ======
===================================
=== RUN:
--- FAIL
duration: 0s
Error: error parsing config file: error unmarshalling config: yaml: unmarshal errors:
line 12: field user not found in type v2.MetadataTest
===================================
============= RESULTS =============
===================================
Passes: 0
Failures: 1
Duration: 0s
Total tests: 1
FAIL
FATA[0000] FAIL
make: *** [makefile:2: test] Error 1
Question
What's the matter with my test?
Update: link to reproducible repo
- 主要言語
- Go
- スター
- 2.5k
- フォーク
- 213
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleContainerTools/container-structure-test のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
allstar
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GoogleContainerTools/container-structure-test#393 · コメント 639 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GoogleContainerTools/container-structure-test#280 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
Windows: structure_test binary missing .exe extension causes "Open With" dialog instead of running tests対応中かも @peakschris が 145 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
GoogleContainerTools/container-structure-test の issue をすべて見る
似ている issue
-
Object Manager 1.13 resets a vCLU after sending a project対応中かも @tciunelis が今日担当しました。 オープンbug ready ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Domktorymysli/vclu#152 ·
メンテナーはふだん 1 日以内に返信
-
bug converter
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
grafana/sigma-rule-deployment#435 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
🤖 verification skills: harden check.sh and verify.sh argument and file handling (#391 follow-ups)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
google/go-containerregistry#2491 ·
メンテナーはふだん 1 日以内に返信