Skip to content

Commit

Permalink
Amend function app name (fixup)
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Jan 13, 2025
1 parent b88e758 commit b4fa6ef
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 69 deletions.
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ services:
profiles:
- dev

notify:
container_name: notify
notifications-api:
container_name: notifications-api
network_mode: host
build:
context: ./src/notify
context: ./src/notifications-api
dockerfile: Dockerfile
additional_contexts:
root_dir: .
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/tf-core/environments/development.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function_app = {
storage_uses_managed_identity = null
worker_32bit = false

name_suffix = "communication-management"
function_endpoint_name = "CommunicationManagement"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"
app_service_plan_key = "Default"
key_vault_url = "KEY_VAULT_URL"
app_urls = []
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/tf-core/environments/integration.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function_app = {
storage_uses_managed_identity = null
worker_32bit = false

name_suffix = "communication-management"
function_endpoint_name = "CommunicationManagement"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"
app_service_plan_key = "Default"
key_vault_url = "KEY_VAULT_URL"
app_urls = []
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/tf-core/environments/nft.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function_app = {
storage_uses_managed_identity = null
worker_32bit = false

name_suffix = "communication-management"
function_endpoint_name = "CommunicationManagement"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"
app_service_plan_key = "Default"
key_vault_url = "KEY_VAULT_URL"
app_urls = []
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/tf-core/environments/preprod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function_app = {
storage_uses_managed_identity = null
worker_32bit = false

name_suffix = "communication-management"
function_endpoint_name = "CommunicationManagement"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"
app_service_plan_key = "Default"
key_vault_url = "KEY_VAULT_URL"
app_urls = []
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/tf-core/environments/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function_app = {
storage_uses_managed_identity = null
worker_32bit = false

name_suffix = "communication-management"
function_endpoint_name = "CommunicationManagement"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"
app_service_plan_key = "Default"
key_vault_url = "KEY_VAULT_URL"
app_urls = []
Expand Down
4 changes: 3 additions & 1 deletion infrastructure/tf-core/function_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ module "functionapp" {


locals {
name_suffix = "communication_management"
name_suffix = "notifications-api"
function_endpoint_name = "NotificationsApi"

primary_region = [for k, v in var.regions : k if v.is_primary_region][0]
app_settings = merge(
var.function_app.env_vars_static,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions src/notify/app.py

This file was deleted.

14 changes: 0 additions & 14 deletions src/notify/function_app.py

This file was deleted.

8 changes: 0 additions & 8 deletions src/notify/host.json

This file was deleted.

2 changes: 1 addition & 1 deletion tests/integration/notify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(SCRIPT_DIR) + "/../../src/notify/")
sys.path.insert(0, os.path.dirname(SCRIPT_DIR) + "/../../src/notifications-api/")
2 changes: 1 addition & 1 deletion tests/unit/notify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(SCRIPT_DIR) + "/../../src/notify/")
sys.path.insert(0, os.path.dirname(SCRIPT_DIR) + "/../../src/notifications-api/")

0 comments on commit b4fa6ef

Please sign in to comment.