Skip to content

Adding schema in order to support stage customization #53

Adding schema in order to support stage customization

Adding schema in order to support stage customization #53

GitHub Actions / Test Report (macos-latest, 3.8) failed Jun 15, 2023 in 0s

40 tests run, 38 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 31 in tests/test_parser.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.8)

test_parser.test_json_file

AssertionError: assert {'all': {'lab...luentd-tag>'}} == {'all': {'lab...'<args.tag>'}}
  Differing items:
  {'all': {'label': '<fluentd-label>', 'tag': '<fluentd-tag>'}} != {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
  Full diff:
  - {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
  ?                     ^^^^^                  ^^^^^
  + {'all': {'label': '<fluentd-label>', 'tag': '<fluentd-tag>'}}
  ?                     ^^^^^^^^                  ^^^^^^^^
Raw output
default = {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}

    def test_json_file(default):
        args = parser.parse_args(
            [
                "--stage-settings",
                os.path.join(os.path.dirname(__file__), "data", "default.json"),
            ]
        )
>       assert args.settings == default
E       AssertionError: assert {'all': {'lab...luentd-tag>'}} == {'all': {'lab...'<args.tag>'}}
E         Differing items:
E         {'all': {'label': '<fluentd-label>', 'tag': '<fluentd-tag>'}} != {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
E         Full diff:
E         - {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
E         ?                     ^^^^^                  ^^^^^
E         + {'all': {'label': '<fluentd-label>', 'tag': '<fluentd-tag>'}}
E         ?                     ^^^^^^^^                  ^^^^^^^^

tests/test_parser.py:31: AssertionError

Check failure on line 41 in tests/test_parser.py

See this annotation in the file changed.

@github-actions github-actions / Test Report (macos-latest, 3.8)

test_parser.test_yaml_file

AssertionError: assert {'all': {'tag...entd-label>'}} == {'all': {'lab...'<args.tag>'}}
  Differing items:
  {'all': {'tag': '<fluentd-tag>', 'label': '<fluentd-label>'}} != {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
  Full diff:
  - {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
  + {'all': {'tag': '<fluentd-tag>', 'label': '<fluentd-label>'}}
Raw output
default = {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}

    def test_yaml_file(default):
        args = parser.parse_args(
            [
                "--stage-settings",
                os.path.join(os.path.dirname(__file__), "data", "default.yaml"),
            ]
        )
>       assert args.settings == default
E       AssertionError: assert {'all': {'tag...entd-label>'}} == {'all': {'lab...'<args.tag>'}}
E         Differing items:
E         {'all': {'tag': '<fluentd-tag>', 'label': '<fluentd-label>'}} != {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
E         Full diff:
E         - {'all': {'label': '<args.label>', 'tag': '<args.tag>'}}
E         + {'all': {'tag': '<fluentd-tag>', 'label': '<fluentd-label>'}}

tests/test_parser.py:41: AssertionError