Changeset

12966:7465d3c5679d

scansion: Fix tests failing after addition of pubsub#itemreply config field This is a newly added field, and we expect to see it in these places now.
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Mar 2023 14:16:32 +0000
parents 12965:edde56b60fd7
children 12967:53b0730093d8
files spec/scansion/pubsub_config.scs spec/scansion/pubsub_max_items.scs spec/scansion/pubsub_multi_items.scs spec/scansion/pubsub_preconditions.scs
diffstat 4 files changed, 51 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/spec/scansion/pubsub_config.scs	Thu Mar 23 14:15:33 2023 +0000
+++ b/spec/scansion/pubsub_config.scs	Thu Mar 23 14:16:32 2023 +0000
@@ -119,6 +119,18 @@
 					<field var="pubsub#notify_retract" label="Whether to notify subscribers when items are removed from the node" type="boolean">
 						<value>1</value>
 					</field>
+					<field label="Specify whose JID to include as the publisher of items" var="pubsub#itemreply" type="list-single">
+						<option label="Include the node owner's JID">
+							<value>owner</value>
+						</option>
+						<option label="Include the item publisher's JID">
+							<value>publisher</value>
+						</option>
+						<option label="Don't include any JID with items">
+							<value>none</value>
+						</option>
+						<value>none</value>
+					</field>
 				</x>
 			</configure>
 		</pubsub>
--- a/spec/scansion/pubsub_max_items.scs	Thu Mar 23 14:15:33 2023 +0000
+++ b/spec/scansion/pubsub_max_items.scs	Thu Mar 23 14:16:32 2023 +0000
@@ -114,6 +114,18 @@
 		<field var="pubsub#notify_retract" label="Whether to notify subscribers when items are removed from the node" type="boolean">
 		  <value>1</value>
 		</field>
+		<field label="Specify whose JID to include as the publisher of items" var="pubsub#itemreply" type="list-single">
+			<option label="Include the node owner's JID">
+				<value>owner</value>
+			</option>
+			<option label="Include the item publisher's JID">
+				<value>publisher</value>
+			</option>
+			<option label="Don't include any JID with items">
+				<value>none</value>
+			</option>
+			<value>none</value>
+		</field>
 	      </x>
 	    </configure>
 	  </pubsub>
--- a/spec/scansion/pubsub_multi_items.scs	Thu Mar 23 14:15:33 2023 +0000
+++ b/spec/scansion/pubsub_multi_items.scs	Thu Mar 23 14:16:32 2023 +0000
@@ -114,6 +114,18 @@
 		<field var="pubsub#notify_retract" label="Whether to notify subscribers when items are removed from the node" type="boolean">
 		  <value>1</value>
 		</field>
+		<field label="Specify whose JID to include as the publisher of items" var="pubsub#itemreply" type="list-single">
+			<option label="Include the node owner's JID">
+				<value>owner</value>
+			</option>
+			<option label="Include the item publisher's JID">
+				<value>publisher</value>
+			</option>
+			<option label="Don't include any JID with items">
+				<value>none</value>
+			</option>
+			<value>none</value>
+		</field>
 	      </x>
 	    </configure>
 	  </pubsub>
--- a/spec/scansion/pubsub_preconditions.scs	Thu Mar 23 14:15:33 2023 +0000
+++ b/spec/scansion/pubsub_preconditions.scs	Thu Mar 23 14:16:32 2023 +0000
@@ -118,6 +118,18 @@
 					<field var="pubsub#notify_retract" label="Whether to notify subscribers when items are removed from the node" type="boolean">
 						<value>1</value>
 					</field>
+					<field label="Specify whose JID to include as the publisher of items" var="pubsub#itemreply" type="list-single">
+						<option label="Include the node owner's JID">
+							<value>owner</value>
+						</option>
+						<option label="Include the item publisher's JID">
+							<value>publisher</value>
+						</option>
+						<option label="Don't include any JID with items">
+							<value>none</value>
+						</option>
+						<value>none</value>
+					</field>
 				</x>
 			</configure>
 		</pubsub>
@@ -199,6 +211,9 @@
 					<field var="pubsub#notify_retract" type="boolean" label="Whether to notify subscribers when items are removed from the node">
 						<value>1</value>
 					</field>
+					<field var="pubsub#itemreply" type="boolean">
+						<value>none</value>
+					</field>
 				</x>
 			</configure>
 		</pubsub>