Skip to content

Conversation

pdhanoya-splunk
Copy link
Contributor

@pdhanoya-splunk pdhanoya-splunk commented Sep 16, 2021

Test Steps

SETUP

  • Create 2 App Sources for MC and Standalone
  • Prepare Standalone CRD with MC and App config
  • Apply Standalone CRD and wait for pod to become ready
  • Prepare MC CRD with App Config
  • Wait for MC to become READY

VERIFICATIONS

  • Verify apps are copied, installed on MC AND Standalone Pod

UPGRADE APPS

  • Upgrade apps in app sources
  • Wait for MC and Standalone are READY
  • Verify apps are copied, installed and upgraded on MC AND Standalone Pod

SCALE STANDALONE TO TWO REPLICAS

  • Wait for Standalone and MC to be ready
  • Verify apps are copied, installed on MC AND Standalone Pod

DOWNGRADE APP VERSION

  • Wait for Standalone and MC to be ready
  • Verify apps are copied, installed on MC AND Standalone Pod

TEST RUN

s1appfw test
/Users/pdhanoya/splunk-operator-git/automation/splunk-operator/test/s1/appframework/appframework_test.go:30
  appframework Standalone deployment (S1) with App Framework
  /Users/pdhanoya/splunk-operator-git/automation/splunk-operator/test/s1/appframework/appframework_test.go:64
    smoke, s1, appframework: can deploy a standalone instance with App Framework enabled
    /Users/pdhanoya/splunk-operator-git/automation/splunk-operator/test/s1/appframework/appframework_test.go:65
------------------------------
P{"level":"info","ts":1631823261.678734,"msg":"testenv deleted.\n","testenv":"s1appfw-u90"}

JUnit report was created: /Users/pdhanoya/splunk-operator-git/automation/splunk-operator/test/s1/appframework/s1appfw-u90_junit.xml

Ran 1 of 2 Specs in 1635.185 seconds
SUCCESS! -- 1 Passed | 0 Failed | 1 Pending | 0 Skipped
PASS```

// Verify Apps are downloaded by init-container
initContDownloadLocation := "/init-apps/" + appSourceName
podName := fmt.Sprintf(testenv.StandalonePod, deployment.GetName(), 0)
// Upload Apps to to S3 for MC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

// Verify Monitoring Console is Ready and stays in ready state
testenv.VerifyMonitoringConsoleReady(deployment, deployment.GetName(), mc, testenvInstance)

// Verify Apps are downloaded by init-container on Standalone Pod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would need to add "and MC" in the end of the comment

@pdhanoya-splunk pdhanoya-splunk force-pushed the CSPL-1226-add-appframework-automation-to-mc branch from 5e95c35 to 48bf71a Compare September 17, 2021 16:16
@smohan-splunk smohan-splunk merged commit 54a1e64 into feature-MC/CRD Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants