@@ -35,11 +35,11 @@ func TestAPIRepoVariables(t *testing.T) {
3535 },
3636 {
3737 Name : "_" ,
38- ExpectedStatus : http .StatusNoContent ,
38+ ExpectedStatus : http .StatusCreated ,
3939 },
4040 {
4141 Name : "TEST_VAR" ,
42- ExpectedStatus : http .StatusNoContent ,
42+ ExpectedStatus : http .StatusCreated ,
4343 },
4444 {
4545 Name : "test_var" ,
@@ -81,7 +81,7 @@ func TestAPIRepoVariables(t *testing.T) {
8181 req := NewRequestWithJSON (t , "POST" , url , api.CreateVariableOption {
8282 Value : "initial_val" ,
8383 }).AddTokenAuth (token )
84- MakeRequest (t , req , http .StatusNoContent )
84+ MakeRequest (t , req , http .StatusCreated )
8585
8686 cases := []struct {
8787 Name string
@@ -138,7 +138,7 @@ func TestAPIRepoVariables(t *testing.T) {
138138 req := NewRequestWithJSON (t , "POST" , url , api.CreateVariableOption {
139139 Value : "initial_val" ,
140140 }).AddTokenAuth (token )
141- MakeRequest (t , req , http .StatusNoContent )
141+ MakeRequest (t , req , http .StatusCreated )
142142
143143 req = NewRequest (t , "DELETE" , url ).AddTokenAuth (token )
144144 MakeRequest (t , req , http .StatusNoContent )
0 commit comments