Skip to content

Commit 9f80224

Browse files
andkononykhinashcherbakov
authored andcommitted
remove non-indy brands (INDY-829) (#381)
* removed sovrin/evernym brands from dockerfiles * updated README * restored absolute URLs to wiki * adjusted pool genesis transactions * Adjusted/Removed places where non-indy brands were used * updated comments * temporarily switched to customr Jenkins shared lib * Revert "temporarily switched to customr Jenkins shared lib" This reverts commit acedc40. * replaced bas folder .sovrin with .indy
1 parent bb6f4d1 commit 9f80224

18 files changed

+36
-39
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!groovy
22

3+
// TODO remove after shared libs refactoring
34
@Library('SovrinHelpers') _
45

56
def name = 'indy-plenum'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Plenum.
2121
### Installing Plenum
2222

2323
```
24-
pip install plenum
24+
pip install indy-plenum
2525
```
2626

27-
From here, you can play with the command-line interface (see the [tutorial](https://github.com/evernym/plenum/wiki))...
27+
From here, you can play with the command-line interface (see the [tutorial](https://github.com/hyperledger/indy-plenum/wiki))...
2828

2929
Note: For Windows, we recommended using either [cmder](http://cmder.net/) or [conemu](https://conemu.github.io/).
3030

@@ -35,12 +35,12 @@ plenum
3535
...or run the tests.
3636

3737
```
38-
git clone https://github.com/evernym/plenum.git
39-
cd plenum
38+
git clone https://github.com/hyperledger/indy-plenum.git
39+
cd indy-plenum
4040
python -m plenum.test
4141
```
4242

43-
**Details about the protocol, including a great tutorial, can be found on the [wiki](https://github.com/evernym/plenum/wiki).**
43+
**Details about the protocol, including a great tutorial, can be found on the [wiki](https://github.com/hyperledger/indy-plenum/wiki).**
4444

4545
### Installing python 3.5 and libsodium:
4646

ci/ubuntu.dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
FROM ubuntu:16.04
33

44
ARG uid=1000
5+
ARG user=indy
56

67
# Install environment
7-
RUN apt-get update -y
8-
RUN apt-get install -y \
8+
RUN apt-get update -y && apt-get install -y \
99
git \
1010
wget \
1111
python3.5 \
@@ -16,13 +16,13 @@ RUN pip3 install -U \
1616
pip \
1717
setuptools \
1818
virtualenv
19-
RUN useradd -ms /bin/bash -u $uid sovrin
20-
USER sovrin
21-
RUN virtualenv -p python3.5 /home/sovrin/test
19+
RUN useradd -ms /bin/bash -u $uid $user
20+
USER $user
21+
RUN virtualenv -p python3.5 /home/$user/test
2222
USER root
23-
RUN ln -sf /home/sovrin/test/bin/python /usr/local/bin/python
24-
RUN ln -sf /home/sovrin/test/bin/pip /usr/local/bin/pip
25-
USER sovrin
23+
RUN ln -sf /home/$user/test/bin/python /usr/local/bin/python
24+
RUN ln -sf /home/$user/test/bin/pip /usr/local/bin/pip
25+
USER $user
2626
# TODO: Automate dependency collection
2727
RUN pip install jsonpickle \
2828
ujson \
@@ -46,4 +46,4 @@ RUN pip install jsonpickle \
4646
psutil \
4747
intervaltree \
4848
pytest-xdist
49-
WORKDIR /home/sovrin
49+
WORKDIR /home/$user

ci/windows.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM microsoft/windowsservercore
22

3-
LABEL Description="plenum" Vendor="Evernym"
3+
LABEL Description="indy-plenum" Vendor="Hyperledger"
44

55
# Install environment
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{"dest":"3StSG7YV2Em2Wejf9dA1dNZ9BtZLiUUdm3yJgCS4M8eK","data":{"services":["VALIDATOR"],"client_port":9722,"node_ip":"52.33.22.91","alias":"EvernymV1","client_ip":"52.33.22.91","node_port":9721},"type":"0","txnId":"d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","identifier":"5rArie7XKukPCaEwq5XGQJnM9Fc5aZE3M9HAPVfMU2xC"}
2-
{"dest":"13qfUHjTDh3TdRHau93LtkLynwNJnLGoRGh9HQxHuiLs","data":{"services":["VALIDATOR"],"client_port":9724,"node_ip":"52.38.24.189","alias":"EvernymV2","client_ip":"52.38.24.189","node_port":9723},"type":"0","txnId":"4e07408562bedb8b60ce05c1decfe3ad16b72230967de01f640b7e4729b49fce","identifier":"2btLJAAb1S3x6hZYdVyAePjqtQYi2ZBSRGy4569RZu8h"}
1+
{"dest":"3StSG7YV2Em2Wejf9dA1dNZ9BtZLiUUdm3yJgCS4M8eK","data":{"services":["VALIDATOR"],"client_port":9722,"node_ip":"52.33.22.91","alias":"IndyV1","client_ip":"52.33.22.91","node_port":9721},"type":"0","txnId":"d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","identifier":"5rArie7XKukPCaEwq5XGQJnM9Fc5aZE3M9HAPVfMU2xC"}
2+
{"dest":"13qfUHjTDh3TdRHau93LtkLynwNJnLGoRGh9HQxHuiLs","data":{"services":["VALIDATOR"],"client_port":9724,"node_ip":"52.38.24.189","alias":"IndyV2","client_ip":"52.38.24.189","node_port":9723},"type":"0","txnId":"4e07408562bedb8b60ce05c1decfe3ad16b72230967de01f640b7e4729b49fce","identifier":"2btLJAAb1S3x6hZYdVyAePjqtQYi2ZBSRGy4569RZu8h"}
33
{"dest":"BkJAXQsFYsHtqgbMUYSVQ8n3okRvyPfozwWcn4gV538Z","data":{"services":["VALIDATOR"],"client_port":9730,"node_ip":"34.200.79.65","alias":"RespectNetwork","client_ip":"34.200.79.65","node_port":9729},"type":"0","txnId":"ef2d127de37b942baad06145e54b0c619a1f22327b2ebbcfbec78f5564afe39e","identifier":"4AdS22kC7xzb4bcqg9JATuCfAMNcQYcZa1u5eWzs6cSJ"}
44
{"dest":"DNJdyetPD8B6Xsr58PKHynBtEWE2NrMAdnxSMdtgbFER","data":{"services":["VALIDATOR"],"client_port":9747,"node_ip":"52.56.74.57","alias":"BULLDOG","client_ip":"52.56.74.57","node_port":9746},"type":"0","txnId":"ef2d127de37b942baad06145e54b0c619a1f22327b2ebbcfbec78f5564afe3A2","identifier":"6hbecbh36EMK6yAi5NZ9bLZEuRsWFt6qLa2SyMQGXs7H"}

plenum/cli/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class Cli:
106106
name = 'plenum'
107107
properName = 'Plenum'
108108
fullName = 'Plenum protocol'
109-
githubUrl = 'https://github.com/evernym/plenum'
110109

111110
NodeClass = Node
112111
ClientClass = Client
@@ -901,11 +900,11 @@ def isOkToRunNodeDependentCommands(self):
901900
if not self.withNode:
902901
self.print("This command is only available if you start "
903902
"this cli with command line argument --with-node "
904-
"(and it assumes you have installed sovrin-node "
903+
"(and it assumes you have installed indy-node "
905904
"dependency)")
906905
return False
907906
if not self.NodeClass:
908-
self.print("This command requires sovrin-node dependency, "
907+
self.print("This command requires indy-node dependency, "
909908
"please install it and then resume.")
910909
return False
911910

plenum/cli/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __str__(self):
168168
usage="use wallet <name|absolute-wallet-file-path>",
169169
examples=[
170170
"use wallet mywallet",
171-
"use wallet /home/ubuntu/.sovrin/wallets/test/mywallet.wallet"])
171+
"use wallet /home/ubuntu/.indy/wallets/test/mywallet.wallet"])
172172

173173
saveWalletCmd = Command(
174174
id="save wallet",

plenum/common/script_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def changeHA(looper, config, nodeName, nodeSeed, newNodeHA,
250250
stewardWallet = Wallet(stewardName)
251251
stewardWallet.addIdentifier(signer=stewardSigner)
252252

253-
# prepare client to submit change ha request to sovrin
253+
# prepare client to submit change ha request
254254
_, randomClientPort = genHa()
255255
client = Client(stewardName,
256256
ha=('0.0.0.0', randomClientPort), config=config)

plenum/common/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from stp_core.network.exceptions import \
3535
InvalidEndpointIpAddress, InvalidEndpointPort
3636

37-
# Do not remove the next import until imports in sovrin are fixed
37+
# TODO Do not remove the next import until imports in indy are fixed
3838
from stp_core.common.util import adict
3939

4040

plenum/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138
# OPTIONS RELATED TO TESTS
139139

140-
# todo test 60sec after https://evernym.atlassian.net/browse/SOV-995 closed
140+
# TODO test 60sec
141141
TestRunningTimeLimitSec = 100
142142

143143
# Expected time for one stack to get connected to another

plenum/server/notifier_plugin_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
class PluginManager:
24-
prefix = 'sovrinnotifier'
24+
prefix = 'indynotifier'
2525
__instance = None
2626

2727
def __new__(cls):

plenum/test/waits.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def expectedPoolInterconnectionTime(nodeCount):
7474
# bug (`'str' object has no attribute 'keys'`) which supposed to be
7575
# fixed in the 3pcbatch feature
7676
# https://evernym.atlassian.net/browse/SOV-995
77+
# TODO check actual state
7778
# multiply by 2 because we need to re-create connections which can be done on a second re-try only
7879
# (we may send pings on some of the re-tries)
7980
return min(0.8 * config.TestRunningTimeLimitSec,
@@ -116,12 +117,6 @@ def expectedPoolGetReadyTimeout(nodeCount):
116117
expectedPoolCatchupTime(nodeCount)
117118

118119

119-
def expectedPoolLedgerCheck(nodeCount):
120-
# TODO this is a legacy for sovrin-node
121-
# remove it and replace in the sovrin-node
122-
return 5 * nodeCount
123-
124-
125120
def expectedPoolLedgerRepliedMsgPersisted(nodeCount):
126121
"""
127122
From: a message is replied to client
@@ -242,6 +237,7 @@ def expectedClientToPoolConnectionTimeout(nodeCount):
242237
# bug (`'str' object has no attribute 'keys'`) which supposed to be
243238
# fixed in the 3pcbatch feature
244239
# https://evernym.atlassian.net/browse/SOV-995
240+
# TODO check actual state
245241
return config.ExpectedConnectTime * nodeCount + \
246242
config.RETRY_TIMEOUT_RESTRICTED
247243

scripts/filter_log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ filter_log -i Node1.log -p MONITORING
2424
2525
filter_log -i Node1.log -o filtered.log -l INFO
2626
27-
filter_log -i /home/user/.sovrin/Node1.log -o /home/user/filtered.log -l DEBUG -p "VIEW CHANGE"
27+
filter_log -i /home/user/.indy/Node1.log -o /home/user/filtered.log -l DEBUG -p "VIEW CHANGE"
2828
29-
filter_log --input /home/user/.sovrin/Node1.log --output /home/user/filtered.log --level DEBUG --prefix "VIEW CHANGE"
29+
filter_log --input /home/user/.indy/Node1.log --output /home/user/filtered.log --level DEBUG --prefix "VIEW CHANGE"
3030
"""
3131

3232
import argparse

scripts/get_keys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from stp_core.crypto.nacl_wrappers import Signer, Privateer
1212

1313

1414
# TODO: Abstract this functionality in a method inside plenum/common/raet.py so
15-
# it can be used in sovrin too. Look at how init_plenum_keys is implemented
15+
# it can be re-used. Look at how init_plenum_keys is implemented
1616

1717
def breakIt(message):
1818
print(message)

scripts/log_stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Examples:
1616
1717
log_stats Node1.log
1818
19-
log_stats /home/user/.sovrin/Node1.log /home/user/stats.txt
19+
log_stats /home/user/.indy/Node1.log /home/user/stats.txt
2020
"""
2121

2222
import argparse

settings/dictionary.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<w>authz</w>
77
<w>dirname</w>
88
<w>epub</w>
9-
<w>evernym</w>
9+
<w>indy</w>
1010
<w>ioflo</w>
1111
<w>jsonpickle</w>
1212
<w>poc's</w>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
with open(CONFIG_FILE, 'w') as f:
8585
msg = "# Here you can create config entries according to your " \
8686
"needs.\n " \
87-
"# For help, refer config.py in the sovrin package.\n " \
87+
"# For help, refer config.py in the plenum module.\n " \
8888
"# Any entry you add here would override that from config " \
8989
"example\n"
9090
f.write(msg)

stp_zmq/test/test_zstack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ def testUnrestricted2ZStackCommunication(tdir, looper, tconf):
4545

4646

4747
def testZStackSendMethodReturnsFalseIfDestinationIsUnknown(tdir, looper, tconf):
48-
"""
49-
Checks: https://evernym.atlassian.net/browse/SOV-971
48+
"""Case: stp fails on send if a remote close the socket
49+
50+
Checks:
5051
1. Connect two stacks
5152
2. Disconnect a remote from one side
5253
3. Send a message from disconnected remote

0 commit comments

Comments
 (0)