You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have this object definition, it has two possible definition for the property to.
type: object
properties:
to:
description: >
The recipient of the push message.
There is two way to contact a device, either to specify the device id or to give the device token and its provider.
If the device token and the device id are specified, then the device token will be used.
anyOf:
- $ref: ./NotificationRecipientWithDeviceId.yaml
- $ref: ./NotificationRecipientWithDeviceToken.yaml
Here are the definitions of the two references.
description: >
The recipient of the push message.
There is two way to contact a device, either to specify the device id or to give the device token and its provider.
If the device token and the device id are specified, then the device token will be used.
type: object
properties:
device_token:
description: The unique device token
type: string
example: ed2576bfb93a2e7abc26fc3fc8b43399bb092a79e1db57e39a8bdaeeb6a3924a
provider:
$ref: ./Provider.yaml
required:
- device_token
- provider
description: >
The recipient of the push message.
There is two way to contact a device, either to specify the device id or to give the device token and its provider.
If the device token and the device id are specified, then the device token will be used.
type: object
properties:
device_id:
description: The unique id of the device in SDC
type: string
example: a15e3ff0-fb5b-4026-a7d4-a65aa02bbfb8
required:
- device_id
For the endpoint that uses it I give multiple examples, some with NotificationRecipientWithDeviceId and some with NotificationRecipientWithDeviceToken.
The problem is that when generating the fuzzing tests, Portman only uses the first example to generate its tests. In the first example I pass the property device_id and the test checking for the required property works, but the tests checking for the missing the required properties device_token and provider do not work because it uses the first example given, with the device_id in the body, which is a valid payload for us.
So I have this object definition, it has two possible definition for the property to.
Here are the definitions of the two references.
For the endpoint that uses it I give multiple examples, some with NotificationRecipientWithDeviceId and some with NotificationRecipientWithDeviceToken.
The problem is that when generating the fuzzing tests, Portman only uses the first example to generate its tests. In the first example I pass the property device_id and the test checking for the required property works, but the tests checking for the missing the required properties device_token and provider do not work because it uses the first example given, with the device_id in the body, which is a valid payload for us.
The payload that is expected for [Send push messages[Unprocessable][required [0].to.device_token]] would be either
OR
I think this issue is related to this one #191 in some ways.
The text was updated successfully, but these errors were encountered: