forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRpmDashboardsDistValidation_Jenkinsfile.txt
50 lines (50 loc) · 5.18 KB
/
RpmDashboardsDistValidation_Jenkinsfile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RpmDashboardsDistValidation_Jenkinsfile.run()
RpmDashboardsDistValidation_Jenkinsfile.pipeline(groovy.lang.Closure)
RpmDashboardsDistValidation_Jenkinsfile.echo(Executing on agent [label:none])
RpmDashboardsDistValidation_Jenkinsfile.stage(validate RPM meta, groovy.lang.Closure)
RpmDashboardsDistValidation_Jenkinsfile.script(groovy.lang.Closure)
RpmDashboardsDistValidation_Jenkinsfile.rpmDashboardsDistValidation({bundleManifest=tests/jenkins/data/opensearch-dashboards-1.3.0-x64-rpm.yml, rpmDistribution=/tmp/workspace/opensearch-dashboards-1.3.0-linux-x64.rpm})
rpmDashboardsDistValidation.legacySCM(groovy.lang.Closure)
rpmDashboardsDistValidation.library({identifier=jenkins@20211123, retriever=null})
rpmDashboardsDistValidation.readYaml({file=tests/jenkins/data/opensearch-dashboards-1.3.0-x64-rpm.yml})
BundleManifest.asBoolean()
BundleManifest.getNames()
rpmDashboardsDistValidation.rpmMetaValidation({rpmDistribution=/tmp/workspace/opensearch-dashboards-1.3.0-linux-x64.rpm, refMap={Name=opensearch-dashboards, Version=1.3.0, Architecture=x64, Group=Application/Internet, License=Apache-2.0, Relocations=(not relocatable), URL=https://opensearch.org/, Summary=Open source visualization dashboards for OpenSearch, Description=OpenSearch Dashboards is the visualization tool for data in OpenSearch
For more information, see: https://opensearch.org/}})
rpmMetaValidation.sh({script=rpm -qip /tmp/workspace/opensearch-dashboards-1.3.0-linux-x64.rpm, returnStdout=true})
rpmMetaValidation.println(Meta data for Name is validated)
rpmMetaValidation.println(Meta data for Version is validated)
rpmMetaValidation.println(Meta data for Architecture is validated)
rpmMetaValidation.println(Meta data for Group is validated)
rpmMetaValidation.println(Meta data for License is validated)
rpmMetaValidation.println(Meta data for Relocations is validated)
rpmMetaValidation.println(Meta data for URL is validated)
rpmMetaValidation.println(Meta data for Summary is validated)
rpmMetaValidation.println(Meta data for Description is validated)
rpmMetaValidation.sh({script=rpm -K -v /tmp/workspace/opensearch-dashboards-1.3.0-linux-x64.rpm, returnStdout=true})
rpmDashboardsDistValidation.rpmCommands({command=install, product=opensearch-1.3.0})
rpmCommands.sh(yum install -y opensearch-1.3.0)
rpmDashboardsDistValidation.rpmCommands({command=install, product=opensearch-dashboards-1.3.0})
rpmCommands.sh(yum install -y opensearch-dashboards-1.3.0)
rpmDashboardsDistValidation.systemdCommands({command=start, product=opensearch})
systemdCommands.sh(systemctl start opensearch)
rpmDashboardsDistValidation.systemdCommands({command=start, product=opensearch-dashboards})
systemdCommands.sh(systemctl start opensearch-dashboards)
rpmDashboardsDistValidation.systemdCommands({command=status, product=opensearch-dashboards})
systemdCommands.sh({script=systemctl status opensearch-dashboards, returnStdout=true})
rpmDashboardsDistValidation.sh({script=curl -s "http://localhost:5601/api/status" -u admin:admin, returnStatus=true})
rpmDashboardsDistValidation.sh({script=curl -s "http://localhost:5601/api/status" -u admin:admin, returnStdout=true})
rpmDashboardsDistValidation.readJSON({text=['name':'dummy_desktop', 'uuid':'c4677c7a-d76f-45eb-a124-7e30d2b10e4b', 'version':['number':'1.3.0', 'build_hash':'00e06934211e9819f99aabbf139885682f33e95e', 'build_number':1, 'build_snapshot':false], 'status':['overall':['since':'2022-04-07T21:54:39.960Z', 'state':'green', 'title':'Green', 'nickname':'Looking good', 'icon':'success', 'uiColor':'secondary']]]})
rpmDashboardsDistValidation.sh({script=/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin list --allow-root, returnStdout=true})
BundleManifest.getLocation(ganttChartDashboards)
BundleManifest.getLocation(anomalyDetectionDashboards)
BundleManifest.getLocation(securityDashboards)
BundleManifest.getLocation(reportsDashboards)
rpmDashboardsDistValidation.systemdCommands({command=stop, product=opensearch-dashboards})
systemdCommands.sh(systemctl stop opensearch-dashboards)
rpmDashboardsDistValidation.rpmCommands({command=remove, product=opensearch-dashboards})
rpmCommands.sh(yum remove -y opensearch-dashboards)
rpmDashboardsDistValidation.systemdCommands({command=stop, product=opensearch})
systemdCommands.sh(systemctl stop opensearch)
rpmDashboardsDistValidation.rpmCommands({command=remove, product=opensearch})
rpmCommands.sh(yum remove -y opensearch)