Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
fe966764
Unverified
Kaydet (Commit)
fe966764
authored
Şub 26, 2018
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Şub 26, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1927 from mefyl/master
Add test for "/.." patterns in .dockerignore.
üst
8b246db2
42959191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
utils_test.py
tests/unit/utils_test.py
+16
-0
No files found.
tests/unit/utils_test.py
Dosyayı görüntüle @
fe966764
...
...
@@ -902,6 +902,22 @@ class ExcludePathsTest(unittest.TestCase):
[
'*.md'
,
'!README*.md'
,
'README-secret.md'
]
)
==
set
([
'README.md'
,
'README-bis.md'
])
def
test_parent_directory
(
self
):
base
=
make_tree
(
[],
[
'a.py'
,
'b.py'
,
'c.py'
])
# Dockerignore reference stipulates that absolute paths are
# equivalent to relative paths, hence /../foo should be
# equivalent to ../foo. It also stipulates that paths are run
# through Go's filepath.Clean, which explicitely "replace
# "/.." by "/" at the beginning of a path".
assert
exclude_paths
(
base
,
[
'../a.py'
,
'/../b.py'
]
)
==
set
([
'c.py'
])
class
TarTest
(
unittest
.
TestCase
):
def
test_tar_with_excludes
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment