|
1 | 1 | language: python |
2 | | -env: |
3 | | - global: |
4 | | - secure: h6qCuQnKi7fIzR53XqePRg2Hh0NrypqLyvYlJ+GEegEIP2PsPEwXMXZbswD7r+P4zsx7z2mBbR6VVYcjm1s0Zlf8RM2CNJ6IluAzDsg5Er7X7MAPaDEsfGJohZiTOPJvJNOV1BU7Qc4Y8Sqmd5ujVIJ4pL67oMegtmD36QBUAr7ERNrzbDXnPupIkcU/vf3z3vvCnH7/DIyP5hs1P+OAsgHY49bBMXxMEeMYQc0rtCN3F9yCmqh2f1mfEPouQnegKwcVFf3H08WQhYulAyNtrN0kcipMwF9+7cpLWtVyVMKepXvxXC0ltbaUTUqjvg5Op8WLOTG2xwXRdj6Fi985JPCvmsnX9teWT8WyxMex8ig7BVpontPajrhZJPfPWqj+oypqu8GMo/G0xD0uBGIVkadIQI4DQC1xFjKBBwntLdukeOApiAMhBEQtjQ5tO8vZw3kXifBdRHVuVHUjW6Lxd2R0xCKI0ZUmNggDaidsDRSU0C0HmHPHJELfGVm9Ohbsc01dYGiPczplV7Nxc4OKiPBZ5cvoKyNZFmM7ABtMKfGZR9PFv3A+6zzjnqIbHVdszzKN6ODKeotdVRt/VV7cMwZknwUqf7+fE/pjaHGpQ5ubX8wxhPzyxfcJHzKzYklFGCT8Rv/+VooYWJaKyjZ/e63fsjRTfTX84KRpSdWe4U8= |
| 2 | +services: |
| 3 | + - docker |
5 | 4 | python: |
6 | 5 | - '2.7' |
| 6 | +install: |
| 7 | + - sudo apt-get install linux-headers-$(uname -r) dkms gcc-multilib g++-multilib |
| 8 | + - pip install pyyaml requests |
7 | 9 | script: |
8 | 10 | - echo "Testing source version" |
9 | | -- examples/create_alert.py XXX |
10 | | -- examples/update_alert.py XXX |
11 | | -- examples/delete_alert.py XXX |
12 | | -- examples/dashboard.py XXX |
13 | | -- examples/create_dashboard.py XXX |
14 | | -- examples/delete_dashboard.py XXX |
15 | | -- examples/get_data_advanced.py XXX ip-10-0-1-140.ec2.internal |
16 | | -- examples/get_data_datasource.py XXX |
17 | | -- examples/get_data_simple.py XXX |
18 | | -- examples/list_alerts.py XXX |
19 | | -- examples/list_alert_notifications.py XXX |
20 | | -- examples/resolve_alert_notifications.py XXX 1 |
21 | | -- examples/list_dashboards.py XXX |
22 | | -- examples/list_hosts.py XXX |
23 | | -- examples/list_metrics.py XXX |
24 | | -- examples/post_event.py XXX "test_event_name" -d "test event description" |
25 | | -- examples/post_event_simple.py XXX "test_event_name" "test event description" |
26 | | -- examples/list_events.py XXX |
27 | | -- examples/delete_event.py XXX |
28 | | -- examples/print_data_retention_info.py XXX |
29 | | -- examples/print_explore_grouping.py XXX |
30 | | -- examples/print_user_info.py XXX |
31 | | -- examples/list_users.py XXX |
32 | | -- examples/list_sysdig_captures.py XXX |
33 | | -- examples/create_sysdig_capture.py XXX ip-10-0-1-115.ec2.internal apicapture 10 |
34 | | -- examples/notification_channels.py XXX |
35 | | -- examples/user_team_mgmt.py XXX example-team [email protected] |
| 11 | +- examples/create_alert.py $DEMO_KUBE_API_TOKEN |
| 12 | +- examples/update_alert.py $DEMO_KUBE_API_TOKEN |
| 13 | +- examples/delete_alert.py $DEMO_KUBE_API_TOKEN |
| 14 | +- examples/dashboard.py $DEMO_KUBE_API_TOKEN |
| 15 | +- examples/create_dashboard.py $DEMO_KUBE_API_TOKEN |
| 16 | +- examples/delete_dashboard.py $DEMO_KUBE_API_TOKEN |
| 17 | +- examples/get_data_advanced.py $DEMO_KUBE_API_TOKEN ip-10-0-1-140.ec2.internal |
| 18 | +- examples/get_data_datasource.py $DEMO_KUBE_API_TOKEN |
| 19 | +- examples/get_data_simple.py $DEMO_KUBE_API_TOKEN |
| 20 | +- examples/list_alerts.py $DEMO_KUBE_API_TOKEN |
| 21 | +- examples/list_alert_notifications.py $DEMO_KUBE_API_TOKEN |
| 22 | +- examples/resolve_alert_notifications.py $DEMO_KUBE_API_TOKEN 1 |
| 23 | +- examples/list_dashboards.py $DEMO_KUBE_API_TOKEN |
| 24 | +- examples/list_hosts.py $DEMO_KUBE_API_TOKEN |
| 25 | +- examples/list_metrics.py $DEMO_KUBE_API_TOKEN |
| 26 | +- examples/post_event.py $DEMO_KUBE_API_TOKEN "test_event_name" -d "test event description" |
| 27 | +- examples/post_event_simple.py $DEMO_KUBE_API_TOKEN "test_event_name" "test event description" |
| 28 | +- examples/list_events.py $DEMO_KUBE_API_TOKEN |
| 29 | +- examples/delete_event.py $DEMO_KUBE_API_TOKEN |
| 30 | +- examples/print_data_retention_info.py $DEMO_KUBE_API_TOKEN |
| 31 | +- examples/print_explore_grouping.py $DEMO_KUBE_API_TOKEN |
| 32 | +- examples/print_user_info.py $DEMO_KUBE_API_TOKEN |
| 33 | +- examples/list_users.py $DEMO_KUBE_API_TOKEN |
| 34 | +- examples/list_sysdig_captures.py $DEMO_KUBE_API_TOKEN |
| 35 | +- examples/create_sysdig_capture.py $DEMO_KUBE_API_TOKEN ip-10-0-1-115.ec2.internal apicapture 10 |
| 36 | +- examples/notification_channels.py $DEMO_KUBE_API_TOKEN |
| 37 | +- examples/user_team_mgmt.py $DEMO_KUBE_API_TOKEN example-team [email protected] |
| 38 | +- unset SDC_TOKEN |
| 39 | +- bash test/test_secure_apis.sh |
36 | 40 | - echo "Testing pip version" |
37 | 41 | - rm -rf sdcclient |
38 | 42 | - pip install sdcclient |
39 | | -# - examples/create_alert.py XXX |
40 | | -# - examples/delete_alert.py XXX |
41 | | -# - examples/dashboard.py XXX |
42 | | -# - examples/create_dashboard.py XXX |
43 | | -# - examples/delete_dashboard.py XXX |
44 | | -# - examples/get_data_advanced.py XXX ip-10-0-2-180.ec2.internal |
45 | | -# - examples/get_data_datasource.py XXX |
46 | | -# - examples/get_data_simple.py XXX |
47 | | -# - examples/list_alerts.py XXX |
48 | | -# - examples/list_alert_notifications.py XXX |
49 | | -# - examples/resolve_alert_notifications.py XXX 1 |
50 | | -# - examples/list_dashboards.py XXX |
51 | | -# - examples/list_hosts.py XXX |
52 | | -# - examples/list_metrics.py XXX |
53 | | -# - examples/post_event.py XXX "test event name" -d "test event description" |
54 | | -# - examples/post_event_simple.py XXX "test event name" "test event description" |
55 | | -# - examples/list_events.py XXX |
56 | | -# - examples/delete_event.py XXX |
57 | | -# - examples/print_data_retention_info.py XXX |
58 | | -# - examples/print_explore_grouping.py XXX |
59 | | -# - examples/print_user_info.py XXX |
60 | | -# - examples/list_sysdig_captures.py XXX |
61 | | -# - examples/create_sysdig_capture.py XXX ip-10-0-2-202.ec2.internal apicapture 10 |
| 43 | +# - examples/create_alert.py $DEMO_KUBE_API_TOKEN |
| 44 | +# - examples/delete_alert.py $DEMO_KUBE_API_TOKEN |
| 45 | +# - examples/dashboard.py $DEMO_KUBE_API_TOKEN |
| 46 | +# - examples/create_dashboard.py $DEMO_KUBE_API_TOKEN |
| 47 | +# - examples/delete_dashboard.py $DEMO_KUBE_API_TOKEN |
| 48 | +# - examples/get_data_advanced.py $DEMO_KUBE_API_TOKEN ip-10-0-2-180.ec2.internal |
| 49 | +# - examples/get_data_datasource.py $DEMO_KUBE_API_TOKEN |
| 50 | +# - examples/get_data_simple.py $DEMO_KUBE_API_TOKEN |
| 51 | +# - examples/list_alerts.py $DEMO_KUBE_API_TOKEN |
| 52 | +# - examples/list_alert_notifications.py $DEMO_KUBE_API_TOKEN |
| 53 | +# - examples/resolve_alert_notifications.py $DEMO_KUBE_API_TOKEN 1 |
| 54 | +# - examples/list_dashboards.py $DEMO_KUBE_API_TOKEN |
| 55 | +# - examples/list_hosts.py $DEMO_KUBE_API_TOKEN |
| 56 | +# - examples/list_metrics.py $DEMO_KUBE_API_TOKEN |
| 57 | +# - examples/post_event.py $DEMO_KUBE_API_TOKEN "test event name" -d "test event description" |
| 58 | +# - examples/post_event_simple.py $DEMO_KUBE_API_TOKEN "test event name" "test event description" |
| 59 | +# - examples/list_events.py $DEMO_KUBE_API_TOKEN |
| 60 | +# - examples/delete_event.py $DEMO_KUBE_API_TOKEN |
| 61 | +# - examples/print_data_retention_info.py $DEMO_KUBE_API_TOKEN |
| 62 | +# - examples/print_explore_grouping.py $DEMO_KUBE_API_TOKEN |
| 63 | +# - examples/print_user_info.py $DEMO_KUBE_API_TOKEN |
| 64 | +# - examples/list_sysdig_captures.py $DEMO_KUBE_API_TOKEN |
| 65 | +# - examples/create_sysdig_capture.py $DEMO_KUBE_API_TOKEN ip-10-0-2-202.ec2.internal apicapture 10 |
62 | 66 | notifications: |
63 | 67 | slack: |
64 | 68 | secure: GJ0H2wAaW67t3+x+cCjOVLw/b+YAZjH9rebAfluCFJklJS9u+V6/qqIyiNDAkMPIcgilFyhiyOQCZYXapgthQ1ieFbZZo//mrRtuGo2wuxCAwcOx2mXAZpZ4I5b3+Q/znVqSuqkwFRid1d138z4TW7sYSIburouDX3QUNoUOy+g7VJxCFQCcqlN8LYxGJHQYdOZa9zIGCtKrOtZ/B8C1TLgXmDMwAAVNO2WzL4GiBTLCGuMsQWMTLw2Qmv1ayZPztmeDWo1C9oa7HIH8Bg2YVjssR87el28X+EqEO533mgYjPmW2/hii30WVFOUE5hMdvKeQLBvy5N3/OCch1np0RQBd8eYEtaPv38rc5L2wAnUq9G5Zzr252z7vnwSLi6lap9jWU8tOerSTEPU+jG05PnuCnufVDXVNPyiPsH6BDP4qxHmLjooNpxfe63Df7NNyUi2I3QoroLj/UzI7zZVQjJEqsTrr5BbsH4z6NTGY91+ZqobBn62+hV3ESAam0ivQgC7s2AKko0qkKyIUGjj7ozU8ebo1UpagNvKC/J9szMqtdXJgKtG8BeonyLMeN6MEEyEvcMJbB4dCcfet+1Sb9AZWnGvYVdajhVLb1HE6OrbzZyhC3KqCe06J9O5BCY9ncy+l16i7MyIfcKTibHQlxPU+Id/VijD97JSRXxnd2i4= |
0 commit comments