@@ -35,8 +35,8 @@ func TestActionsService_ListRepoVariables(t *testing.T) {
35
35
want := & ActionsVariables {
36
36
TotalCount : 4 ,
37
37
Variables : []* ActionsVariable {
38
- {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
39
- {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
38
+ {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
39
+ {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
40
40
},
41
41
}
42
42
if ! cmp .Equal (variables , want ) {
@@ -78,8 +78,8 @@ func TestActionsService_ListRepoOrgVariables(t *testing.T) {
78
78
want := & ActionsVariables {
79
79
TotalCount : 4 ,
80
80
Variables : []* ActionsVariable {
81
- {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
82
- {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
81
+ {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
82
+ {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
83
83
},
84
84
}
85
85
if ! cmp .Equal (variables , want ) {
@@ -119,8 +119,8 @@ func TestActionsService_GetRepoVariable(t *testing.T) {
119
119
want := & ActionsVariable {
120
120
Name : "NAME" ,
121
121
Value : "VALUE" ,
122
- CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
123
- UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
122
+ CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
123
+ UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
124
124
}
125
125
if ! cmp .Equal (variable , want ) {
126
126
t .Errorf ("Actions.GetRepoVariable returned %+v, want %+v" , variable , want )
@@ -296,8 +296,8 @@ func TestActionsService_GetOrgVariable(t *testing.T) {
296
296
want := & ActionsVariable {
297
297
Name : "NAME" ,
298
298
Value : "VALUE" ,
299
- CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
300
- UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
299
+ CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
300
+ UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
301
301
Visibility : Ptr ("selected" ),
302
302
SelectedRepositoriesURL : Ptr ("https://api.github.com/orgs/octo-org/actions/variables/VAR/repositories" ),
303
303
}
@@ -573,8 +573,8 @@ func TestActionsService_ListEnvVariables(t *testing.T) {
573
573
want := & ActionsVariables {
574
574
TotalCount : 4 ,
575
575
Variables : []* ActionsVariable {
576
- {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
577
- {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )}},
576
+ {Name : "A" , Value : "AA" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
577
+ {Name : "B" , Value : "BB" , CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}, UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )}},
578
578
},
579
579
}
580
580
if ! cmp .Equal (variables , want ) {
@@ -614,8 +614,8 @@ func TestActionsService_GetEnvVariable(t *testing.T) {
614
614
want := & ActionsVariable {
615
615
Name : "variable" ,
616
616
Value : "VAR" ,
617
- CreatedAt : & Timestamp {time .Date (2019 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
618
- UpdatedAt : & Timestamp {time .Date (2020 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )},
617
+ CreatedAt : & Timestamp {time .Date (2019 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
618
+ UpdatedAt : & Timestamp {time .Date (2020 , time .January , 2 , 15 , 4 , 5 , 0 , time .UTC )},
619
619
}
620
620
if ! cmp .Equal (variable , want ) {
621
621
t .Errorf ("Actions.GetEnvVariable returned %+v, want %+v" , variable , want )
0 commit comments