-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from OpenDataServices/2023-03-17
Misc
- Loading branch information
Showing
9 changed files
with
146 additions
and
43 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
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
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
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,14 @@ | ||
Dokku App Names | ||
=============== | ||
|
||
Any app names that are not allowed in Dokku will be cleaned up automatically. | ||
|
||
Names will be made lower case. | ||
|
||
Characters that are not allowed will be changed to a dash (`-`). This includes: | ||
|
||
* slashes | ||
* underscores | ||
* colons | ||
* spaces | ||
|
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ Reference | |
|
||
deploy-command.rst | ||
destroy-command.rst | ||
app-resources.rst | ||
app-resources.rst | ||
dokku-app-names.rst |
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
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
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
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,29 @@ | ||
from dokkusd.util import clean_dokku_app_name | ||
|
||
|
||
def test_fine_1(): | ||
assert "cat" == clean_dokku_app_name("cat") | ||
|
||
|
||
def test_bad_1(): | ||
assert "cat-" == clean_dokku_app_name("cat_") | ||
|
||
|
||
def test_bad_2(): | ||
assert "cat-" == clean_dokku_app_name("cat:") | ||
|
||
|
||
def test_bad_3(): | ||
assert "cat-" == clean_dokku_app_name("cat/") | ||
|
||
|
||
def test_bad_4(): | ||
assert "cat-" == clean_dokku_app_name("cat\\") | ||
|
||
|
||
def test_bad_5(): | ||
assert "cat" == clean_dokku_app_name("CAT") | ||
|
||
|
||
def test_bad_6(): | ||
assert "cat-" == clean_dokku_app_name("cat ") |