]> source.dussan.org Git - sonarqube.git/blob
1abc6baade561e24cbdc99c6e1fa63166aa6365a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <AlmBindingDefinitionFormField
6     autoFocus={true}
7     help="settings.almintegration.form.name.github.help"
8     id="name.github"
9     maxLength={200}
10     onFieldChange={[MockFunction]}
11     propKey="key"
12     value=""
13   />
14   <AlmBindingDefinitionFormField
15     help={
16       <React.Fragment>
17         settings.almintegration.form.url.github.help1
18         <br />
19         <em>
20           https://github.company.com/api/v3
21         </em>
22         <br />
23         <br />
24         settings.almintegration.form.url.github.help2
25         <br />
26         <em>
27           https://api.github.com/
28         </em>
29       </React.Fragment>
30     }
31     id="url.github"
32     maxLength={2000}
33     onFieldChange={[MockFunction]}
34     propKey="url"
35     value=""
36   />
37   <Alert
38     className="big-spacer-top"
39     variant="info"
40   >
41     <FormattedMessage
42       defaultMessage="settings.almintegration.github.info"
43       id="settings.almintegration.github.info"
44       values={
45         {
46           "link": <withAppStateContext(DocLink)
47             to="/devops-platform-integration/github-integration/"
48           >
49             learn_more
50           </withAppStateContext(DocLink)>,
51         }
52       }
53     />
54   </Alert>
55   <AlmBindingDefinitionFormField
56     help="settings.almintegration.form.app_id.github.help"
57     id="app_id"
58     maxLength={80}
59     onFieldChange={[MockFunction]}
60     propKey="appId"
61     value=""
62   />
63   <AlmBindingDefinitionFormField
64     help="settings.almintegration.form.client_id.github.help"
65     id="client_id.github"
66     maxLength={80}
67     onFieldChange={[MockFunction]}
68     propKey="clientId"
69     value=""
70   />
71   <AlmBindingDefinitionFormField
72     help="settings.almintegration.form.client_secret.github.help"
73     id="client_secret.github"
74     isSecret={true}
75     maxLength={160}
76     onFieldChange={[MockFunction]}
77     overwriteOnly={false}
78     propKey="clientSecret"
79     value=""
80   />
81   <AlmBindingDefinitionFormField
82     help="settings.almintegration.form.private_key.github.help"
83     id="private_key"
84     isSecret={true}
85     isTextArea={true}
86     maxLength={2500}
87     onFieldChange={[MockFunction]}
88     overwriteOnly={false}
89     propKey="privateKey"
90     value=""
91   />
92   <AlmBindingDefinitionFormField
93     help="settings.almintegration.form.webhook_secret.github.help"
94     id="webhook_secret.github"
95     isSecret={true}
96     maxLength={160}
97     onFieldChange={[MockFunction]}
98     optional={true}
99     overwriteOnly={false}
100     propKey="webhookSecret"
101     value=""
102   />
103 </Fragment>
104 `;
105
106 exports[`should render correctly 2`] = `
107 <Fragment>
108   <AlmBindingDefinitionFormField
109     autoFocus={true}
110     help="settings.almintegration.form.name.github.help"
111     id="name.github"
112     maxLength={200}
113     onFieldChange={[MockFunction]}
114     propKey="key"
115     value="key"
116   />
117   <AlmBindingDefinitionFormField
118     help={
119       <React.Fragment>
120         settings.almintegration.form.url.github.help1
121         <br />
122         <em>
123           https://github.company.com/api/v3
124         </em>
125         <br />
126         <br />
127         settings.almintegration.form.url.github.help2
128         <br />
129         <em>
130           https://api.github.com/
131         </em>
132       </React.Fragment>
133     }
134     id="url.github"
135     maxLength={2000}
136     onFieldChange={[MockFunction]}
137     propKey="url"
138     value="http://github.enterprise.com"
139   />
140   <Alert
141     className="big-spacer-top"
142     variant="info"
143   >
144     <FormattedMessage
145       defaultMessage="settings.almintegration.github.info"
146       id="settings.almintegration.github.info"
147       values={
148         {
149           "link": <withAppStateContext(DocLink)
150             to="/devops-platform-integration/github-integration/"
151           >
152             learn_more
153           </withAppStateContext(DocLink)>,
154         }
155       }
156     />
157   </Alert>
158   <AlmBindingDefinitionFormField
159     help="settings.almintegration.form.app_id.github.help"
160     id="app_id"
161     maxLength={80}
162     onFieldChange={[MockFunction]}
163     propKey="appId"
164     value="123456"
165   />
166   <AlmBindingDefinitionFormField
167     help="settings.almintegration.form.client_id.github.help"
168     id="client_id.github"
169     maxLength={80}
170     onFieldChange={[MockFunction]}
171     propKey="clientId"
172     value="client1"
173   />
174   <AlmBindingDefinitionFormField
175     help="settings.almintegration.form.client_secret.github.help"
176     id="client_secret.github"
177     isSecret={true}
178     maxLength={160}
179     onFieldChange={[MockFunction]}
180     overwriteOnly={true}
181     propKey="clientSecret"
182     value="**clientsecret**"
183   />
184   <AlmBindingDefinitionFormField
185     help="settings.almintegration.form.private_key.github.help"
186     id="private_key"
187     isSecret={true}
188     isTextArea={true}
189     maxLength={2500}
190     onFieldChange={[MockFunction]}
191     overwriteOnly={true}
192     propKey="privateKey"
193     value="asdf1234"
194   />
195   <AlmBindingDefinitionFormField
196     help="settings.almintegration.form.webhook_secret.github.help"
197     id="webhook_secret.github"
198     isSecret={true}
199     maxLength={160}
200     onFieldChange={[MockFunction]}
201     optional={true}
202     overwriteOnly={true}
203     propKey="webhookSecret"
204     value="verySecretText!!"
205   />
206 </Fragment>
207 `;