| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,6 +208,8 @@ def create(self, data, **kwargs): | |||
| 208 | 208 | class UpdateMixin(object): | |
| 209 | 209 | def _check_missing_update_attrs(self, data): | |
| 210 | 210 | required, optional = self.get_update_attrs() | |
| 211 | + # Remove the id field from the required list as it was previously moved to the http path. | ||
| 212 | + required = tuple(filter(lambda k: k != self._obj_cls._id_attr, required)) | ||
| 211 | 213 | missing = [] | |
| 212 | 214 | for attr in required: | |
| 213 | 215 | if attr not in data: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,6 +89,31 @@ testcase "merge request validation" ' | |||
| 89 | 89 | --iid "$MR_ID" >/dev/null 2>&1 | |
| 90 | 90 | ' | |
| 91 | 91 | ||
| 92 | + # Test project variables | ||
| 93 | + testcase "create project variable" ' | ||
| 94 | + OUTPUT=$(GITLAB -v project-variable create --project-id $PROJECT_ID \ | ||
| 95 | + --key junk --value car) | ||
| 96 | + ' | ||
| 97 | + | ||
| 98 | + testcase "get project variable" ' | ||
| 99 | + OUTPUT=$(GITLAB -v project-variable get --project-id $PROJECT_ID \ | ||
| 100 | + --key junk) | ||
| 101 | + ' | ||
| 102 | + | ||
| 103 | + testcase "update project variable" ' | ||
| 104 | + OUTPUT=$(GITLAB -v project-variable update --project-id $PROJECT_ID \ | ||
| 105 | + --key junk --value bus) | ||
| 106 | + ' | ||
| 107 | + | ||
| 108 | + testcase "list project variable" ' | ||
| 109 | + OUTPUT=$(GITLAB -v project-variable list --project-id $PROJECT_ID) | ||
| 110 | + ' | ||
| 111 | + | ||
| 112 | + testcase "delete project variable" ' | ||
| 113 | + OUTPUT=$(GITLAB -v project-variable delete --project-id $PROJECT_ID \ | ||
| 114 | + --key junk) | ||
| 115 | + ' | ||
| 116 | + | ||
| 92 | 117 | testcase "branch deletion" ' | |
| 93 | 118 | GITLAB project-branch delete --project-id "$PROJECT_ID" \ | |
| 94 | 119 | --name branch1 >/dev/null 2>&1 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments