Skip to content

Commit 61d6b5d

Browse files
authored
Merge pull request #203 from phl1x/LocalMaster
Update LARSClient to use tolerates info
2 parents 5772488 + 584e43e commit 61d6b5d

25 files changed

Lines changed: 553 additions & 26 deletions

File tree

upload-lib/src/fat/java/com/ibm/ws/massive/esa/MassiveEsaTest.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import java.util.List;
4848
import java.util.Locale;
4949
import java.util.Map;
50+
import java.util.Map.Entry;
5051
import java.util.zip.ZipEntry;
5152
import java.util.zip.ZipInputStream;
5253

@@ -1231,6 +1232,38 @@ public void testNoSupersedesOrSuperseded() throws RepositoryException {
12311232

12321233
}
12331234

1235+
@Test
1236+
public void testTolerates() throws RepositoryException {
1237+
/**
1238+
* For reference this is a copy of the subsytem content for this asset Subsystem-Content:
1239+
* com.ibm.websphere.appserver.javax.servlet-3.0; ibm.tolerates:="3.1,4.0"; apiJar=false;
1240+
* type="osgi.subsystem.feature", com.ibm.websphere.appserver.classloading-1.0;
1241+
* type="osgi.subsystem.feature", com.ibm.websphere.appserver.ltpa-1.0;
1242+
* type="osgi.subsystem.feature", com.ibm.ws.security.authentication; version="[1.0.0,1.0.200)",
1243+
* com.ibm.ws.security.credentials.wscred; version="[1.0.0,1.0.200)", com.ibm.websphere.security;
1244+
* version="[1.1.0,1.1.200)", com.ibm.ws.security.jaas.common; version="[1.0.0,1.0.200)",
1245+
* com.ibm.ws.security.authentication.builtin; version="[1.0.0,1.0.200)",
1246+
* com.ibm.ws.security.mp.jwt.proxy; version="[1.0.0,1.0.200)"
1247+
*/
1248+
File toleratesEsa = new File(esaDir, "com.ibm.websphere.appserver.builtInAuthentication-1.0.esa");
1249+
EsaResourceImpl resource = (EsaResourceImpl) uploadAsset(toleratesEsa);
1250+
Map<String, Collection<String>> toleratesInfo = resource.getRequireFeatureWithTolerates();
1251+
for (Entry<String, Collection<String>> entry : toleratesInfo.entrySet()) {
1252+
switch (entry.getKey()) {
1253+
// The servlet feature prefers 3.0 but will tolerate 3.1 and 4.0
1254+
case "com.ibm.websphere.appserver.javax.servlet-3.0":
1255+
assertEquals("There should be 2 tolerates entries for servlet dependancy", 2, entry.getValue().size());
1256+
for (String s : entry.getValue()) {
1257+
assertTrue("Tolerates should be either 3.1 or 4.0", (s.equals("3.1") || s.equals("4.0")));
1258+
}
1259+
break;
1260+
default:
1261+
// No other features have tolerates info in them
1262+
assertTrue("The tolerates entries for " + entry.getKey() + " should be empty but wasn't", entry.getValue().isEmpty());
1263+
}
1264+
}
1265+
}
1266+
12341267
private void assertLinkEquals(String expectedLabel,
12351268
String expectedLinkLabelPrefix,
12361269
String expectedLinkLabelSuffix,
@@ -1374,7 +1407,7 @@ public void testExtendedPackage() throws Throwable {
13741407
/**
13751408
* Based on a small set of features make searches to see whether the correct results match each
13761409
* query
1377-
*
1410+
*
13781411
* @throws Throwable
13791412
*/
13801413
public void testSimpleFinds() throws Throwable {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Thu Mar 20 11:26:09 GMT 2014
2+
licenseType=UNSPECIFIED
3+
longDescription=test
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Dodatečné podmínky týkající se funkcí:<br>
8+
<br>
9+
Klepnutím na tlačítko "Souhlasím" vyjadřujete svůj souhlas
10+
s tím, že se na programový kód, vzory, aktualizace, opravy a
11+
související licencované materiály, jako jsou například klíče a
12+
dokumentace ("Kód"), které zamýšlíte stáhnout, vztahují podmínky
13+
licenční smlouvy, s níž jste vyjádřili souhlas při zakoupení
14+
Programu, pro nějž jste Kód získali. Dále souhlasíte s tím, že Kód
15+
budete instalovat nebo užívat výhradně jako součást Programu, pro
16+
který máte platnou smlouvu nebo dokument o oprávnění (Proof of
17+
Entitlement). Výrazy "Program" a "dokument o oprávnění (Proof of
18+
Entitlement)" mají stejný význam jako v Mezinárodní licenční smlouvě IBM
19+
pro Programy (IPLA). Smlouva IPLA je uvedena na adrese http:
20+
//www.ibm.com/software/sla/<br>
21+
<br>
22+
<br>
23+
</BODY>
24+
</HTML>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Zusätzliche Bedingungen für Features<br>
8+
<br>
9+
Durch Klicken auf "Anerkennen" erklären Sie sich damit
10+
einverstanden, dass der Programmcode sowie die Beispiele, Updates, Fixes
11+
und die zugehörigen lizenzierten Materialien wie z. B.
12+
Schlüssel und Dokumentation ("Code"), die Sie jetzt herunterladen,
13+
den Bedingungen der Lizenzvereinbarung unterliegen, die Sie
14+
beim Erwerb des Programms akzeptiert haben, für das Sie den Code
15+
herunterladen. Sie erklären sich ferner damit einverstanden, dass Sie den
16+
Code ausschließlich als Teil eines Programms, für das Sie eine
17+
gültige Vereinbarung oder einen gültigen Berechtigungsnachweis
18+
besitzen, installieren oder nutzen werden. Die Begriffe "Programm"
19+
und "Berechtigungsnachweis" haben dieselbe Bedeutung wie in den
20+
Internationalen Nutzungsbedingungen für Programmpakete ("IPLA"). Der IPLA
21+
kann unter http://www.ibm.com/software/sla/ eingesehen werden.<br>
22+
<br>
23+
<br>
24+
</BODY>
25+
</HTML>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Όροι και Προϋποθέσεις για Πρόσθετες Λειτουργίες:<br>
8+
<br>
9+
Πατώντας το κουμπί "Συμφωνώ", συμφωνείτε ότι ο κώδικας του
10+
προγράμματος, τα δείγματα, οι ενημερώσεις, οι επιδιορθώσεις και τα
11+
σχετικά κατοχυρωμένα με άδεια χρήσης υλικά όπως π.χ. κλειδιά και η
12+
τεκμηρίωση ("Κώδικας") που πρόκειται να μεταφορτώσετε (download)
13+
υπόκεινται στους όρους της σύμβασης άδειας χρήσης που αποδεχθήκατε
14+
όταν αποκτήσατε το Πρόγραμμα για το οποίο αποκτάτε τον Κώδικα.
15+
Συμφωνείτε επίσης ότι θα εγκαθιστάτε και θα χρησιμοποιείτε τον Κώδικα
16+
μόνο ως τμήμα ενός Προγράμματος για το οποίο διαθέτετε έγκυρη
17+
σύμβαση ή Απόδειξη Δικαιώματος. Οι όροι "Πρόγραμμα" και "Απόδειξη
18+
Δικαιώματος" έχουν την ίδια σημασία που έχουν στη Διεθνή Σύμβαση Άδειας
19+
Χρήσης Προγράμματος της IBM (IBM International Program License
20+
Agreement - "Σύμβαση IPLA"). Η Σύμβαση IPLA είναι διαθέσιμη για
21+
αναφορά στην ιστοσελίδα http://www.ibm.com/software/sla/<br>
22+
<br>
23+
<br>
24+
</BODY>
25+
</HTML>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Additional Features Terms & Conditions:<br>
8+
<br>
9+
By clicking on the "I agree" button , you agree that the
10+
program code, samples, updates, fixes and related licensed
11+
materials such as keys and documentation ("Code") that you are about
12+
to download are subject to the terms of the license agreement
13+
that you accepted when you acquired the Program for which you
14+
are obtaining the Code. You further agree that you will install
15+
or use the Code solely as part of a Program for which you have
16+
a valid agreement or Proof of Entitlement. The terms
17+
"Program" and "Proof of Entitlement" have the same meaning as in the
18+
IBM International Program License Agreement ("IPLA"). The IPLA
19+
is available for reference at http://www.ibm.com/software/sla/<br>
20+
<br>
21+
<br>
22+
</BODY>
23+
</HTML>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
<br>
8+
Términos y condiciones de las funciones adicionales<br>
9+
<br>
10+
Al pulsar el botón "I agree", el Licenciatario acepta que
11+
el código del programa, muestras, actualizaciones,
12+
correcciones y materiales relacionados, sujetos a licencia, tales como
13+
claves o documentación ("Código") que está a punto de descargar se
14+
sometan a los términos del acuerdo de licencia que el Licenciatario
15+
aceptara cuando adquirió el Programa para el que obtiene el Código.
16+
El Licenciatario también acepta instalar o utilizar el Código
17+
únicamente como parte de un Programa para el cual haya adquirido un
18+
Documento de Titularidad válido. Los términos "Programa" y "Documento
19+
de Titularidad" tienen el mismo significado que en el Acuerdo
20+
Internacional de Programas bajo Licencia de IBM ("IPLA"). El IPLA se
21+
puede consultar en http://www.ibm.com/software/sla/<br>
22+
<br>
23+
<br>
24+
</BODY>
25+
</HTML>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Dispositions relatives aux fonctionnalités supplémentaires :<br>
8+
<br>
9+
En cliquant sur le bouton "J'accepte", Vous reconnaissez
10+
que le code programme, les exemples, les mises à jour, les
11+
correctifs et les éléments associés sous licence tels que les clés et
12+
la documentation (le "Code") que Vous êtes sur le point de
13+
télécharger sont soumis aux dispositions du Contrat de Licence que Vous
14+
avez accepté lorsque Vous avez acquis le Logiciel pour lequel
15+
Vous avez obtenu le Code. Vous vous engagez en outre à installer
16+
ou à utiliser le Code uniquement dans le cadre de
17+
l'utilisation du Logiciel pour lequel Vous possédez un Contrat de Licence
18+
ou une Autorisation d'Utilisation du Logiciel acquis en toute
19+
légalité. Les termes "Logiciel" et "Autorisation d'Utilisation du
20+
Logiciel" possèdent les mêmes significations que celles figurant dans
21+
les Conditions Internationales d'Utilisation de Logiciels IBM
22+
("IPLA"). Les Conditions Internationales d'Utilisation de Logiciels
23+
sont disponibles pour référence à l'adresse http://www.ibm.
24+
com/software/sla/<br>
25+
<br>
26+
<br>
27+
</BODY>
28+
</HTML>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Syarat & Ketentuan Fitur Tambahan:<br>
8+
<br>
9+
Dengan mengeklik tombol "Saya setuju", Anda menyetujui
10+
bahwa kode, sampel, pembaruan, perbaikan dan materi yang
11+
dilisensikan yang terdapat pada program seperti kode dan dokumentasi
12+
("Kode") yang akan Anda unduh tunduk pada syarat-syarat perjanjian
13+
lisensi yang Anda terima ketika Anda memperoleh Program yang
14+
untuknya Anda mendapatkan Kode. Anda selanjutnya menyetujui bahwa
15+
Anda akan menginstal atau menggunakan Kode semata-mata sebagai
16+
bagian dari Program yang untuknya Anda memiliki perjanjian atau
17+
Bukti Kepemilikan yang valid. Istilah "Program" dan "Bukti
18+
Kepemilikan" memiliki arti yang sama dengan yang ada dalam Perjanjian
19+
Lisensi Program Internasional IBM ("IPLA"). IPLA tersedia sebagai
20+
referensi di http://www.ibm.com/software/sla/<br>
21+
<br>
22+
<br>
23+
</BODY>
24+
</HTML>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<HTML>
2+
<HEAD>
3+
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
4+
<TITLE>Additional Terms</TITLE>
5+
</HEAD>
6+
<BODY>
7+
Clausole &amp; Condizioni per Funzioni Aggiuntive:<br>
8+
<br>
9+
Facendo clic sul pulsante "Accetto", il licenziatario
10+
accetta che il codice programma, gli esempi, gli aggiornamenti, le
11+
fix e i materiali correlati concessi in licenza, come chiavi e
12+
documentazione ("Codice") che il licenziatario sta per scaricare, sono
13+
soggetti alle clausole dell'accordo di licenza accettato
14+
all'acquisizione del Programma per cui si sta ottenendo il Codice. Inoltre
15+
il licenziatario accetta di installare o utilizzare il Codice
16+
solo come parte di un Programma per cui possiede un accordo o
17+
Prova di Titolarità validi. I termini "Programma" e "Prova di
18+
Titolarità" hanno lo stesso significato che nell'IBM International
19+
Program License Agreement ("IPLA"). L'IPLA è disponibile per
20+
riferimento su http://www.ibm.com/software/sla/<br>
21+
<br>
22+
<br>
23+
</BODY>
24+
</HTML>

0 commit comments

Comments
 (0)