]> source.dussan.org Git - sonarqube.git/blob
4499dc5e2a1eef72fa5c7b833f4d55d028d6b558
[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"
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     isSecret={true}
77     maxLength={80}
78     onFieldChange={[MockFunction]}
79     overwriteOnly={false}
80     propKey="clientSecret"
81     value=""
82   />
83   <AlmBindingDefinitionFormField
84     help="settings.almintegration.form.private_key.github.help"
85     id="private_key"
86     isSecret={true}
87     isTextArea={true}
88     onFieldChange={[MockFunction]}
89     overwriteOnly={false}
90     propKey="privateKey"
91     value=""
92   />
93 </Fragment>
94 `;
95
96 exports[`should render correctly 2`] = `
97 <Fragment>
98   <AlmBindingDefinitionFormField
99     autoFocus={true}
100     help="settings.almintegration.form.name.github.help"
101     id="name.github"
102     onFieldChange={[MockFunction]}
103     propKey="key"
104     value="key"
105   />
106   <AlmBindingDefinitionFormField
107     help={
108       <React.Fragment>
109         settings.almintegration.form.url.github.help1
110         <br />
111         <em>
112           https://github.company.com/api/v3
113         </em>
114         <br />
115         <br />
116         settings.almintegration.form.url.github.help2
117         <br />
118         <em>
119           https://api.github.com/
120         </em>
121       </React.Fragment>
122     }
123     id="url.github"
124     maxLength={2000}
125     onFieldChange={[MockFunction]}
126     propKey="url"
127     value="http://github.enterprise.com"
128   />
129   <Alert
130     className="big-spacer-top"
131     variant="info"
132   >
133     <FormattedMessage
134       defaultMessage="settings.almintegration.github.info"
135       id="settings.almintegration.github.info"
136       values={
137         Object {
138           "link": <Link
139             onlyActiveOnIndex={false}
140             style={Object {}}
141             target="_blank"
142             to="/documentation/analysis/github-integration/"
143           >
144             learn_more
145           </Link>,
146         }
147       }
148     />
149   </Alert>
150   <AlmBindingDefinitionFormField
151     help="settings.almintegration.form.app_id.github.help"
152     id="app_id"
153     maxLength={80}
154     onFieldChange={[MockFunction]}
155     propKey="appId"
156     value="123456"
157   />
158   <AlmBindingDefinitionFormField
159     help="settings.almintegration.form.client_id.github.help"
160     id="client_id.github"
161     maxLength={80}
162     onFieldChange={[MockFunction]}
163     propKey="clientId"
164     value="client1"
165   />
166   <AlmBindingDefinitionFormField
167     help="settings.almintegration.form.client_secret.github.help"
168     id="client_secret.github"
169     isSecret={true}
170     maxLength={80}
171     onFieldChange={[MockFunction]}
172     overwriteOnly={true}
173     propKey="clientSecret"
174     value="**clientsecret**"
175   />
176   <AlmBindingDefinitionFormField
177     help="settings.almintegration.form.private_key.github.help"
178     id="private_key"
179     isSecret={true}
180     isTextArea={true}
181     onFieldChange={[MockFunction]}
182     overwriteOnly={true}
183     propKey="privateKey"
184     value="asdf1234"
185   />
186 </Fragment>
187 `;