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