Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some comment on settings.py #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 0 additions & 4 deletions openstack_registration/openstack_registration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@
AUTH_LDAP_SERVER_URI = config.get('AUTH', 'server')
AUTH_LDAP_BIND_DN = config.get('AUTH', 'bind_dn')
AUTH_LDAP_BIND_PASSWORD = config.get('AUTH', 'password')
# AUTH_LDAP_USER_SEARCH = LDAPSearch(config.get('AUTH',
# 'user_search'),
# ldap.SCOPE_SUBTREE,
# "(samaccountname=%(user)s)")
AUTH_LDAP_USER_SEARCH = LDAPSearch(config.get('AUTH',
'user_search'),
ldap.SCOPE_SUBTREE,
Expand Down
19 changes: 10 additions & 9 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# must be unique in a given SonarQube instance
sonar.projectKey=os-registration
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=OpenStack Registration
sonar.projectVersion=1.0
sonar.projectKey=guillaume-philippon_openstack-register
sonar.organization=guillaume-philippon-github

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=openstack-register
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=openstack_registration
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

# Exclude static directory
sonar.exclusions=openstack_registration/registration/static/**