1+ //go:build e2e
2+
13/*
24Copyright 2026 The Crossplane Authors.
35
@@ -14,8 +16,6 @@ See the License for the specific language governing permissions and
1416limitations under the License.
1517*/
1618
17- //go:build e2e
18-
1919package instance_test
2020
2121import (
@@ -27,6 +27,7 @@ import (
2727 xpv2 "github.com/crossplane/crossplane-runtime/v2/apis/common/v2"
2828 corev1 "k8s.io/api/core/v1"
2929 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30+ "k8s.io/utils/ptr"
3031
3132 instancev1alpha1 "github.com/crossplane/provider-sonarqube/apis/instance/v1alpha1"
3233 "github.com/crossplane/provider-sonarqube/internal/test/e2e"
@@ -56,7 +57,7 @@ func TestQualityGateCRUD(t *testing.T) {
5657 ForProvider : instancev1alpha1.QualityGateParameters {
5758 Name : qgName ,
5859 Conditions : []instancev1alpha1.QualityGateConditionParameters {
59- {Metric : "blocker_violations" , Op : stringPtr ("GT" ), Error : "0" },
60+ {Metric : "blocker_violations" , Op : ptr . To ("GT" ), Error : "0" },
6061 },
6162 },
6263 },
@@ -104,7 +105,7 @@ func TestQualityGateInvalidMetric(t *testing.T) {
104105 ForProvider : instancev1alpha1.QualityGateParameters {
105106 Name : qgName ,
106107 Conditions : []instancev1alpha1.QualityGateConditionParameters {
107- {Metric : "not_a_real_metric" , Op : stringPtr ("GT" ), Error : "0" },
108+ {Metric : "not_a_real_metric" , Op : ptr . To ("GT" ), Error : "0" },
108109 },
109110 },
110111 },
0 commit comments