-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlib.rs
More file actions
71 lines (68 loc) · 2.61 KB
/
lib.rs
File metadata and controls
71 lines (68 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// A `TestCredentials::instance()` function will be generated by this
include!(concat!(env!("OUT_DIR"), "/generated_test_credentials.rs"));
#[derive(Debug, Default)]
pub struct TestCredentials {
pub site_url: &'static str,
pub admin_username: &'static str,
pub admin_password: &'static str,
pub admin_password_uuid: &'static str,
pub admin_account_password: &'static str,
pub subscriber_username: &'static str,
pub subscriber_password: &'static str,
pub subscriber_password_uuid: &'static str,
pub author_username: &'static str,
pub author_password: &'static str,
pub legacy_admin_user_id: i64,
pub wpbakery_admin_user_id: i64,
pub password_protected_post_id: i64,
pub password_protected_post_password: &'static str,
pub password_protected_post_title: &'static str,
pub password_protected_comment_id: i64,
pub password_protected_comment_author: &'static str,
pub trashed_post_id: i64,
pub first_post_date_gmt: &'static str,
pub wordpress_core_version: &'static str,
pub integration_test_custom_template_id: &'static str,
pub autosaved_template_id: &'static str,
pub autosave_id_for_autosaved_template: i64,
pub integration_test_custom_template_part_id: &'static str,
pub autosaved_template_part_id: &'static str,
pub autosave_id_for_autosaved_template_part: i64,
pub revision_id_for_custom_template: i64,
pub revisioned_post_id: i64,
pub revision_id_for_revisioned_post_id: i64,
pub autosaved_post_id: i64,
pub autosave_id_for_autosaved_post_id: i64,
pub password_protected_page_id: i64,
pub password_protected_page_password: &'static str,
pub password_protected_page_title: &'static str,
pub trashed_page_id: i64,
pub first_page_id: i64,
pub revisioned_page_id: i64,
pub revision_id_for_revisioned_page_id: i64,
pub autosaved_page_id: i64,
pub autosave_id_for_autosaved_page_id: i64,
pub primary_menu_location: &'static str,
pub footer_menu_location: &'static str,
pub nav_menu_item_id: i64,
pub autosave_id_for_nav_menu_item_id: i64,
pub navigation_id: i64,
pub revision_id_for_navigation_id: i64,
pub autosaved_navigation_id: i64,
pub autosave_id_for_autosaved_navigation_id: i64,
}
impl TestCredentials {
pub fn date_format() -> &'static str {
"%Y-%m-%d %H:%M:%S"
}
}
#[derive(Debug, Default)]
pub struct WpComTestCredentials {
pub bearer_token: &'static str,
pub site_id: u64,
pub wp_com_subscriber_user_id: i64,
pub email_subscriber_subscription_id: u64,
pub comment_id: i64,
pub client_id: u64,
pub client_secret: &'static str,
}