]> source.dussan.org Git - sonarqube.git/blob
8cd9fedca983c1d715b200e5adf1f1bf95dfb99d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for 1`] = `
4 <Fragment>
5   <DefaultProjectKey
6     component={
7       Object {
8         "breadcrumbs": Array [],
9         "key": "my-project",
10         "name": "MyProject",
11         "qualifier": "TRK",
12         "qualityGate": Object {
13           "isDefault": true,
14           "key": "30",
15           "name": "Sonar way",
16         },
17         "qualityProfiles": Array [
18           Object {
19             "deleted": false,
20             "key": "my-qp",
21             "language": "ts",
22             "name": "Sonar way",
23           },
24         ],
25         "tags": Array [],
26       }
27     }
28   />
29   <li>
30     onboarding.build.other.os
31     <RenderOptions
32       name="flavorComponent"
33       onCheck={[Function]}
34       optionLabelKey="onboarding.build.other.os"
35       options={
36         Array [
37           "linux",
38           "win",
39           "mac",
40         ]
41       }
42     />
43   </li>
44 </Fragment>
45 `;
46
47 exports[`should render correctly for linux: linux 1`] = `
48 <Fragment>
49   <DefaultProjectKey
50     component={
51       Object {
52         "breadcrumbs": Array [],
53         "key": "my-project",
54         "name": "MyProject",
55         "qualifier": "TRK",
56         "qualityGate": Object {
57           "isDefault": true,
58           "key": "30",
59           "name": "Sonar way",
60         },
61         "qualityProfiles": Array [
62           Object {
63             "deleted": false,
64             "key": "my-qp",
65             "language": "ts",
66             "name": "Sonar way",
67           },
68         ],
69         "tags": Array [],
70       }
71     }
72   />
73   <li>
74     onboarding.build.other.os
75     <RenderOptions
76       checked="linux"
77       name="flavorComponent"
78       onCheck={[Function]}
79       optionLabelKey="onboarding.build.other.os"
80       options={
81         Array [
82           "linux",
83           "win",
84           "mac",
85         ]
86       }
87     />
88   </li>
89   <CreateJenkinsfileBulletPoint
90     alertTranslationKeyPart="onboarding.tutorial.with.jenkins.jenkinsfile.other.step3"
91     snippet="node {
92   stage('SCM') {
93     checkout scm
94   }
95   stage('Download Build Wrapper') {
96     sh \\"mkdir -p .sonar\\"
97     sh \\"curl -sSLo build-wrapper-linux-x86.zip nice_url_sample/static/cpp/build-wrapper-linux-x86.zip\\"
98     sh \\"unzip -o build-wrapper-linux-x86.zip -d .sonar\\"
99   }
100   stage('Build') {
101     sh \\".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>\\"
102   }
103   stage('SonarQube Analysis') {
104     def scannerHome = tool 'SonarScanner';
105     withSonarQubeEnv() {
106       sh \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
107     }
108   }
109 }"
110   >
111     <CompilationInfo />
112   </CreateJenkinsfileBulletPoint>
113   <FinishButton
114     onClick={[MockFunction]}
115   />
116 </Fragment>
117 `;
118
119 exports[`should render correctly for mac: mac 1`] = `
120 <Fragment>
121   <DefaultProjectKey
122     component={
123       Object {
124         "breadcrumbs": Array [],
125         "key": "my-project",
126         "name": "MyProject",
127         "qualifier": "TRK",
128         "qualityGate": Object {
129           "isDefault": true,
130           "key": "30",
131           "name": "Sonar way",
132         },
133         "qualityProfiles": Array [
134           Object {
135             "deleted": false,
136             "key": "my-qp",
137             "language": "ts",
138             "name": "Sonar way",
139           },
140         ],
141         "tags": Array [],
142       }
143     }
144   />
145   <li>
146     onboarding.build.other.os
147     <RenderOptions
148       checked="mac"
149       name="flavorComponent"
150       onCheck={[Function]}
151       optionLabelKey="onboarding.build.other.os"
152       options={
153         Array [
154           "linux",
155           "win",
156           "mac",
157         ]
158       }
159     />
160   </li>
161   <CreateJenkinsfileBulletPoint
162     alertTranslationKeyPart="onboarding.tutorial.with.jenkins.jenkinsfile.other.step3"
163     snippet="node {
164   stage('SCM') {
165     checkout scm
166   }
167   stage('Download Build Wrapper') {
168     sh '''
169       mkdir -p .sonar
170       curl -sSLo build-wrapper-macosx-x86.zip nice_url_sample/static/cpp/build-wrapper-macosx-x86.zip
171       unzip -o build-wrapper-macosx-x86.zip -d .sonar
172     '''
173   }
174   stage('Build') {
175     sh '''
176       .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
177     '''
178   }
179   stage('SonarQube Analysis') {
180     def scannerHome = tool 'SonarScanner';
181     withSonarQubeEnv() {
182       sh \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
183     }
184   }
185 }"
186   >
187     <CompilationInfo />
188   </CreateJenkinsfileBulletPoint>
189   <FinishButton
190     onClick={[MockFunction]}
191   />
192 </Fragment>
193 `;
194
195 exports[`should render correctly for win: win 1`] = `
196 <Fragment>
197   <DefaultProjectKey
198     component={
199       Object {
200         "breadcrumbs": Array [],
201         "key": "my-project",
202         "name": "MyProject",
203         "qualifier": "TRK",
204         "qualityGate": Object {
205           "isDefault": true,
206           "key": "30",
207           "name": "Sonar way",
208         },
209         "qualityProfiles": Array [
210           Object {
211             "deleted": false,
212             "key": "my-qp",
213             "language": "ts",
214             "name": "Sonar way",
215           },
216         ],
217         "tags": Array [],
218       }
219     }
220   />
221   <li>
222     onboarding.build.other.os
223     <RenderOptions
224       checked="win"
225       name="flavorComponent"
226       onCheck={[Function]}
227       optionLabelKey="onboarding.build.other.os"
228       options={
229         Array [
230           "linux",
231           "win",
232           "mac",
233         ]
234       }
235     />
236   </li>
237   <CreateJenkinsfileBulletPoint
238     alertTranslationKeyPart="onboarding.tutorial.with.jenkins.jenkinsfile.other.step3"
239     snippet="node {
240   stage('SCM') {
241     checkout scm
242   }
243   stage('Download Build Wrapper') {
244     powershell '''
245       $path = \\"$HOME/.sonar/build-wrapper-win-x86.zip\\"
246       rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
247       rm $path -Force -ErrorAction SilentlyContinue
248       mkdir $HOME/.sonar
249       [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
250       (New-Object System.Net.WebClient).DownloadFile(nice_url_sample/static/cpp/build-wrapper-win-x86.zip\\", $path)
251       Add-Type -AssemblyName System.IO.Compression.FileSystem
252       [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
253     '''
254   }
255   stage('Build') {
256     powershell '''
257       $env:Path += \\";$HOME/.sonar/build-wrapper-win-x86\\"
258       build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
259     '''
260   }
261   stage('SonarQube Analysis') {
262     def scannerHome = tool 'SonarScanner';
263     withSonarQubeEnv() {
264       powershell \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
265     }
266   }
267 }"
268   >
269     <CompilationInfo />
270   </CreateJenkinsfileBulletPoint>
271   <FinishButton
272     onClick={[MockFunction]}
273   />
274 </Fragment>
275 `;