An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit b76345d0 authored by Brad King's avatar Brad King
Browse files

test: Update sample issue data

In order to generate data for commit e0312dcf (types: Add resource label
events, 2019-07-16, v0.1200.1~1^2~1) a label was added to our sample
issue.  Fetch updated data for the issue and revise expected values.
parent 8b4691a8
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
"has_tasks": false, "has_tasks": false,
"id": 69328, "id": 69328,
"iid": 6, "iid": 6,
"labels": [], "labels": [
"area:doc"
],
"merge_requests_count": 1, "merge_requests_count": 1,
"milestone": null, "milestone": null,
"project_id": 855, "project_id": 855,
...@@ -59,7 +61,7 @@ ...@@ -59,7 +61,7 @@
"total_time_spent": 0 "total_time_spent": 0
}, },
"title": "fix documentation warnings", "title": "fix documentation warnings",
"updated_at": "2017-07-07T02:31:03.757-04:00", "updated_at": "2019-07-17T09:53:48.869-04:00",
"upvotes": 0, "upvotes": 0,
"user_notes_count": 0, "user_notes_count": 0,
"web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/6" "web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/6"
......
...@@ -151,11 +151,12 @@ fn test_read_issue() { ...@@ -151,11 +151,12 @@ fn test_read_issue() {
); );
assert_eq!( assert_eq!(
issue.updated_at, issue.updated_at,
Utc.ymd(2017, 7, 7).and_hms_milli(6, 31, 03, 757), Utc.ymd(2019, 7, 17).and_hms_milli(13, 53, 48, 869),
); );
assert_eq!(issue.closed_at, None); assert_eq!(issue.closed_at, None);
assert!(issue.closed_by.is_none()); assert!(issue.closed_by.is_none());
assert!(issue.labels.is_empty()); assert_eq!(issue.labels.len(), 1);
assert_eq!(issue.labels[0], "area:doc");
assert!(issue.milestone.is_none()); assert!(issue.milestone.is_none());
assert_eq!(issue.author.username, "ben.boeckel"); assert_eq!(issue.author.username, "ben.boeckel");
assert_eq!( assert_eq!(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment