cfn test throwing python exception
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Commencez par la suite de contrats de test cfn et reproduisez la commande sur macOS sans sudo. Examinez pourquoi la collecte de pytest atteint /Library/OSAnalytics/init.py ; c'est terminé lorsque le test de contrat nommé s'exécute sans PermissionError et sans nécessiter sudo.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
When I run the command "cfn test -- -k contract_create_read" I get PermissionError (see full error log below).
It does work when I use sudo "sudo cfn test -- -k contract_create_read" but I know it could work without ןא because it does in other environments.
I have local lambda simulator running in my mac, I run it using sam command.
The Full log is:
Resource schema is valid.
======================================================================================== test session starts ========================================================================================
platform darwin -- Python 3.11.4, pytest-8.0.0, pluggy-1.4.0 -- /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
cachedir: .pytest_cache
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/Users/dfedida/IdeaProjects/fsxnontap_cfn/fsxn_ontap_resource_provider/netapp_cfn/resource_Exportpolicy/.hypothesis/examples'))
rootdir: /private/var/folders/p8/wql98__s32jd3mfk_zn7svrc0000gp/T
configfile: pytest_ay7csx_1.ini
plugins: dependency-0.6.0, random-order-1.1.1, hypothesis-6.98.4, localserver-0.8.1
collected 0 items / 1 error
============================================================================================== ERRORS ===============================================================================================
___________________________________________________________________________________ ERROR collecting test session ___________________________________________________________________________________
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_hooks.py:501: in call
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_manager.py:119: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/python.py:210: in pytest_collect_directory
if pkginit.is_file():
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pathlib.py:1267: in is_file
return S_ISREG(self.stat().st_mode)
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pathlib.py:1013: in stat
return os.stat(self, follow_symlinks=follow_symlinks)
E PermissionError: [Errno 13] Permission denied: '/Library/OSAnalytics/init.py'
====================================================================================== short test summary info ======================================================================================
ERROR ../../../../../../../private/var/folders/p8/wql98__s32jd3mfk_zn7svrc0000gp/T/::Library - PermissionError: [Errno 13] Permission denied: '/Library/OSAnalytics/init.py'
========================================================================================= 1 error in 0.08s ==========================================================================================
ERROR: found no collectors for /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpdk/core/contract/suite
- Langage dominant
- Python
- Étoiles
- 336
- Forks
- 173
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de aws-cloudformation/cloudformation-cli
-
docs: `--use-docker` and `--no-docker` options of `cfn submit` are missing from the documentationOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
aws-cloudformation/cloudformation-cli#1117 · 1 commentaire · 6 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
aws-cloudformation/cloudformation-cli#1115 · 1 commentaire · 9 réactions ·
Toutes les issues de aws-cloudformation/cloudformation-cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Netcracker/qubership-ai-packages#266 ·
Les mainteneurs répondent en général sous 1 jour
-
PROCESSED_DATA_FOLDER: strip whitespace and treat empty as unsetPeut-être pris @TorecLuik l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
NL-BioImaging/BIOMERO.importer#63 ·
Les mainteneurs répondent en général sous 1 jour
-
MLX training-complete chat/merge suggestions omit --backend mlxPeut-être pris @vaputa l’a pris aujourd’hui. Ouverteneeds-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
MakazhanAlpamys/Soup#2913 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:security effort:S priority:P3 status:needs-triage type:chore
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
randomparity/kdive#3657 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
aws/mcp-proxy-for-aws#476 ·
Les mainteneurs répondent en général sous 1 jour