File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : snippets
2
2
path : snippets/
3
+ vars :
4
+ greeting : hello ${USER}
3
5
headers :
4
6
Authorization : Token ${token}
5
7
requests :
6
8
- name : create
7
9
method : post
8
10
body :
9
11
title : Hello World
10
- code : " print('hello world ')"
12
+ code : " print('${greeting} ')"
11
13
style : " xcode"
12
14
language : " python"
13
15
vars :
14
16
snippet_id : ${{response.json()["id"]}}
17
+ my_var_1 : my_var_1_value
18
+ my_var_2 : ${{ 'my_var_2_value' }}
15
19
tests :
16
20
- !include tests/status_code_is_201.yaml
17
21
- !include tests/response_time_2_seconds.yaml
@@ -25,6 +29,10 @@ requests:
25
29
- !include tests/language_in_content.yaml
26
30
- !include tests/style_in_content.yaml
27
31
- name : details
32
+ vars :
33
+ my_var_3 : ${my_var_1}
34
+ my_var_4 : ${my_var_2}
35
+
28
36
path : ${snippet_id}/
29
37
tests :
30
38
- !include tests/status_code_is_200.yaml
@@ -40,7 +48,7 @@ requests:
40
48
- !include tests/style_in_content.yaml
41
49
42
50
- name : update_with_patch
43
- path : ${snippet_id}/
51
+ path : ${snippet_id}/?${my_var_3}&${my_var_4}
44
52
method : patch
45
53
body :
46
54
code : " print('hello, patch')"
@@ -61,7 +69,7 @@ requests:
61
69
method : put
62
70
body :
63
71
title : Hello World - Ruby
64
- code : " puts 'hello world '"
72
+ code : " puts '${greeting} '"
65
73
style : " emacs"
66
74
language : " ruby"
67
75
tests :
You can’t perform that action at this time.
0 commit comments