lp:~pfalcon/linaro-license-protection/openid-exception-for-internal-hosts
- Get this branch:
- bzr branch lp:~pfalcon/linaro-license-protection/openid-exception-for-internal-hosts
Branch merges
- Данило Шеган (community): Approve
- Linaro Infrastructure: Pending requested
-
Diff: 150 lines (+62/-26)3 files modifiedlicense_protected_downloads/tests/test_views.py (+25/-1)
license_protected_downloads/tests/testserver_root/build-info/origen-blob-openid.txt (+1/-0)
license_protected_downloads/views.py (+36/-25)
Related bugs
Related blueprints
Branch information
Recent revisions
- 164. By Paul Sokolovsky
-
Testcases for files protected by OpenID still being accessible by INTERNAL_HOSTS
These tests fail so far due to bug in the app logic. On the critical path
to fix lp:1112620. - 163. By Paul Sokolovsky
-
Test separately for querying subdir access and access when no BUILD-INFO.txt.
Previous test_readFile_
nonFile( ) was really confusing, there're two separate
cases to test for.Also, make conclusions from previous wrong test patch due to presence of stray
BUILD-INFO.txt on local system: the real problem is not using actual dirs for
testdata, but trying to (ab)use source files directory as testdata: don't do
that, have each for its own purpose (source directory may contain arbitrary
files during development, but test corpus is just that). - 162. By Paul Sokolovsky
-
Fix test_apply_to_dir: it is explicitly allowed to apply test to a dir.
BuildInfo class has code to handle that case.
- 161. By Paul Sokolovsky
-
Rename test_readFile_* -> test_apply_to_* to be up to date with semantics.
These tests no longer test just readFile() method, they test application
of BuildInfo class to a filesystem object. Also, if we test against
directory, call it such, and not "non-file", and add extra check that intended
name is indeed directory in the current dir. - 159. By Paul Sokolovsky
-
Explicitly mention current version of the BUILD-INFO format.
And why do we have it at 0.1 still?
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)