Commit 51d75852 authored by Brad King's avatar Brad King
Browse files

test: Update sample project data

The live Gitlab project from which we fetch sample data has been
updated.  Update our sample and expected results accordingly.
parent b76345d0
......@@ -19,14 +19,14 @@
"description": "Rust library for communicating with a Gitlab instance.",
"empty_repo": false,
"external_authorization_classification_label": null,
"forks_count": 7,
"forks_count": 17,
"http_url_to_repo": "https://gitlab.kitware.com/utils/rust-gitlab.git",
"id": 855,
"import_error": null,
"import_status": "none",
"issues_enabled": true,
"jobs_enabled": false,
"last_activity_at": "2018-05-31T11:08:12.338-04:00",
"last_activity_at": "2019-07-30T12:42:57.649-04:00",
"lfs_enabled": true,
"merge_method": "merge",
"merge_requests_enabled": true,
......@@ -44,7 +44,7 @@
},
"only_allow_merge_if_all_discussions_are_resolved": null,
"only_allow_merge_if_pipeline_succeeds": false,
"open_issues_count": 6,
"open_issues_count": 8,
"path": "rust-gitlab",
"path_with_namespace": "utils/rust-gitlab",
"permissions": {
......@@ -63,7 +63,7 @@
"shared_with_groups": [],
"snippets_enabled": false,
"ssh_url_to_repo": "git@gitlab.kitware.com:utils/rust-gitlab.git",
"star_count": 1,
"star_count": 6,
"tag_list": [],
"visibility": "public",
"web_url": "https://gitlab.kitware.com/utils/rust-gitlab",
......
......@@ -504,7 +504,7 @@ fn test_read_project() {
);
assert_eq!(
project.last_activity_at,
Utc.ymd(2018, 5, 31).and_hms_milli(15, 8, 12, 338),
Utc.ymd(2019, 7, 30).and_hms_milli(16, 42, 57, 649),
);
assert_eq!(project.import_error, None);
assert_eq!(project.shared_runners_enabled, true);
......@@ -524,9 +524,9 @@ fn test_read_project() {
assert!(project.forked_from_project.is_none());
assert_eq!(project.avatar_url, None);
assert_eq!(project.ci_config_path, None);
assert_eq!(project.star_count, 1);
assert_eq!(project.forks_count, 7);
assert_eq!(project.open_issues_count, Some(6));
assert_eq!(project.star_count, 6);
assert_eq!(project.forks_count, 17);
assert_eq!(project.open_issues_count, Some(8));
assert_eq!(project.public_jobs, true);
assert!(project.shared_with_groups.is_empty());
assert_eq!(project.only_allow_merge_if_pipeline_succeeds, Some(false));
......
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