-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
654 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Create/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-MongoDB-Create"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="MongoDB-Create" type="atyIgeneral:Script" id="MongoDB-Create"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/MongoDB-Create/files/create.sh"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
9 changes: 9 additions & 0 deletions
9
...es/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Create/files/create.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | sudo apt-key add - | ||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list | ||
sudo apt-get update -y | ||
sudo apt-get install -y mongodb-org | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable mongod | ||
sudo systemctl stop mongod | ||
exit 0 |
1 change: 1 addition & 0 deletions
1
...3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Create/files/create.sh.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sh |
8 changes: 8 additions & 0 deletions
8
...edmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Schema-Configure/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-MongoDB-Schema-Configure"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="MongoDB-Schema-Configure" type="atyIgeneral:Script" id="MongoDB-Schema-Configure"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/MongoDB-Schema-Configure/files/configure.sh"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
8 changes: 8 additions & 0 deletions
8
...F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Schema-Configure/files/configure.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
if [[ -d "/docker-entrypoint-initdb.d" ]]; then | ||
find . -type f -name '*.js' -exec cp {} /docker-entrypoint-initdb.d \; | ||
else | ||
file_name=$(find . -type f -name '*.js') | ||
mongo localhost:27017/${SCHEMA_NAME} $file_name | ||
fi | ||
exit 0 |
1 change: 1 addition & 0 deletions
1
...uni-stuttgart.de%2Fartifacttemplates/MongoDB-Schema-Configure/files/configure.sh.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sh |
8 changes: 8 additions & 0 deletions
8
...ps%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Start/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-MongoDB-Start"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="MongoDB-Start" type="atyIgeneral:Script" id="MongoDB-Start"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/MongoDB-Start/files/start.sh"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
3 changes: 3 additions & 0 deletions
3
...ates/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Start/files/start.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
sudo systemctl start mongod | ||
exit 0 |
1 change: 1 addition & 0 deletions
1
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/MongoDB-Start/files/start.sh.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sh |
8 changes: 8 additions & 0 deletions
8
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Carts/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Carts"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Carts" type="atyIgeneral:JAR" id="SockShop-Carts"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Carts/files/carts.jar"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
Binary file added
BIN
+28.8 MB
...es/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Carts/files/carts.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Carts/files/carts.jar.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/java-archive |
8 changes: 8 additions & 0 deletions
8
...Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue-Data/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Catalogue-Data"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Catalogue-Data" type="atyIgeneral:SQL" id="SockShop-Catalogue-Data"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Catalogue-Data/files/dump.sql"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
82 changes: 82 additions & 0 deletions
82
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue-Data/files/dump.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
CREATE USER IF NOT EXISTS 'catalogue_user' IDENTIFIED BY 'default_password'; | ||
|
||
GRANT ALL ON socksdb.* TO 'catalogue_user'; | ||
|
||
CREATE TABLE IF NOT EXISTS sock ( | ||
sock_id varchar(40) NOT NULL, | ||
name varchar(20), | ||
description varchar(200), | ||
price float, | ||
count int, | ||
image_url_1 varchar(40), | ||
image_url_2 varchar(40), | ||
PRIMARY KEY(sock_id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS tag ( | ||
tag_id MEDIUMINT NOT NULL AUTO_INCREMENT, | ||
name varchar(20), | ||
PRIMARY KEY(tag_id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS sock_tag ( | ||
sock_id varchar(40), | ||
tag_id MEDIUMINT NOT NULL, | ||
FOREIGN KEY (sock_id) | ||
REFERENCES sock(sock_id), | ||
FOREIGN KEY(tag_id) | ||
REFERENCES tag(tag_id) | ||
); | ||
|
||
INSERT INTO sock VALUES ("6d62d909-f957-430e-8689-b5129c0bb75e", "Weave special", "Limited issue Weave socks.", 17.15, 33, "/catalogue/images/weave1.jpg", "/catalogue/images/weave2.jpg"); | ||
INSERT INTO sock VALUES ("a0a4f044-b040-410d-8ead-4de0446aec7e", "Nerd leg", "For all those leg lovers out there. A perfect example of a swivel chair trained calf. Meticulously trained on a diet of sitting and Pina Coladas. Phwarr...", 7.99, 115, "/catalogue/images/bit_of_leg_1.jpeg", "/catalogue/images/bit_of_leg_2.jpeg"); | ||
INSERT INTO sock VALUES ("808a2de1-1aaa-4c25-a9b9-6612e8f29a38", "Crossed", "A mature sock, crossed, with an air of nonchalance.", 17.32, 738, "/catalogue/images/cross_1.jpeg", "/catalogue/images/cross_2.jpeg"); | ||
INSERT INTO sock VALUES ("510a0d7e-8e83-4193-b483-e27e09ddc34d", "SuperSport XL", "Ready for action. Engineers: be ready to smash that next bug! Be ready, with these super-action-sport-masterpieces. This particular engineer was chased away from the office with a stick.", 15.00, 820, "/catalogue/images/puma_1.jpeg", "/catalogue/images/puma_2.jpeg"); | ||
INSERT INTO sock VALUES ("03fef6ac-1896-4ce8-bd69-b798f85c6e0b", "Holy", "Socks fit for a Messiah. You too can experience walking in water with these special edition beauties. Each hole is lovingly proggled to leave smooth edges. The only sock approved by a higher power.", 99.99, 1, "/catalogue/images/holy_1.jpeg", "/catalogue/images/holy_2.jpeg"); | ||
INSERT INTO sock VALUES ("d3588630-ad8e-49df-bbd7-3167f7efb246", "YouTube.sock", "We were not paid to sell this sock. It's just a bit geeky.", 10.99, 801, "/catalogue/images/youtube_1.jpeg", "/catalogue/images/youtube_2.jpeg"); | ||
INSERT INTO sock VALUES ("819e1fbf-8b7e-4f6d-811f-693534916a8b", "Figueroa", "enim officia aliqua excepteur esse deserunt quis aliquip nostrud anim", 14, 808, "/catalogue/images/WAT.jpg", "/catalogue/images/WAT2.jpg"); | ||
INSERT INTO sock VALUES ("zzz4f044-b040-410d-8ead-4de0446aec7e", "Classic", "Keep it simple.", 12, 127, "/catalogue/images/classic.jpg", "/catalogue/images/classic2.jpg"); | ||
INSERT INTO sock VALUES ("3395a43e-2d88-40de-b95f-e00e1502085b", "Colourful", "proident occaecat irure et excepteur labore minim nisi amet irure", 18, 438, "/catalogue/images/colourful_socks.jpg", "/catalogue/images/colourful_socks.jpg"); | ||
INSERT INTO sock VALUES ("837ab141-399e-4c1f-9abc-bace40296bac", "Cat socks", "consequat amet cupidatat minim laborum tempor elit ex consequat in", 15, 175, "/catalogue/images/catsocks.jpg", "/catalogue/images/catsocks2.jpg"); | ||
|
||
INSERT INTO tag (name) VALUES ("brown"); | ||
INSERT INTO tag (name) VALUES ("geek"); | ||
INSERT INTO tag (name) VALUES ("formal"); | ||
INSERT INTO tag (name) VALUES ("blue"); | ||
INSERT INTO tag (name) VALUES ("skin"); | ||
INSERT INTO tag (name) VALUES ("red"); | ||
INSERT INTO tag (name) VALUES ("action"); | ||
INSERT INTO tag (name) VALUES ("sport"); | ||
INSERT INTO tag (name) VALUES ("black"); | ||
INSERT INTO tag (name) VALUES ("magic"); | ||
INSERT INTO tag (name) VALUES ("green"); | ||
|
||
INSERT INTO sock_tag VALUES ("6d62d909-f957-430e-8689-b5129c0bb75e", "2"); | ||
INSERT INTO sock_tag VALUES ("6d62d909-f957-430e-8689-b5129c0bb75e", "9"); | ||
INSERT INTO sock_tag VALUES ("a0a4f044-b040-410d-8ead-4de0446aec7e", "4"); | ||
INSERT INTO sock_tag VALUES ("a0a4f044-b040-410d-8ead-4de0446aec7e", "5"); | ||
INSERT INTO sock_tag VALUES ("808a2de1-1aaa-4c25-a9b9-6612e8f29a38", "4"); | ||
INSERT INTO sock_tag VALUES ("808a2de1-1aaa-4c25-a9b9-6612e8f29a38", "6"); | ||
INSERT INTO sock_tag VALUES ("808a2de1-1aaa-4c25-a9b9-6612e8f29a38", "7"); | ||
INSERT INTO sock_tag VALUES ("808a2de1-1aaa-4c25-a9b9-6612e8f29a38", "3"); | ||
INSERT INTO sock_tag VALUES ("510a0d7e-8e83-4193-b483-e27e09ddc34d", "8"); | ||
INSERT INTO sock_tag VALUES ("510a0d7e-8e83-4193-b483-e27e09ddc34d", "9"); | ||
INSERT INTO sock_tag VALUES ("510a0d7e-8e83-4193-b483-e27e09ddc34d", "3"); | ||
INSERT INTO sock_tag VALUES ("03fef6ac-1896-4ce8-bd69-b798f85c6e0b", "10"); | ||
INSERT INTO sock_tag VALUES ("03fef6ac-1896-4ce8-bd69-b798f85c6e0b", "7"); | ||
INSERT INTO sock_tag VALUES ("d3588630-ad8e-49df-bbd7-3167f7efb246", "2"); | ||
INSERT INTO sock_tag VALUES ("d3588630-ad8e-49df-bbd7-3167f7efb246", "3"); | ||
INSERT INTO sock_tag VALUES ("819e1fbf-8b7e-4f6d-811f-693534916a8b", "3"); | ||
INSERT INTO sock_tag VALUES ("819e1fbf-8b7e-4f6d-811f-693534916a8b", "11"); | ||
INSERT INTO sock_tag VALUES ("819e1fbf-8b7e-4f6d-811f-693534916a8b", "4"); | ||
INSERT INTO sock_tag VALUES ("zzz4f044-b040-410d-8ead-4de0446aec7e", "1"); | ||
INSERT INTO sock_tag VALUES ("zzz4f044-b040-410d-8ead-4de0446aec7e", "11"); | ||
INSERT INTO sock_tag VALUES ("3395a43e-2d88-40de-b95f-e00e1502085b", "1"); | ||
INSERT INTO sock_tag VALUES ("3395a43e-2d88-40de-b95f-e00e1502085b", "4"); | ||
INSERT INTO sock_tag VALUES ("837ab141-399e-4c1f-9abc-bace40296bac", "1"); | ||
INSERT INTO sock_tag VALUES ("837ab141-399e-4c1f-9abc-bace40296bac", "11"); | ||
INSERT INTO sock_tag VALUES ("837ab141-399e-4c1f-9abc-bace40296bac", "3"); | ||
|
||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
...edmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue-Data/files/dump.sql.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sql |
8 changes: 8 additions & 0 deletions
8
...%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Catalogue"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Catalogue" type="atyIgeneral:Archive" id="SockShop-Catalogue"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Catalogue/files/catalogue.zip"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
Binary file added
BIN
+41 MB
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue/files/catalogue.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...edmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Catalogue/files/catalogue.zip.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/x-zip-compressed |
Binary file modified
BIN
+136 Bytes
(100%)
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Frontend/files/front-end.zip
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Orders/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Orders"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Orders" type="atyIgeneral:JAR" id="SockShop-Orders"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Orders/files/orders.jar"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
Binary file added
BIN
+24.7 MB
.../https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Orders/files/orders.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Orders/files/orders.jar.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/java-archive |
8 changes: 8 additions & 0 deletions
8
...2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users-Data/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Users-Data"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Users-Data" type="atyIgeneral:Script" id="SockShop-Users-Data"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Users-Data/files/data.js"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
111 changes: 111 additions & 0 deletions
111
...https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users-Data/files/data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
|
||
db.createCollection("addresses"); | ||
db.createCollection("cards"); | ||
db.createCollection("customers"); | ||
|
||
|
||
function insert_address(object) { | ||
print(db.addresses.insert(object)); | ||
} | ||
|
||
function insert_card(object) { | ||
print(db.cards.insert(object)); | ||
} | ||
|
||
function insert_customer(object) { | ||
print(db.customers.insert(object)); | ||
} | ||
|
||
|
||
insert_address({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830ad"), | ||
"number": "246", | ||
"street": "Whitelees Road", | ||
"city": "Glasgow", | ||
"postcode": "G67 3DL", | ||
"country": "United Kingdom" | ||
}); | ||
insert_address({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b0"), | ||
"number": "246", | ||
"street": "Whitelees Road", | ||
"city": "Glasgow", | ||
"postcode": "G67 3DL", | ||
"country": "United Kingdom" | ||
}); | ||
insert_address({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b3"), | ||
"number": "4", | ||
"street": "Maes-Y-Deri", | ||
"city": "Aberdare", | ||
"postcode": "CF44 6TF", | ||
"country": "United Kingdom" | ||
}); | ||
insert_address({ | ||
"_id": ObjectId("57a98ddce4b00679b4a830d1"), | ||
"number": "3", | ||
"street": "my road", | ||
"city": "London", | ||
"country": "UK" | ||
}); | ||
|
||
|
||
insert_card({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830ae"), | ||
"longNum": "5953580604169678", | ||
"expires": "08/19", | ||
"ccv": "678" | ||
}); | ||
insert_card({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b1"), | ||
"longNum": "5544154011345918", | ||
"expires": "08/19", | ||
"ccv": "958" | ||
}); | ||
insert_card({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b4"), | ||
"longNum": "0908415193175205", | ||
"expires": "08/19", | ||
"ccv": "280" | ||
}); | ||
insert_card({ | ||
"_id": ObjectId("57a98ddce4b00679b4a830d2"), | ||
"longNum": "5429804235432", | ||
"expires": "04/16", | ||
"ccv": "432" | ||
}); | ||
|
||
|
||
//pass eve | ||
insert_customer({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830af"), | ||
"firstName": "Eve", | ||
"lastName": "Berger", | ||
"username": "Eve_Berger", | ||
"password": "fec51acb3365747fc61247da5e249674cf8463c2", | ||
"salt": "c748112bc027878aa62812ba1ae00e40ad46d497", | ||
"addresses": [ObjectId("57a98d98e4b00679b4a830ad")], | ||
"cards": [ObjectId("57a98d98e4b00679b4a830ae")] | ||
}); | ||
//pass password | ||
insert_customer({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b2"), | ||
"firstName": "User", | ||
"lastName": "Name", | ||
"username": "user", | ||
"password": "e2de7202bb2201842d041f6de201b10438369fb8", | ||
"salt": "6c1c6176e8b455ef37da13d953df971c249d0d8e", | ||
"addresses": [ObjectId("57a98d98e4b00679b4a830b0")], | ||
"cards": [ObjectId("57a98d98e4b00679b4a830b1")] | ||
}); | ||
//pass password | ||
insert_customer({ | ||
"_id": ObjectId("57a98d98e4b00679b4a830b5"), | ||
"firstName": "User1", | ||
"lastName": "Name1", | ||
"username": "user1", | ||
"password": "8f31df4dcc25694aeb0c212118ae37bbd6e47bcd", | ||
"salt": "bd832b0e10c6882deabc5e8e60a37689e2b708c2", | ||
"addresses": [ObjectId("57a98d98e4b00679b4a830b3")], | ||
"cards": [ObjectId("57a98d98e4b00679b4a830b4")] | ||
}); |
1 change: 1 addition & 0 deletions
1
...2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users-Data/files/data.js.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/javascript |
8 changes: 8 additions & 0 deletions
8
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-SockShop-Users"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="SockShop-Users" type="atyIgeneral:Archive" id="SockShop-Users"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/SockShop-Users/files/user.zip"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
Binary file added
BIN
+40.4 KB
...tes/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users/files/user.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Users/files/user.zip.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/x-zip-compressed |
9 changes: 9 additions & 0 deletions
9
...edmm.uni-stuttgart.de%2Fnodetypeimplementations/MongoDB-Impl/NodeTypeImplementation.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypeimplementations" id="winery-defs-for_ntyiIgeneral1-MongoDB-Impl"> | ||
<NodeTypeImplementation xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" targetNamespace="https://edmm.uni-stuttgart.de/nodetypeimplementations" name="MongoDB-Impl" abstract="no" final="no" nodeType="ntyIgeneral:MongoDB"> | ||
<ImplementationArtifacts> | ||
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="create" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="create" artifactType="atyIgeneral:Script" artifactRef="ateIgeneral1:NodeJS-Create"/> | ||
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="start" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="start" artifactType="atyIgeneral:Script" artifactRef="ateIgeneral1:MongoDB-Start"/> | ||
</ImplementationArtifacts> | ||
</NodeTypeImplementation> | ||
</Definitions> |
Oops, something went wrong.