File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,29 @@ def test_validate_minimal():
30
30
31
31
# Assert
32
32
assert error is None
33
+
34
+
35
+ def test_validate_without_name ():
36
+ # Arrange
37
+ workflow = _MINIMAL .copy ()
38
+ _ = workflow .pop ("name" , None )
39
+
40
+ # Act
41
+ error = decoder .validate_schema (workflow )
42
+
43
+ # Assert
44
+ assert error == "'name' is a required property"
45
+
46
+
47
+ def test_validate_name_with_spaces ():
48
+ # Arrange
49
+ workflow = _MINIMAL .copy ()
50
+ workflow ["name" ] = "workflow with spaces"
51
+
52
+ # Act
53
+ error = decoder .validate_schema (workflow )
54
+
55
+ # Assert
56
+ assert (
57
+ error == "'workflow with spaces' does not match '^[a-z][a-z0-9-]{,63}(?<!-)$'"
58
+ )
Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ properties:
23
23
description :
24
24
type : string
25
25
description : A description of the workflow
26
- author :
27
- type : string
28
- description : The author of the workflow
29
- last-editor :
30
- type : string
31
- description : The last person to modify the workflow
32
26
steps :
33
27
type : array
34
28
items :
You can’t perform that action at this time.
0 commit comments