// assertRecoverableCondition asserts that 'ConditionTypeRecoverable' condition
// is present in the resource's status and that it's value is equal to
// 'conditionStatus' parameter
assertRecoverableCondition asserts that 'ConditionTypeRecoverable' condition
is present in the resource's status and that it's value is equal to
'conditionStatus' parameter
// assertRecoverableCondition asserts that ' ConditionTypeRecoverable ' condition // is present in the resource ' s status and that it ' s value is equal to // ' conditionStatus ' parameter
func assertRecoverableCondition(
	conditionStatus string,
	require *require.Assertions,
	t *testing.T,
	ctx context.Context,
	kc *ctrlrtclientmock.Client,
	statusWriter *ctrlrtclientmock.StatusWriter,
	res *ackv1alpha1.FieldExport,
	latest *ackv1alpha1.FieldExport,
) {
	kc.AssertCalled(t, "Status")
	statusWriter.AssertCalled(t, "Patch", ctx, mock.AnythingOfType("*v1alpha1.FieldExport"), mock.AnythingOfType("*client.mergeFromPatch"))
	require.Equal(1, len(latest.Status.Conditions))
	require.Equal(ackv1alpha1.ConditionTypeRecoverable, latest.Status.Conditions[0].Type)
	require.Equal(conditionStatus, string(latest.Status.Conditions[0].Status))
	require.NotEqual(latest.Status.Conditions[0].Message, "")
}
func assertRecoverableCondition ( conditionStatus string , require * require . Assertions , t * testing . T , ctx context . Context , kc * ctrlrtclientmock . Client , statusWriter * ctrlrtclientmock . StatusWriter , res * ackv1alpha1 . FieldExport , latest * ackv1alpha1 . FieldExport , ) { kc . AssertCalled ( t , " " ) statusWriter . AssertCalled ( t , " " , ctx , mock . AnythingOfType ( " " ) , mock . AnythingOfType ( " " ) ) require . Equal ( 1 , len ( latest . Status . Conditions ) ) require . Equal ( ackv1alpha1 . ConditionTypeRecoverable , latest . Status . Conditions [ 0 ] . Type ) require . Equal ( conditionStatus , string ( latest . Status . Conditions [ 0 ] . Status ) ) require . NotEqual ( latest . Status . Conditions [ 0 ] . Message , " " ) }
assertRecoverableCondition asserts that 'ConditionTypeRecoverable' condition
is present in the resource's status and that it's value is equal to
'conditionStatus' parameter
assertRecoverableCondition asserts that ' ConditionTypeRecoverable ' condition is present in the resource ' s status and that it ' s value is equal to ' conditionStatus ' parameter
// Only one kind of condition present