azure-sdk-for-cpp/sdk/tables/ci.yml
George Arama 313fb0e58f
Move tests to use azure pipeline credentials (#5754)
* test1

* hgdfchg

* remove the remnants of azure client secret

* test KV with federated auth

* UseFederatedAuth

* fdsa

* kv template with managed

* try try again

* retry permissions

* add net acls

* blunt force replace the resource json

* put back stuff

* trey again with new method

* attempt

* missed something

* flip if else

* Temporarily use empty sub config file path for preview cloud

* remove client secret

* try to fix the identity tests

* live skip failing tests and return in samples

* samples for identity fix

* disable failing samples in identity

* fix winhttp failing test

* comment out code

* remove managed identity

* restore version from main

* revert readme changes

* PR comments

* test 2

* clang

* attempt default creds with pipeline chanined

* clangs

* identity test and clangs

* oops

* live

* cleanup

* reter

* test

* revert the DAC change

* missed one

* taking the samples to a farm upstate

* PR comments

* Fix bad merge

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-07-11 17:38:19 -07:00

68 lines
2.2 KiB
YAML

# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- sdk/tables
pr:
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- sdk/tables
- eng/common/testproxy
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: tables
# Not running tests on CI but only on LiveTest mode
CtestRegex: azure-data
LineCoverageTarget: 77
BranchCoverageTarget: 42
UseFederatedAuth: true
LiveTestCtestRegex: azure-data
Clouds: Preview
SupportedClouds: Preview
Artifacts:
- Name: azure-data-tables
Path: azure-data-tables
VcpkgPortName: azure-data-tables-cpp
TestEnv:
- Name: STANDARD_STORAGE_CONNECTION_STRING
Value: "DefaultEndpointsProtocol=https;AccountName=account-name;AccountKey=3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;EndpointSuffix=core.windows.net"
- Name: PREMIUM_FILE_CONNECTION_STRING
Value: "DefaultEndpointsProtocol=https;AccountName=notReal;AccountKey=3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;EndpointSuffix=core.windows.net"
# Tables related env vars
- Name: STORAGE_TENANT_ID
Value: "72f988bf-86f1-41af-91ab-2d7cd011db47"
- Name: STORAGE_CLIENT_ID
Value: "non-real-client"
- Name: STORAGE_CLIENT_SECRET
Value: "some-secret"
- Name: STORAGE_SUBSCRIPTION_ID
Value: "72f988bf-86f1-41af-91ab-2d7cd011db47"
- Name: STORAGE_RESOURCE_GROUP
Value: "rg-fake"
- Name: TABLES_STORAGE_ACCOUNT_NAME
Value: "account-name"
- Name: LOGGING__LOGLEVEL__DEFAULT
Value: "debug"
- Name: DATA_TABLES_URL
Value: "https://account-name.table.core.windows.net"
CMakeTestOptions:
- Name: Default
Value: ''
- Name: Test
Value: '-DBUILD_TESTING=ON'