@@ -11,7 +11,7 @@ import (
1111
1212 nic_glog "github.com/nginx/kubernetes-ingress/internal/logger/glog"
1313 "github.com/nginx/kubernetes-ingress/internal/logger/levels"
14- "github.com/nginx/nginx-plus-go-client/v2 /client"
14+ "github.com/nginx/nginx-plus-go-client/v3 /client"
1515
1616 v1 "k8s.io/api/core/v1"
1717 "k8s.io/client-go/kubernetes/fake"
@@ -131,7 +131,7 @@ func TestUsageGraceEnding(t *testing.T) {
131131 }{
132132 {
133133 licenseData : client.NginxLicense {
134- Reporting : client.LicenseReporting {
134+ Reporting : & client.LicenseReporting {
135135 Grace : 3600 , // seconds
136136 },
137137 },
@@ -141,7 +141,7 @@ func TestUsageGraceEnding(t *testing.T) {
141141 },
142142 {
143143 licenseData : client.NginxLicense {
144- Reporting : client.LicenseReporting {
144+ Reporting : & client.LicenseReporting {
145145 Grace : 60 * 60 * 24 * 31 , // 31 days
146146 },
147147 },
@@ -151,14 +151,20 @@ func TestUsageGraceEnding(t *testing.T) {
151151 },
152152 {
153153 licenseData : client.NginxLicense {
154- Reporting : client.LicenseReporting {
154+ Reporting : & client.LicenseReporting {
155155 Grace : 0 ,
156156 },
157157 },
158158 belowExpiringThreshold : true ,
159159 days : 0 ,
160160 name : "Grace period ended" ,
161161 },
162+ {
163+ licenseData : client.NginxLicense {},
164+ belowExpiringThreshold : false ,
165+ days : 0 ,
166+ name : "No grace period" ,
167+ },
162168 }
163169
164170 for _ , tc := range testCases {
0 commit comments