@@ -16,83 +16,83 @@ tests:
16
16
stdout :
17
17
exactly : " []"
18
18
19
- 003 - it successfully creates an event stream :
20
- command : auth0 events create -n integration-test-stream -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}'
21
- exit-code : 0
22
- stdout :
23
- contains :
24
- - " NAME integration-test-stream"
25
- - " TYPE webhook"
26
- - " STATUS enabled"
27
- - " SUBSCRIPTIONS user.created, user.deleted"
28
- 004 - it successfully lists all event streams with data :
29
- command : auth0 events list
30
- exit-code : 0
31
- stdout :
32
- contains :
33
- - ID
34
- - NAME
35
- - TYPE
36
- - STATUS
37
- - SUBSCRIPTIONS
38
- - CONFIGURATION
39
-
40
- 005 - it successfully creates an event streams and outputs in json :
41
- command : auth0 events create -n integration-test-stream1 -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook-new.net","webhook_authorization":{"method":"bearer","token":"123456789"}}' --json
42
- exit-code : 0
43
- stdout :
44
- json :
45
- name : " integration-test-stream1"
46
- status : " enabled"
47
- subscriptions.0.event_type : " user.created"
48
- subscriptions.1.event_type : " user.deleted"
49
- destination.type : " webhook"
50
- destination.configuration.webhook_authorization.method : " bearer"
51
- destination.configuration.webhook_endpoint : " https://mywebhook-new.net"
52
-
53
- 006 - given a test event stream, it successfully gets the event stream details :
54
- command : auth0 events show $(./test/integration/scripts/get-event-stream-id.sh)
55
- exit-code : 0
56
- stdout :
57
- contains :
58
- - " NAME integration-test-event"
59
- - " TYPE webhook"
60
- - " STATUS enabled"
61
- - " SUBSCRIPTIONS user.created, user.deleted"
62
-
63
- 007 - given a test event stream, it successfully gets the event stream details and outputs in json :
64
- command : auth0 events show $(./test/integration/scripts/get-event-stream-id.sh) --json
65
- exit-code : 0
66
- stdout :
67
- json :
68
- name : " integration-test-event"
69
- status : " enabled"
70
- subscriptions.0.event_type : " user.created"
71
- subscriptions.1.event_type : " user.deleted"
72
- destination.type : " webhook"
73
- destination.configuration.webhook_authorization.method : " bearer"
74
- destination.configuration.webhook_endpoint : " https://mywebhook.net"
75
-
76
- 008 - given a test event stream, it successfully updates the event stream details :
77
- command : auth0 events update $(./test/integration/scripts/get-event-stream-id.sh) -n integration-test-event-updated --status enabled --subscriptions "user.created,user.updated"
78
- exit-code : 0
79
- stdout :
80
- contains :
81
- - " NAME integration-test-event-updated"
82
- - " STATUS enabled"
83
- - " SUBSCRIPTIONS user.created, user.updated"
84
-
85
-
86
- 009 - given a test event stream, it successfully updates the event stream details and outputs in json :
87
- command : auth0 events update $(./test/integration/scripts/get-event-stream-id.sh) -n integration-test-event-updated-again --status enabled --subscriptions "user.updated" --json
88
- exit-code : 0
89
- stdout :
90
- json :
91
- name : " integration-test-event-updated-again"
92
- subscriptions.0.event_type : " user.updated"
93
- status : " enabled"
94
-
95
-
96
- 011 - given a test event stream, it successfully deletes the event stream :
97
- command : auth0 events delete $(./test/integration/scripts/get-event-stream-id.sh) --force
98
- exit-code : 0
19
+ # 003 - it successfully creates an event stream:
20
+ # command: auth0 events create -n integration-test-stream -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}'
21
+ # exit-code: 0
22
+ # stdout:
23
+ # contains:
24
+ # - "NAME integration-test-stream"
25
+ # - "TYPE webhook"
26
+ # - "STATUS enabled"
27
+ # - "SUBSCRIPTIONS user.created, user.deleted"
28
+ # 004 - it successfully lists all event streams with data:
29
+ # command: auth0 events list
30
+ # exit-code: 0
31
+ # stdout:
32
+ # contains:
33
+ # - ID
34
+ # - NAME
35
+ # - TYPE
36
+ # - STATUS
37
+ # - SUBSCRIPTIONS
38
+ # - CONFIGURATION
39
+ #
40
+ # 005 - it successfully creates an event streams and outputs in json:
41
+ # command: auth0 events create -n integration-test-stream1 -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook-new.net","webhook_authorization":{"method":"bearer","token":"123456789"}}' --json
42
+ # exit-code: 0
43
+ # stdout:
44
+ # json:
45
+ # name: "integration-test-stream1"
46
+ # status: "enabled"
47
+ # subscriptions.0.event_type: "user.created"
48
+ # subscriptions.1.event_type: "user.deleted"
49
+ # destination.type: "webhook"
50
+ # destination.configuration.webhook_authorization.method: "bearer"
51
+ # destination.configuration.webhook_endpoint: "https://mywebhook-new.net"
52
+ #
53
+ # 006 - given a test event stream, it successfully gets the event stream details:
54
+ # command: auth0 events show $(./test/integration/scripts/get-event-stream-id.sh)
55
+ # exit-code: 0
56
+ # stdout:
57
+ # contains:
58
+ # - "NAME integration-test-event"
59
+ # - "TYPE webhook"
60
+ # - "STATUS enabled"
61
+ # - "SUBSCRIPTIONS user.created, user.deleted"
62
+ #
63
+ # 007 - given a test event stream, it successfully gets the event stream details and outputs in json:
64
+ # command: auth0 events show $(./test/integration/scripts/get-event-stream-id.sh) --json
65
+ # exit-code: 0
66
+ # stdout:
67
+ # json:
68
+ # name: "integration-test-event"
69
+ # status: "enabled"
70
+ # subscriptions.0.event_type: "user.created"
71
+ # subscriptions.1.event_type: "user.deleted"
72
+ # destination.type: "webhook"
73
+ # destination.configuration.webhook_authorization.method: "bearer"
74
+ # destination.configuration.webhook_endpoint: "https://mywebhook.net"
75
+ #
76
+ # 008 - given a test event stream, it successfully updates the event stream details:
77
+ # command: auth0 events update $(./test/integration/scripts/get-event-stream-id.sh) -n integration-test-event-updated --status enabled --subscriptions "user.created,user.updated"
78
+ # exit-code: 0
79
+ # stdout:
80
+ # contains:
81
+ # - "NAME integration-test-event-updated"
82
+ # - "STATUS enabled"
83
+ # - "SUBSCRIPTIONS user.created, user.updated"
84
+ #
85
+ #
86
+ # 009 - given a test event stream, it successfully updates the event stream details and outputs in json:
87
+ # command: auth0 events update $(./test/integration/scripts/get-event-stream-id.sh) -n integration-test-event-updated-again --status enabled --subscriptions "user.updated" --json
88
+ # exit-code: 0
89
+ # stdout:
90
+ # json:
91
+ # name: "integration-test-event-updated-again"
92
+ # subscriptions.0.event_type: "user.updated"
93
+ # status: "enabled"
94
+ #
95
+ #
96
+ # 011 - given a test event stream, it successfully deletes the event stream:
97
+ # command: auth0 events delete $(./test/integration/scripts/get-event-stream-id.sh) --force
98
+ # exit-code: 0
0 commit comments