Skip to content

Commit 69bbaec

Browse files
author
Trong Nhan Mai
committed
chore: add an intergration test for invalid --deps-depth usage
1 parent 5a29294 commit 69bbaec

File tree

1 file changed

+42
-0
lines changed
  • tests/integration/cases/deps_depth_invalid_value

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2024 - 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
description: |
5+
Setting invalid values to --deps-depth flag.
6+
7+
tags:
8+
- macaron-python-package
9+
10+
steps:
11+
- name: A negative integer is not valid.
12+
kind: analyze
13+
options:
14+
command_args:
15+
- -purl
16+
- pkg:pypi/[email protected]
17+
- --depth=-10
18+
expect_fail: true
19+
- name: A string value (except from `inf`) is not valid.
20+
kind: analyze
21+
options:
22+
command_args:
23+
- -purl
24+
- pkg:pypi/[email protected]
25+
- --depth=infinity
26+
expect_fail: true
27+
- name: Provide un-supported depth.
28+
kind: analyze
29+
options:
30+
command_args:
31+
- -purl
32+
- pkg:pypi/[email protected]
33+
- --depth=10
34+
expect_fail: true
35+
- name: Expect one argument for --deps-depth
36+
kind: analyze
37+
options:
38+
command_args:
39+
- -purl
40+
- pkg:pypi/[email protected]
41+
- --depth
42+
expect_fail: true

0 commit comments

Comments
 (0)